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

Public Member Functions

 classes ()
 
 fit (array $samples, ?array $targets=null)
 
 inverseTransform (array &$samples)
 
 transform (array &$samples, ?array &$targets=null)
 

Member Function Documentation

◆ classes()

Phpml\Preprocessing\LabelEncoder::classes ( )
Return values
string[]

◆ fit()

Phpml\Preprocessing\LabelEncoder::fit ( array $samples,
?array $targets = null )

Implements Phpml\Transformer.

◆ transform()

Phpml\Preprocessing\LabelEncoder::transform ( array & $samples,
?array & $targets = null )

Implements Phpml\Transformer.


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