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

Public Member Functions

 __construct ($missingValue, Strategy $strategy, int $axis=self::AXIS_COLUMN, array $samples=[])
 
 fit (array $samples, ?array $targets=null)
 
 transform (array &$samples, ?array &$targets=null)
 

Public Attributes

const AXIS_COLUMN = 0
 
const AXIS_ROW = 1
 

Constructor & Destructor Documentation

◆ __construct()

Phpml\Preprocessing\Imputer::__construct ( $missingValue,
Strategy $strategy,
int $axis = self::AXIS_COLUMN,
array $samples = [] )
Parameters
mixed$missingValue

Member Function Documentation

◆ fit()

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

Implements Phpml\Transformer.

◆ transform()

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

Implements Phpml\Transformer.


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