Tags¶
yohou.utils.tags.Tags
dataclass
¶
Metadata tags for yohou estimators.
This dataclass holds metadata about estimator capabilities and requirements, following the same pattern as sklearn.utils.Tags but tailored for time series forecasting.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
estimator_type
|
(transformer, forecaster, scorer, similarity, splitter)
|
Type of estimator. Determines which specialized tags are relevant. |
"transformer"
|
requires_fit
|
bool
|
Whether the estimator needs to be fitted before use. |
True
|
non_deterministic
|
bool
|
Whether the estimator produces non-deterministic results (e.g., uses random sampling). |
False
|
input_tags
|
InputTags or None
|
Tags describing input requirements. Automatically initialized if None |
None
|
target_tags
|
TargetTags or None
|
Tags describing target requirements. Automatically initialized if None. |
None
|
transformer_tags
|
TransformerTags or None
|
Tags specific to transformers. Only relevant when estimator_type="transformer". Automatically initialized if None and estimator_type="transformer". |
None
|
forecaster_tags
|
ForecasterTags or None
|
Tags specific to forecasters. Only relevant when estimator_type="forecaster". Automatically initialized if None and estimator_type="forecaster". |
None
|
scorer_tags
|
ScorerTags or None
|
Tags specific to scorers/metrics. Only relevant when estimator_type="scorer". Automatically initialized if None and estimator_type="scorer". |
None
|
similarity_tags
|
SimilarityTags or None
|
Tags specific to similarity measures. Only relevant when estimator_type="similarity". Automatically initialized if None and estimator_type="similarity". |
None
|
splitter_tags
|
SplitterTags or None
|
Tags specific to cross-validation splitters. Only relevant when estimator_type="splitter". Automatically initialized if None and estimator_type="splitter". |
None
|
Source Code¶
Show/Hide source
Methods¶
__post_init__()
¶
Initialize nested tags after dataclass initialization.