Skip to content

Commit

Permalink
Fix documentation of ClassificationReport (#209)
Browse files Browse the repository at this point in the history
* Fix values in example code

* Remove inconsistent empty lines
  • Loading branch information
y-uti authored and akondas committed Jan 31, 2018
1 parent 4ab73ee commit 9f0723f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/machine-learning/metric/classification-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -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];
```

Expand All @@ -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]
```

0 comments on commit 9f0723f

Please sign in to comment.