Skip to content

Commit

Permalink
MAINT Follow-up inverse_transform standardization and deprecation cle…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiedbb committed May 3, 2024
1 parent 20c8e69 commit c5aa12b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sklearn/decomposition/_nmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,9 +1140,9 @@ class _BaseNMF(ClassNamePrefixFeaturesOutMixin, TransformerMixin, BaseEstimator,
"""Base class for NMF and MiniBatchNMF."""

# This prevents ``set_split_inverse_transform`` to be generated for the
# non-standard ``W`` arg on ``inverse_transform``.
# TODO: remove when W is removed in v1.5 for inverse_transform
__metadata_request__inverse_transform = {"W": metadata_routing.UNUSED}
# non-standard ``Xt`` arg on ``inverse_transform``.
# TODO(1.7): remove when Xt is removed in v1.7 for inverse_transform
__metadata_request__inverse_transform = {"Xt": metadata_routing.UNUSED}

_parameter_constraints: dict = {
"n_components": [
Expand Down

0 comments on commit c5aa12b

Please sign in to comment.