hanaml.AccuracyMeasure.Rdhanaml.AccuracyMeasure is a R wrapper for SAP HANA PAL accuracy measure algorithm.
hanaml.AccuracyMeasure(data, evaluation.metric)
| data |
|
|---|---|
| evaluation.metric |
|
DataFrame
Results of the forecast accuracy measurement, structured as follows:
STAT_NAME: name of the accuracy measures.
STAT_VALUE: values of the accuracy measures.
Measures are used to check the accuracy of the forecast made by SAP HANA PAL algorithms.
Input dataFrame data:
> data$Collect() ACTUALCOL FORECASTCOL 1 1130 1270 2 2410 2340 3 2210 2310 4 2500 2340
Invoke the function:
> am <- hanaml.AccuracyMeasure(data,
evaluation.metric = list("mse","mpe"))
Output:
> am$Collect() STAT_NAME STAT_VALUE 1 MPE -1.902426e-02 2 MSE 1.502500e+04