Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Phpml\CrossValidation\Split Class Reference
Inheritance diagram for Phpml\CrossValidation\Split:
Phpml\CrossValidation\RandomSplit Phpml\CrossValidation\StratifiedRandomSplit

Public Member Functions

 __construct (Dataset $dataset, float $testSize=0.3, ?int $seed=null)
 
 getTestLabels ()
 
 getTestSamples ()
 
 getTrainLabels ()
 
 getTrainSamples ()
 

Protected Member Functions

 seedGenerator (?int $seed=null)
 
 splitDataset (Dataset $dataset, float $testSize)
 

Protected Attributes

array $testLabels = []
 
array $testSamples = []
 
array $trainLabels = []
 
array $trainSamples = []
 

The documentation for this class was generated from the following file: