@@ -32,70 +32,69 @@ class SamplerTags:
3232
3333 sample_indices : bool = False
3434
35+ @dataclass (** _dataclass_args ())
36+ class Tags :
37+ """Tags for the estimator.
38+
39+ See :ref:`estimator_tags` for more information.
40+
41+ Parameters
42+ ----------
43+ estimator_type : str or None
44+ The type of the estimator. Can be one of:
45+ - "classifier"
46+ - "regressor"
47+ - "transformer"
48+ - "clusterer"
49+ - "outlier_detector"
50+ - "density_estimator"
51+
52+ target_tags : :class:`TargetTags`
53+ The target(y) tags.
54+
55+ transformer_tags : :class:`TransformerTags` or None
56+ The transformer tags.
57+
58+ classifier_tags : :class:`ClassifierTags` or None
59+ The classifier tags.
60+
61+ regressor_tags : :class:`RegressorTags` or None
62+ The regressor tags.
63+
64+ sampler_tags : :class:`SamplerTags` or None
65+ The sampler tags.
66+
67+ array_api_support : bool, default=False
68+ Whether the estimator supports Array API compatible inputs.
69+
70+ no_validation : bool, default=False
71+ Whether the estimator skips input-validation. This is only meant for
72+ stateless and dummy transformers!
73+
74+ non_deterministic : bool, default=False
75+ Whether the estimator is not deterministic given a fixed ``random_state``.
76+
77+ requires_fit : bool, default=True
78+ Whether the estimator requires to be fitted before calling one of
79+ `transform`, `predict`, `predict_proba`, or `decision_function`.
80+
81+ _skip_test : bool, default=False
82+ Whether to skip common tests entirely. Don't use this unless
83+ you have a *very good* reason.
84+
85+ input_tags : :class:`InputTags`
86+ The input data(X) tags.
87+ """
3588
36- @dataclass (** _dataclass_args ())
37- class Tags :
38- """Tags for the estimator.
39-
40- See :ref:`estimator_tags` for more information.
41-
42- Parameters
43- ----------
44- estimator_type : str or None
45- The type of the estimator. Can be one of:
46- - "classifier"
47- - "regressor"
48- - "transformer"
49- - "clusterer"
50- - "outlier_detector"
51- - "density_estimator"
52-
53- target_tags : :class:`TargetTags`
54- The target(y) tags.
55-
56- transformer_tags : :class:`TransformerTags` or None
57- The transformer tags.
58-
59- classifier_tags : :class:`ClassifierTags` or None
60- The classifier tags.
61-
62- regressor_tags : :class:`RegressorTags` or None
63- The regressor tags.
64-
65- sampler_tags : :class:`SamplerTags` or None
66- The sampler tags.
67-
68- array_api_support : bool, default=False
69- Whether the estimator supports Array API compatible inputs.
70-
71- no_validation : bool, default=False
72- Whether the estimator skips input-validation. This is only meant for
73- stateless and dummy transformers!
74-
75- non_deterministic : bool, default=False
76- Whether the estimator is not deterministic given a fixed ``random_state``.
77-
78- requires_fit : bool, default=True
79- Whether the estimator requires to be fitted before calling one of
80- `transform`, `predict`, `predict_proba`, or `decision_function`.
81-
82- _skip_test : bool, default=False
83- Whether to skip common tests entirely. Don't use this unless
84- you have a *very good* reason.
85-
86- input_tags : :class:`InputTags`
87- The input data(X) tags.
88- """
89-
90- estimator_type : str | None
91- target_tags : TargetTags
92- transformer_tags : TransformerTags | None
93- classifier_tags : ClassifierTags | None
94- regressor_tags : RegressorTags | None
95- sampler_tags : SamplerTags | None
96- array_api_support : bool = False
97- no_validation : bool = False
98- non_deterministic : bool = False
99- requires_fit : bool = True
100- _skip_test : bool = False
101- input_tags : InputTags = field (default_factory = InputTags )
89+ estimator_type : str | None
90+ target_tags : TargetTags
91+ transformer_tags : TransformerTags | None
92+ classifier_tags : ClassifierTags | None
93+ regressor_tags : RegressorTags | None
94+ sampler_tags : SamplerTags | None
95+ array_api_support : bool = False
96+ no_validation : bool = False
97+ non_deterministic : bool = False
98+ requires_fit : bool = True
99+ _skip_test : bool = False
100+ input_tags : InputTags = field (default_factory = InputTags )
0 commit comments