We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 93ece50 + 25a9e5e commit b4df1a0Copy full SHA for b4df1a0
kmsr/core.py
@@ -12,7 +12,11 @@
12
)
13
from sklearn.exceptions import NotFittedError
14
from sklearn.utils._param_validation import Interval, StrOptions
15
-from sklearn.utils.validation import check_random_state
+from sklearn.utils.validation import (
16
+ _check_feature_names,
17
+ check_random_state,
18
+ validate_data,
19
+)
20
21
import kmsr._core # type: ignore
22
@@ -100,9 +104,9 @@ def _fit(
100
104
X: Sequence[Sequence[float]],
101
105
) -> "KMSR":
102
106
self._validate_params()
103
- self._check_feature_names(X, reset=True)
-
- _X = self._validate_data(
107
+ _check_feature_names(self, X, reset=True)
108
+ _X = validate_data(
109
+ self,
110
X,
111
accept_sparse="csr",
112
dtype=[np.float64],
0 commit comments