Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
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: