evalml.pipelines.components.BaselineClassifier.__init__

BaselineClassifier.__init__(strategy='mode', random_state=0, **kwargs)[source]

Baseline classifier that uses a simple strategy to make predictions.

Parameters
  • strategy (str) – Method used to predict. Valid options are “mode”, “random” and “random_weighted”. Defaults to “mode”.

  • random_state (int) – Seed for the random number generator. Defaults to 0.