Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Phpml
Preprocessing
Normalizer
PHP Class Phpml\Preprocessing\Normalizer
Inheritance:
implements
Preprocessor
显示文件
Open project: php-ai/php-ml
Class Usage Examples
Public Methods
Method
Description
__construct
(
integer
$norm
= self::NORM_L2 )
fit
(
array
$samples
)
transform
(
array
&
$samples
)
Private Methods
Method
Description
normalizeL1
(
array
&
$sample
)
normalizeL2
(
array
&
$sample
)
Method Details
__construct()
public
method
public
__construct
(
integer
$norm
= self::NORM_L2 )
$norm
integer
fit()
public
method
public
fit
(
array
$samples
)
$samples
array
transform()
public
method
public
transform
(
array
&
$samples
)
$samples
array