scitype__transform_labels#
- scitype__transform_labels()[source]#
The scitype of the target data for the transformer, if required.
String name:
"scitype:transform-labels"Public scitype tag
Values: string, one of
"None","Series","Primitives","Panel"Example:
"Series"Default:
"None"Alias:
"scitype:y"
This tag applies to transformations.
The tag specifies the scitype of the target data
ythat is required, in a case where the transformer requires target data, i.e., the tagrequires_yisTrue.The possible values are:
"None": no target data is required. This value is used if and only if the transformer does not require target data, i.e., the tagrequires_yisFalse."Series": a single time series, inSeriesscitype. If the tagX-y-must-have-same-indexisTrue, then the index, or implied index, of the target series must be the same as the index of the input seriesX."Primitives": a collection of primitive types, e.g., a collection of scalars, inTablescitype. In this case, the number of rows (=instances) inymust always equal the number of instances inX, which typically will be of scitypePanelin this case."Panel": a panel of time series, inPanelscitype.
The tag
scitype:transform-labelsis used in conjunction with the tagrequires_y, which specifies whether target data is required by the transformer.If the tag
requires_yisFalse, then the tagscitype:transform-labelswill be"None".