From 9f0723f7d0dfc4b076f720873fcb070213d88ad8 Mon Sep 17 00:00:00 2001 From: Yuji Uchiyama Date: Thu, 1 Feb 2018 03:20:50 +0900 Subject: [PATCH] Fix documentation of ClassificationReport (#209) * Fix values in example code * Remove inconsistent empty lines --- docs/machine-learning/metric/classification-report.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/machine-learning/metric/classification-report.md b/docs/machine-learning/metric/classification-report.md index a0a6acc..53f125b 100644 --- a/docs/machine-learning/metric/classification-report.md +++ b/docs/machine-learning/metric/classification-report.md @@ -36,7 +36,6 @@ After creating the report you can draw its individual metrics: ``` $precision = $report->getPrecision(); - // $precision = ['cat' => 0.5, 'ant' => 0.0, 'bird' => 1.0]; ``` @@ -63,6 +62,5 @@ $report->getSupport(); // ['cat' => 1, 'ant' => 1, 'bird' => 3] $report->getAverage(); -// ['precision' => 0.75, 'recall' => 0.83, 'f1score' => 0.73] - +// ['precision' => 0.5, 'recall' => 0.56, 'f1score' => 0.49] ```