[source]

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

Parameters#

# Param Default Type Description
1 strategy Popularity Contest object The guessing strategy to employ when guessing the outcome of a sample.

Additional Methods#

This estimator does not have any additional methods.

Example#

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

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