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.

fit_transform(X)

Shortcut method that iteratively applies fit_transform_partial to all instances in order.

fit_transform_partial(X)

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.

transform_partial(X)

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:

object

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:

object

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)

transform_partial(X)[source]

Convenience method that does not modify the input.

Parameters:

X (np.float64 array of shape (num_features,)) – Input feature vector.

Returns:

The exact same input feature vector.

Return type:

X (np.float64 array of shape (features,))