hanaml.AccuracyMeasure {hana.ml.r}R Documentation

Accuracy Measure

Description

hanaml.AccuracyMeasure is a R wrapper for PAL accuracy measure algorithm.

Usage

hanaml.AccuracyMeasure (conn.context, data, evaluation.metric)

Arguments

conn.context

ConnectionContext
The connection to the SAP HANA system.

data

DataFrame
DataFrame containing the data for accuracy measure calculations.
It needs to contain two columns that correspond to true values and predicted values, respectively.

evaluation.metric

character or list of characters, optional
Specifies measure name.

  • mpe: Mean percentage error.

  • mse: Mean squared error.

  • rmse: Root mean squared error.

  • et: Error total.

  • mad: Mean absolute deviation.

  • mase: Out-of-sample mean absolute scaled error.

  • wmape: Weighted mean absolute percentage error.

  • smape: Symmetric mean absolute percentage error.

  • mape: Mean absolute percentage error.

Details

Measures are used to check the accuracy of the forecast made by PAL algorithms.

Value

Examples

## Not run: 
Input dataFrame data:
> data$Collect()
  ACTUALCOL FORECASTCOL
1      1130        1270
2      2410        2340
3      2210        2310
4      2500        2340

Invoke hanaml.AccuracyMeasure():
> am <- hanaml.AccuracyMeasure(conn,
                               data,
                               evaluation.metric = list("mse","mpe"))

Output:
> am$Collect()
  STAT_NAME    STAT_VALUE
1       MPE -1.902426e-02
2       MSE  1.502500e+04

## End(Not run)

[Package hana.ml.r version 1.0.8 Index]