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

Public Member Functions

 __construct (int $norm=self::NORM_L2)
 
 fit (array $samples, ?array $targets=null)
 
 transform (array &$samples, ?array &$targets=null)
 

Public Attributes

const NORM_L1 = 1
 
const NORM_L2 = 2
 
const NORM_STD = 3
 

Constructor & Destructor Documentation

◆ __construct()

Phpml\Preprocessing\Normalizer::__construct ( int $norm = self::NORM_L2)
Exceptions
NormalizerException

Member Function Documentation

◆ fit()

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

Implements Phpml\Transformer.

◆ transform()

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

Implements Phpml\Transformer.


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