Skip to content

Random classifier

Random classifier, for chaos purposes. Classifies each box to a random element.

Parameters

PARAMETER DESCRIPTION
pipeline

The pipeline object.

TYPE: Pipeline

name

The name of the component.

TYPE: str DEFAULT: 'random-classifier'

labels

The labels to assign to each line. If a list is passed, each label is assigned with equal probability. If a dict is passed, the keys are the labels and the values are the probabilities.

TYPE: Union[List[str], Dict[str, float]]