pysad.core.BasePostprocessor¶
- class pysad.core.BasePostprocessor[source]¶
Base class for postprocessing methods.
Methods
__init__
()fit
(scores)Shortcut method that iteratively applies fit_partial to all instances in order.
fit_partial
(score)Fits particular (next) timestep's score to train the postprocessor.
fit_transform
(scores)Shortcut method that iteratively applies fit_transform_partial to all instances in order.
fit_transform_partial
(score)Shortcut method that iteratively applies fit_partial and transform_partial, respectively.
transform
(scores)Shortcut method that iteratively applies transform_partial to all instances in order.
transform_partial
(score)Transforms given score.
- fit(scores)[source]¶
Shortcut method that iteratively applies fit_partial to all instances in order.
- Parameters:
shape (np.float64 array of) – Input scores.
- Returns:
self.
- Return type:
- abstract fit_partial(score)[source]¶
Fits particular (next) timestep’s score to train the postprocessor.
- fit_transform(scores)[source]¶
Shortcut method that iteratively applies fit_transform_partial to all instances in order.
- Parameters:
shape (np.float64 array of) – Input scores.
- Returns:
Processed scores.
- Return type:
np.float64 array of shape (num_instances,)
- fit_transform_partial(score)[source]¶
Shortcut method that iteratively applies fit_partial and transform_partial, respectively.