PHP Class Phpml\CrossValidation\StratifiedRandomSplit

Inheritance: extends RandomSplit
Exibir arquivo Open project: php-ai/php-ml Class Usage Examples

Protected Methods

Method Description
splitDataset ( Phpml\Dataset\Dataset $dataset, float $testSize )

Private Methods

Method Description
createDatasets ( array $uniqueTargets, array $split ) : array
splitByTarget ( Phpml\Dataset\Dataset $dataset ) : array

Method Details

splitDataset() protected method

protected splitDataset ( Phpml\Dataset\Dataset $dataset, float $testSize )
$dataset Phpml\Dataset\Dataset
$testSize float