@@ -113,13 +113,9 @@ class StandardScaler(OneToOneFeatureMixin, TransformerMixin, BaseEstimator):
113
113
@overload
114
114
def transform (self , X : ArrayLike , copy : None | bool = None ) -> ndarray : ...
115
115
@overload
116
- def transform (self , X : MatrixLike , copy : None | bool = None ) -> ndarray | spmatrix : ...
117
- @overload
118
116
def inverse_transform (self , X : spmatrix , copy : None | bool = None ) -> spmatrix : ...
119
117
@overload
120
118
def inverse_transform (self , X : ArrayLike , copy : None | bool = None ) -> ndarray : ...
121
- @overload
122
- def inverse_transform (self , X : MatrixLike | ArrayLike , copy : None | bool = None ) -> ndarray | spmatrix : ...
123
119
124
120
class MaxAbsScaler (OneToOneFeatureMixin , TransformerMixin , BaseEstimator ):
125
121
n_samples_seen_ : int = ...
@@ -242,8 +238,6 @@ class Normalizer(OneToOneFeatureMixin, TransformerMixin, BaseEstimator):
242
238
def transform (self , X : spmatrix , copy : None | bool = None ) -> spmatrix : ...
243
239
@overload
244
240
def transform (self , X : ArrayLike , copy : None | bool = None ) -> ndarray : ...
245
- @overload
246
- def transform (self , X : MatrixLike | ArrayLike , copy : None | bool = None ) -> ndarray | spmatrix : ...
247
241
248
242
def binarize (X : MatrixLike | ArrayLike , * , threshold : Float = 0.0 , copy : bool = True ) -> ndarray | spmatrix : ...
249
243
@@ -259,8 +253,6 @@ class Binarizer(OneToOneFeatureMixin, TransformerMixin, BaseEstimator):
259
253
def transform (self , X : spmatrix , copy : None | bool = None ) -> spmatrix : ...
260
254
@overload
261
255
def transform (self , X : ArrayLike , copy : None | bool = None ) -> ndarray : ...
262
- @overload
263
- def transform (self , X : MatrixLike | ArrayLike , copy : None | bool = None ) -> ndarray | spmatrix : ...
264
256
265
257
class KernelCenterer (ClassNamePrefixFeaturesOutMixin , TransformerMixin , BaseEstimator ):
266
258
feature_names_in_ : ndarray = ...
0 commit comments