Skip to content

Commit 8edeeb8

Browse files
committed
resolve comments
1 parent 8fef1d6 commit 8edeeb8

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/hyperactive/integrations/sklearn/best_estimator.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ def score_samples(self, X):
2525
Only available if ``refit=True`` and the underlying estimator supports
2626
``score_samples``.
2727
28-
.. versionadded:: 0.24
29-
3028
Parameters
3129
----------
3230
X : iterable
@@ -36,7 +34,8 @@ def score_samples(self, X):
3634
Returns
3735
-------
3836
y_score : ndarray of shape (n_samples,)
39-
The ``best_estimator_.score_samples`` method.
37+
Score per sample for `X` based on the estimator with the best found
38+
parameters (e.g. log-likelihood, anomaly score).
4039
"""
4140
check_is_fitted(self)
4241
return self.best_estimator_.score_samples(X)
@@ -164,8 +163,11 @@ def inverse_transform(self, X=None, Xt=None):
164163
Parameters
165164
----------
166165
X : indexable, length n_samples
167-
Must fulfill the input assumptions of the
168-
underlying estimator.
166+
Data in the transformed space. Must fulfill the input assumptions
167+
of the underlying estimator.
168+
Xt : array-like of shape (n_samples, n_features), optional
169+
Deprecated in scikit-learn 1.2 and removed in 1.7. Use ``X``
170+
instead. The former parameter name for the transformed data.
169171
170172
Returns
171173
-------

0 commit comments

Comments
 (0)