diff --git a/composer.json b/composer.json index 6b0ec01..9ead8a2 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ ], "require": { "php": ">=7.2", - "rubix/ml": "^0.1.0-rc2" + "rubix/ml": "^0.1.0" }, "scripts": { "train": "@php train.php", diff --git a/validate.php b/validate.php index d8988ee..b9ee95c 100644 --- a/validate.php +++ b/validate.php @@ -29,6 +29,8 @@ $results = $report->generate($predictions, $dataset->labels()); -file_put_contents('report.json', json_encode($results, JSON_PRETTY_PRINT)); +echo $results; + +$results->toJSON()->write('report.json'); echo 'Report saved to report.json' . PHP_EOL;