Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make check_build run through. #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mlens/externals/sklearn/type_of_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# License: BSD 3 clause

from __future__ import division
from collections import Sequence
from collections.abc import Sequence


from scipy.sparse import issparse
Expand Down
2 changes: 1 addition & 1 deletion mlens/index/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def partition(n, p):
>>> _partition(8, 3)
array([3, 3, 2])
"""
sizes = (n // p) * np.ones(p, dtype=np.int)
sizes = (n // p) * np.ones(p, dtype=np.int32)
sizes[:n % p] += 1
return sizes

Expand Down
4 changes: 2 additions & 2 deletions mlens/testing/dummy.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def _folded_ests(self, X, y, subsets=1):
t.sort()

weights = []
F = np.zeros((len(t), n_ests * subsets * labels), dtype=np.float)
F = np.zeros((len(t), n_ests * subsets * labels), dtype=np.float32)

col_id = {}
col_ass = 0
Expand Down Expand Up @@ -417,7 +417,7 @@ def _full_ests(self, X, y, subsets=1):
indexer = self.indexer
indexer.fit(X)

P = np.zeros((X.shape[0], n_ests * subsets * labels), dtype=np.float)
P = np.zeros((X.shape[0], n_ests * subsets * labels), dtype=np.float32)

weights = list()
col_id = {}
Expand Down
4 changes: 2 additions & 2 deletions mlens/visualization/var_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def pca_comp_plot(X, y=None, figsize=(10, 8),

for dim, frame in [(2, 221), (3, 223)]:

if dim is 3:
if dim == 3:
# Need to specify projection
subplot_kwarg = {'projection': '3d'}

Expand All @@ -94,7 +94,7 @@ def pca_comp_plot(X, y=None, figsize=(10, 8),
ax[-1].set_title('%s kernel, %i dims' % (kernel, dim))

# Whiten background if dim is 3
if dim is 3:
if dim == 3:
ax[-1].set_facecolor((1, 1, 1))

if show:
Expand Down