spines.transforms.base¶
Base classes for transforms subpackage.
-
class
spines.transforms.base.Transform(*args, **kwargs)[source]¶ Bases:
spines.core.base.BaseObjectBase Transform class
-
construct(*args, **kwargs) → None[source]¶ Constructs the transformer prior to use
- Parameters
args (optional) – Arguments to use in constructing the transformer.
kwargs (optional) – Keyword arguments to use in constructing the transformer.
-
fit(*args, **kwargs) → Union[None, Dict[KT, VT]][source]¶ Fits the parameters for this transformation
- Parameters
args – Data to use for fitting this Transformer.
kwargs (optional) – Additional keyword-arguments to use in fit call.
- Returns
Dictionary of updates from fit, or
None.- Return type
dictorNone
-
score(*args, **kwargs) → float[source]¶ Returns the score measure for this Transform
- Parameters
args (optional) – Arguments (data inputs and outputs) to pass to the score call.
kwargs (optional) – Additional keyword-arguements to pass to the score call.
- Returns
Score for the given inputs and outputs.
- Return type
float
-