Skip to content

[source]

Dummy Classifier#

A classifier that makes predictions using a user-defined guessing strategy that disregards the information contained in the features of each sample. Dummy Classifier is useful to provide a sanity check and to compare performance with an actual classifier.

Interfaces: Estimator, Learner, Persistable

Data Type Compatibility: Categorical, Continuous, Resource

Parameters#

# Name Default Type Description
1 strategy Prior Strategy The guessing strategy to employ when making predictions.

Example#

use Rubix\ML\Classifiers\DummyClassifier;
use Rubix\ML\Strategies\Prior;

$estimator = new DummyClassifier(new Prior());

Additional Methods#

This estimator does not have any additional methods.


Last update: 2021-03-27