Source

Hold Out#

Hold Out is a simple cross validation technique that uses a validation set that is held out from the training data. The advantages of Hold Out is that it is quick, but it doesn't allow the learner to train and test on the entire training set.

Interfaces: Validator

Parameters#

# Param Default Type Description
1 ratio 0.2 float The ratio of samples to hold out for testing.

Example#

use Rubix\ML\CrossValidation\HoldOut;

$validator = new HoldOut(0.3);