Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Phpml
Preprocessing
Normalizer
PHP Class Phpml\Preprocessing\Normalizer
Inheritance:
implements
Preprocessor
Afficher le fichier
Open project: php-ai/php-ml
Class Usage Examples
Méthodes publiques
Méthode
Description
__construct
(
integer
$norm
= self::NORM_L2 )
fit
(
array
$samples
)
transform
(
array
&
$samples
)
Private Methods
Méthode
Description
normalizeL1
(
array
&
$sample
)
normalizeL2
(
array
&
$sample
)
Method Details
__construct()
public
méthode
public
__construct
(
integer
$norm
= self::NORM_L2 )
$norm
integer
fit()
public
méthode
public
fit
(
array
$samples
)
$samples
array
transform()
public
méthode
public
transform
(
array
&
$samples
)
$samples
array