This node package consists with basic time series error evaluation metric implementation in js. You can use this package for any machine learning model evaluation other than the time series secnarios.
Recommended Release: 2.0.5
- First, you have to assign the actual and forecasted the data points in seperate lists in choronological order.
- Make sure to invoke the methods with only the values(data points) without time_stamps.
Provides the direction of the error. Better forecasts yields MFE near to zero. Doesn't identify extreme errors. Easily identify data transformation and observation scale.
Provides overall idea of the error. Better forecasts yields MSE close to zero. Resolve not penalizing the xtereme errors by MFE. Sensitive to observations scale and data transformations.
Provides rooted error value of mse. Shows significance of the balanced error. Better when the rmse near to zero.
Summation of the absolute terms of the errors despicts in Mean Absolute Error
MASE is a scale-free error metric that gives each error as a ratio compared to a baseline’s average error.
Total error represented as an percentage, which is scale -independent and can be used for comparing on different scales. This is asymmetric and allows heavier penality on negative errors than positive errors.
Resolved the asymmetric of MAPE. Error persent as a percentage. This error originally introduced in M3 competition. Fixes the shortcoming of the original MAPE — it has both the lower (0%) and the upper (200%) bounds.
var myerror = require('time-series-error');
a = [1.78,3.76,6.78,9.0]
b = [1.65,3.80,6.10,9.5]
console.log(myerror.mfe(a,b))
console.log(myerror.mse(a,b))
console.log(myerror.rmse(a,b))