Skip to content

Commit

Permalink
Update to Rubix ML 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdalpino committed Aug 6, 2020
1 parent a915808 commit b2a4c64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"require": {
"php": ">=7.2",
"rubix/ml": "^0.1.0-rc2"
"rubix/ml": "^0.1.0"
},
"scripts": {
"train": "@php train.php",
Expand Down
4 changes: 3 additions & 1 deletion validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit b2a4c64

Please sign in to comment.