cascade.utils.baselines#
- class cascade.utils.baselines.ConstantBaseline(constant: Any, **kwargs: Any)[source]#
Constant function. This baseline can be used for any classification task. It returns only one class (for example it can be majority class)
- __init__(constant: Any, **kwargs: Any) None [source]#
Should be called in any successor - initializes default meta needed.
Successors may pass all of their parameters to superclass for it to be able to log them in meta. Everything that is worth to document about the model can be put either in params or meta_prefix
- fit(x: Any, y: Any, *args: Any, **kwargs: Any) None [source]#
Method to encapsulate training loops. May be provided with any training-related arguments.
- get_meta() List[Dict[Any, Any]] [source]#
- Returns:
meta – A list where first element is this object’s metadata. All other elements represent the other stages of pipeline if present.
Meta can be anything that is worth to document about the object and its properties.
Meta is a list (see Meta type alias) to allow the formation of pipelines.
- Return type:
Meta