From b2a4c6481ccdc175434018262fd3fd25c6a2aa63 Mon Sep 17 00:00:00 2001 From: Andrew DalPino Date: Thu, 6 Aug 2020 18:11:19 -0500 Subject: [PATCH] Update to Rubix ML 0.1.0 --- composer.json | 2 +- validate.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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;