capability__categorical_in_X
capability__categorical_in_X
- capability__categorical_in_X()[source]
Capability: the estimator can handle categorical variables in the X argument.
String name:
"capability:categorical_in_X"Public capability tag
Values: boolean,
True/FalseExample:
TrueDefault:
True
This tag applies to the
Xargument of forecasters (exogenous data), transformers, classifiers, and regressors.A column of
Xis categorical if itsfeature_kind, as inferred bysktime.datatypes.check_is_scitype, isDtypeKind.CATEGORICAL. This is determined by the column dtype, e.g., forpandasinputs, dtypesobject,string,category, and datetime-like are categorical, while numeric and boolean dtypes are not.If the tag is
True,Xis passed to the estimator unchanged, and the estimator is expected to handle categorical columns natively.If the tag is
False, the estimator cannot handle categorical columns, and will raise aTypeErrorifXcontains one. For forecasters, this applies only ifcapability:exogenousisTrue.

