jasmine.preprocessing.StandardScaler
- class jasmine.preprocessing.StandardScaler(epsilon: float = 1e-08)[source]
StandardScaler standardizes features by removing the mean and scaling to unit variance.
- property is_fitted: bool
Check if the scaler has been fitted.
- Returns:
True if fitted, False otherwise.
- Return type:
- fit(X: Array)[source]
Fit the scaler to the data. :param X: Input features of shape (n_samples, n_features). :type X: jnp.ndarray
- Returns:
Fitted scaler instance.
- Return type:
self
- transform(X: Array) Array[source]
Transform the data using the fitted parameters. :param X: Input features of shape (n_samples, n_features). :type X: jnp.ndarray
- Returns:
Transformed features.
- Return type:
jnp.ndarray