Flow
TESTd8566dc583sklearn.dummy.DummyClassifier

TESTd8566dc583sklearn.dummy.DummyClassifier

Visibility: public Uploaded 10-01-2024 by Continuous Integration sklearn==1.3.2 numpy>=1.17.3 scipy>=1.5.0 joblib>=1.1.1 threadpoolctl>=2.0.0 0 runs
0 likes downloaded by 0 people 0 issues 0 downvotes , 0 total downloads
  • openml-python python scikit-learn sklearn sklearn_1.3.2
Issue #Downvotes for this reason By


Loading wiki
Help us complete this description Edit
DummyClassifier makes predictions that ignore the input features. This classifier serves as a simple baseline to compare against other more complex classifiers. The specific behavior of the baseline is selected with the `strategy` parameter. All strategies make predictions that ignore the input feature values passed as the `X` argument to `fit` and `predict`. The predictions, however, typically depend on values observed in the `y` parameter passed to `fit`. Note that the "stratified" and "uniform" strategies lead to non-deterministic predictions that can be rendered deterministic by setting the `random_state` parameter if needed. The other strategies are naturally deterministic and, once fit, always return the same constant prediction for any value of `X`.

Parameters

constantThe explicit constant as predicted by the "constant" strategy. This parameter is useful only for the "constant" strategy.default: null
random_stateControls the randomness to generate the predictions when ``strategy='stratified'`` or ``strategy='uniform'`` Pass an int for reproducible output across multiple function calls See :term:`Glossary `default: null
strategydefault: "prior"

0
Runs

List all runs
Parameter:
Rendering chart
Rendering table