Skip to content

Commit

Permalink
KnnRegressor usage example fixed in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gyrdym committed Oct 24, 2019
1 parent 379bdcd commit 8bfe681
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 13.3.1
- `readme`: KnnRegressor usage example fixed

## 13.3.0
- `KnnClassifier` class added

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ Assess a knn regressor with the chosen `k` value using MAPE metric

````dart
final error = validator.evaluate((samples, targetNames) =>
ParameterlessRegressor.knn(samples, targetNames[0], k: 4), MetricType.mape);
KnnRegressor(samples, targetNames[0], 4), MetricType.mape);
````

Let's print our error
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ml_algo
description: Machine learning algorithms written in native dart
version: 13.3.0
version: 13.3.1
author: Ilia Gyrdymov <ilgyrd@gmail.com>
homepage: https://github.com/gyrdym/ml_algo

Expand Down

0 comments on commit 8bfe681

Please sign in to comment.