Flow
TEST7284b8eee6sklearn.dummy.DummyClassifier

TEST7284b8eee6sklearn.dummy.DummyClassifier

Visibility: public Uploaded 10-01-2024 by Continuous Integration sklearn==0.23.1 numpy>=1.13.3 scipy>=0.19.1 joblib>=0.11 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_0.23.1
Issue #Downvotes for this reason By


Loading wiki
Help us complete this description Edit
DummyClassifier is a classifier that makes predictions using simple rules. This classifier is useful as a simple baseline to compare with other (real) classifiers. Do not use it for real problems.

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
strategyStrategy to use to generate predictions * "stratified": generates predictions by respecting the training set's class distribution * "most_frequent": always predicts the most frequent label in the training set * "prior": always predicts the class that maximizes the class prior (like "most_frequent") and ``predict_proba`` returns the class prior * "uniform": generates predictions uniformly at random * "constant": always predicts a constant label that is provided by the user. This is useful for metrics that evaluate a non-majority class .. versionchanged:: 0.22 The default value of `strategy` will change to "prior" in version 0.24. Starting from version 0.22, a warning will be raised if `strategy` is not explicitly set .. versionadded:: 0.17 Dummy Classifier now supports prior fitting strategy using parameter *prior*default: "prior"

0
Runs

List all runs
Parameter:
Rendering chart
Rendering table