Source

Dummy Regressor#

Regressor that guesses output values based on a user-defined guessing Strategy. Dummy Regressor is useful to provide a sanity check and to compare performance against actual Regressors.

Interfaces: Estimator, Learner, Persistable

Data Type Compatibility: Categorical, Continuous, Resource

Parameters#

# Param Default Type Description
1 strategy Mean 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\Regressors\DummyRegressor;
use Rubix\ML\Other\Strategies\Percentile;

$estimator = new DummyRegressor(new Percentile(56.5, 0.1));