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

Public Member Functions

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

Constructor & Destructor Documentation

◆ __construct()

Phpml\Preprocessing\NumberConverter::__construct ( bool $transformTargets = false,
$nonNumericPlaceholder = null )
Parameters
mixed$nonNumericPlaceholder

Member Function Documentation

◆ fit()

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

Implements Phpml\Transformer.

◆ transform()

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

Implements Phpml\Transformer.


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