pysad.transform.preprocessing.IdentityScaler¶
- class pysad.transform.preprocessing.IdentityScaler[source]¶
A scaler that does not modify the input, which is added for convenience.
Methods
__init__
()fit
(X)Shortcut method that iteratively applies fit_partial to all instances in order.
fit_partial
(X)Convenience method that does not modify the input or the scaler.
Shortcut method that iteratively applies fit_transform_partial to all instances in order.
Shortcut method that iteratively applies fit_partial and transform_partial, respectively.
transform
(X)Shortcut method that iteratively applies transform_partial to all instances in order.
Convenience method that does not modify the input.
- fit(X)¶
Shortcut method that iteratively applies fit_partial to all instances in order.
- Parameters:
X (np.float64 array of shape (num_instances, num_features)) – Input feature vectors.
- Returns:
The fitted transformer
- Return type:
- fit_partial(X)[source]¶
Convenience method that does not modify the input or the scaler.
- Parameters:
X (np.float64 array of shape (num_features,)) – Input feature vector.
- Returns:
The scaler.
- Return type:
- fit_transform(X)¶
Shortcut method that iteratively applies fit_transform_partial to all instances in order.
- Parameters:
X (np.float64 array of shape (num_instances, num_components)) – Input feature vectors.
- Returns:
Projected feature vectors.
- Return type:
np.float64 array of shape (num_instances, num_components)
- fit_transform_partial(X)¶
Shortcut method that iteratively applies fit_partial and transform_partial, respectively.
- Parameters:
X (np.float64 array of shape (num_components,)) – Input feature vector.
- Returns:
Projected feature vector.
- Return type:
transformed_X (np.float64 array of shape (num_components,))
- transform(X)¶
Shortcut method that iteratively applies transform_partial to all instances in order.
- Parameters:
X (np.float64 array of shape (num_instances, num_features)) – Input feature vectors.
- Returns:
Projected feature vectors.
- Return type:
np.float64 array of shape (num_instances, num_components)