Dummy Classifier#

A classifier that uses a user-defined guessing Strategy to make predictions. 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


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


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

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

Additional Methods#

This estimator does not have any additional methods.