Methods
(static) rmse(outputPairs)
Root Mean Square Error.
RMSE is the standard deviation of the prediction errors.
Parameters:
Name | Type | Description |
---|---|---|
outputPairs |
An iterable of array-pairs that contain the expected and predicted values. |
Returns:
The value of the RMSE metric.
(static) score(outputPairs)
Classification Accuracy.
The ratio of number of correct predictions to the total number of provided pairs. For a prediction to be considered as correct, the index of its maximum expected value needs to be the same with the index of its maximum predicted value.
Parameters:
Name | Type | Description |
---|---|---|
outputPairs |
An iterable of array-pairs that contain the expected and predicted values. |
Returns:
The score of the classification accuracy.