Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
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: