PHP Class Phpml\Preprocessing\Normalizer

Inheritance: implements Preprocessor
Datei anzeigen 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