Bases: pycast.errors.baseerrormeasure.BaseErrorMeasure
Implements the symmetric mean absolute percentage error whose values are between 0 and 200%.
Explanation: http://www.stat.iastate.edu/preprint/articles/2004-10.pdf (page 14)
If the calculated value and the original value are equal, the error is 0.
This is the error calculation function that gets called by BaseErrorMeasure.get_error().
Both parameters will be correct at this time.
Parameters: |
|
---|---|
Returns: | Returns a float representing the error. |
Return type: | float |
Calculates the error between the two given values.
Parameters: |
|
---|---|
Returns: | Returns the error measure of the two given values. |
Return type: | numeric |