Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Phpml\FeatureSelection\SelectKBest Class Reference
Inheritance diagram for Phpml\FeatureSelection\SelectKBest:
Phpml\Transformer

Public Member Functions

 __construct (int $k=10, ?ScoringFunction $scoringFunction=null)
 
 fit (array $samples, ?array $targets=null)
 
 scores ()
 
 transform (array &$samples, ?array &$targets=null)
 

Member Function Documentation

◆ fit()

Phpml\FeatureSelection\SelectKBest::fit ( array $samples,
?array $targets = null )

Implements Phpml\Transformer.

◆ transform()

Phpml\FeatureSelection\SelectKBest::transform ( array & $samples,
?array & $targets = null )

Implements Phpml\Transformer.


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