Skip to content


Leave P Out#

Leave P Out tests a learner with a unique holdout set of size p for each iteration until all samples have been tested. Although Leave P Out can take long with large datasets and small values of p, it is especially suited for small datasets.

Interfaces: Validator, Parallel


# Name Default Type Description
1 p 10 int The number of samples to leave out each round for testing.


use Rubix\ML\CrossValidation\LeavePOut;

$validator = new LeavePOut(50);