Phpml\Preprocessing\Imputer::preprocessSample PHP Method

preprocessSample() private method

private preprocessSample ( array &$sample )
$sample array
    private function preprocessSample(array &$sample)
    {
        foreach ($sample as $column => &$value) {
            if ($value === $this->missingValue) {
                $value = $this->strategy->replaceValue($this->getAxis($column, $sample));
            }
        }
    }