mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-21 20:45:10 +00:00
Fix documentation of ClassificationReport (#209)
* Fix values in example code * Remove inconsistent empty lines
This commit is contained in:
parent
4ab73eec5b
commit
9f0723f7d0
@ -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]
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user