8000 remove dtype · scikit-learn/scikit-learn@8a8d4d6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a8d4d6

Browse files
committed
remove dtype
1 parent d5f8e61 commit 8a8d4d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sklearn/naive_bayes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,7 @@ def _partial_fit(self, X, y, classes=None, _refit=False,
359359
"""
360360
X, y = check_X_y(X, y)
361361
if sample_weight is not None:
362-
sample_weight = _check_sample_weight(sample_weight, X,
363-
dtype=np.float64)
362+
sample_weight = _check_sample_weight(sample_weight, X)
364363

365364
# If the ratio of data variance between dimensions is too small, it
366365
# will cause numerical errors. To address this, we artificially

sklearn/svm/_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
from ..utils import column_or_1d, check_X_y
1414
from ..utils import compute_class_weight
1515
from ..utils.extmath import safe_sparse_dot
16-
from ..utils.validation import check_is_fitted, _check_large_sparse
16+
from ..utils.validation import check_is_fitted
17+
from ..utils.validation import _check_large_sparse
1718
from ..utils.validation import _check_sample_weight
1819
from ..utils.multiclass import check_classification_targets
1920
from ..exceptions import ConvergenceWarning

0 commit comments

Comments
 (0)
0