File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 26
26
27
27
28
28
from ..base import BaseEstimator , TransformerMixin
29
- from ..utils import check_array , check_random_state
29
+ from ..utils import check_random_state
30
30
from ..utils .extmath import fast_logdet , randomized_svd , squared_norm
31
31
from ..utils .validation import check_is_fitted , _deprecate_positional_args
32
32
from ..exceptions import ConvergenceWarning
@@ -279,7 +279,7 @@ def transform(self, X):
279
279
"""
280
280
check_is_fitted (self )
281
281
282
- X = check_array ( X )
282
+ X = self . _validate_data ( X , reset = False )
283
283
Ih = np .eye (len (self .components_ ))
284
284
285
285
X_transformed = X - self .mean_
@@ -350,7 +350,7 @@ def score_samples(self, X):
350
350
Log-likelihood of each sample under the current model
351
351
"""
352
352
check_is_fitted (self )
353
-
353
+ X = self . _validate_data ( X , copy = self . copy , dtype = np . float64 )
354
354
Xr = X - self .mean_
355
355
precision = self .get_precision ()
356
356
n_features = X .shape [1 ]
You can’t perform that action at this time.
0 commit comments