Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Phpml\Preprocessing\OneHotEncoder Class Reference
Inheritance diagram for Phpml\Preprocessing\OneHotEncoder:
Phpml\Preprocessing\Preprocessor Phpml\Transformer

Public Member Functions

 __construct (bool $ignoreUnknown=false)
 
 fit (array $samples, ?array $targets=null)
 
 transform (array &$samples, ?array &$targets=null)
 

Member Function Documentation

◆ fit()

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

Implements Phpml\Transformer.

◆ transform()

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

Implements Phpml\Transformer.


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