FitM

scalation.modeling.FitM
See theFitM companion trait
object FitM

The FitM object provides functions for making fit maps for QoF measures.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
FitM.type

Members list

Value members

Concrete methods

def fitMap(ftVec: VectorD, ftLab: Array[String] = ...): Map[String, String]

Build a map of quality of fit measures (use of LinkedHashMap makes it ordered).

Build a map of quality of fit measures (use of LinkedHashMap makes it ordered).

Value parameters

ftLab

the array of QoF labels

ftVec

the vector of QoF values

Attributes

def fitMap(ftMat: MatrixD, ftLab: Array[String]): Map[String, String]

Build a map of quality of fit measures (use of LinkedHashMap makes it ordered).

Build a map of quality of fit measures (use of LinkedHashMap makes it ordered).

Value parameters

ftLab

the array of QoF labels

ftMat

the matrix of QoF values

Attributes

def getTSResult(yf: MatrixD, hh: Int, tForm: Transform): Array[VectorD]

Return common Time Series (TS) results (sample size, sMAPEs, normalized MAEs and MSEs) for all horizons (0->h1, 1->h2, ..., hh-1->hh) using the forecast matrix and return averages. These results are commonly given in research papers.

Return common Time Series (TS) results (sample size, sMAPEs, normalized MAEs and MSEs) for all horizons (0->h1, 1->h2, ..., hh-1->hh) using the forecast matrix and return averages. These results are commonly given in research papers.

Value parameters

hh

total numer of horizons

tForm

the transformation to scale the data

yf

the forecast matrix

Attributes

inline def n_maeF(y: VectorD, yp: VectorD, tForm: Transform = ...): Double

Return the Mean Absolute Error (MAE) score on the normalized/transformed data.

Return the Mean Absolute Error (MAE) score on the normalized/transformed data.

Value parameters

tForm

the transformation to scale the data

y

the given time-series (must be aligned with the forecast)

yp

the forecasted time-series

Attributes

inline def n_mseF(y: VectorD, yp: VectorD, tForm: Transform = ...): Double

Return the Mean Squared Error (MSE) score on the normalized/transformed data.

Return the Mean Squared Error (MSE) score on the normalized/transformed data.

Value parameters

tForm

the transformation to scale the data

y

the given time-series (must be aligned with the forecast)

yp

the forecasted time-series

Attributes

def showFitMap(ftMat: MatrixD, ftLab: Array[String]): String

Show the quality of fit measures/metrics for each response/output variable.

Show the quality of fit measures/metrics for each response/output variable.

Value parameters

ftLab

the array of QoF labels

ftMat

the matrix of QoF values (qof x var)

Attributes

def showQofStatTable(stats: Array[Statistic]): Unit

Show the table storing the statistics for QoF measures.

Show the table storing the statistics for QoF measures.

Value parameters

stats

the table of statistics for QoF measures

Attributes

inline def smapeF(y: VectorD, yp: VectorD, e_: VectorD = ...): Double

Return the symmetric Mean Absolute Percentage Error (sMAPE) score.

Return the symmetric Mean Absolute Percentage Error (sMAPE) score.

Value parameters

e_

the error/residual vector (if null, recompute)

y

the given time-series (must be aligned with the forecast)

yp

the forecasted time-series

Attributes