mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-24 22:07:33 +00:00
Update imputation example to use transform method (#57)
This commit is contained in:
parent
39747efdc1
commit
8be19567a2
@ -34,7 +34,7 @@ $data = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
$imputer = new Imputer(null, new MeanStrategy(), Imputer::AXIS_COLUMN);
|
$imputer = new Imputer(null, new MeanStrategy(), Imputer::AXIS_COLUMN);
|
||||||
$imputer->preprocess($data);
|
$imputer->transform($data);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
$data = [
|
$data = [
|
||||||
|
Loading…
Reference in New Issue
Block a user