Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAPE metric: output number range changed, unit tests added
- Loading branch information
Showing
5 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
enum MetricType { mape, rmse, accuracy, precision } | ||
/// Metrics for measuring the quality of the prediction. | ||
enum MetricType { | ||
/// Mean percentage absolute error (MAPE), a regression metric. The less the | ||
/// score produced by the metric, the better the prediction's quality is. Can | ||
/// lead to error if there are zero values among the original values. Normally, | ||
/// the metric produces scores within the range [0, 1], but extremely high | ||
/// predicted values (>> original values) can produce scores which are | ||
/// greater than 1. | ||
mape, | ||
|
||
/// Root mean squared error, a regression metric. The less the score produced | ||
/// by the metric, the better the prediction's quality is. The metric produces | ||
/// scores within the range [0, +Infinity] | ||
rmse, | ||
|
||
/// A classification metric. The greater the score produced by the metric, the | ||
/// better the prediction's quality is. The metric produces scores within the | ||
/// range [0, 1] | ||
accuracy, | ||
|
||
/// A classification metric. The greater the score produced by the metric, the | ||
/// better the prediction's quality is. The metric produces scores within the | ||
/// range [0, 1] | ||
precision, | ||
} |