Skip to content

Commit

Permalink
check for potential fortran-contiguous arrays which would fail to pro…
Browse files Browse the repository at this point in the history
…cess
  • Loading branch information
david-cortes committed Mar 7, 2019
1 parent 2c805c1 commit 11a638d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion costsensitive/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _check_fit_input(X, C):
assert X.shape[0] == C.shape[0]
assert C.shape[1] > 2

return X, C
return X, np.ascontiguousarray(C)

def _standardize_weights(w):
return w * w.shape[0] / w.sum()
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def build_extensions(self):
'cython'
],
python_requires = ">=3",
version = '0.1.2.4',
version = '0.1.2.5',
description = 'Reductions for Cost-Sensitive Multi-Class Classification',
author = 'David Cortes',
author_email = 'david.cortes.rivera@gmail.com',
Expand All @@ -56,5 +56,5 @@ def build_extensions(self):
'cython'
],
python_requires = ">=3",
version = '0.1.2.4',
version = '0.1.2.5',
)

0 comments on commit 11a638d

Please sign in to comment.