Свойство | Тип | Описание | |
---|---|---|---|
$testLabels | array | ||
$testSamples | array | ||
$trainLabels | array | ||
$trainSamples | array |
Метод | Описание | |
---|---|---|
__construct ( Phpml\Dataset\Dataset $dataset, float $testSize = 0.3, integer $seed = null ) | ||
getTestLabels ( ) : array | ||
getTestSamples ( ) : array | ||
getTrainLabels ( ) : array | ||
getTrainSamples ( ) : array |
Метод | Описание | |
---|---|---|
seedGenerator ( integer $seed = null ) | ||
splitDataset ( Phpml\Dataset\Dataset $dataset, float $testSize ) |
public __construct ( Phpml\Dataset\Dataset $dataset, float $testSize = 0.3, integer $seed = null ) | ||
$dataset | Phpml\Dataset\Dataset | |
$testSize | float | |
$seed | integer |
abstract protected splitDataset ( Phpml\Dataset\Dataset $dataset, float $testSize ) | ||
$dataset | Phpml\Dataset\Dataset | |
$testSize | float |