PHP Class Phpml\Preprocessing\Imputer

Inheritance: implements Preprocessor
Mostrar archivo Open project: php-ai/php-ml Class Usage Examples

Public Methods

Method Description
__construct ( mixed $missingValue, Phpml\Preprocessing\Imputer\Strategy $strategy, integer $axis = self::AXIS_COLUMN, array $samples = [] )
fit ( array $samples )
transform ( array &$samples )

Private Methods

Method Description
getAxis ( integer $column, array $currentSample ) : array
preprocessSample ( array &$sample )

Method Details

__construct() public method

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

fit() public method

public fit ( array $samples )
$samples array

transform() public method

public transform ( array &$samples )
$samples array