VARX

scalation.modeling.forecasting.multivar.VARX
See theVARX companion class
object VARX

The VARX object supports regression for Multivariate Time Series data. Given a response matrix y, a predictor matrix x is built that consists of lagged y vectors. Additional future response vectors are built for training.

Attributes

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

Members list

Value members

Concrete methods

def apply(xe: MatrixD, y: MatrixD, hh: Int, fname_: Array[String] = ..., tRng: Range = ..., hparam: HyperParameter = ..., bakcast: Boolean = ...): VARX

Create a VARX object from a response matrix. The input/data matrix x is formed from the lagged y vectors as columns in matrix x.

Create a VARX object from a response matrix. The input/data matrix x is formed from the lagged y vectors as columns in matrix x.

Value parameters

bakcast

whether a backcasted value is prepended to the time series (defaults to false)

fname_

the feature/variable names

hh

the maximum forecasting horizon (h = 1 to hh)

hparam

the hyper-parameters (defaults to MakeMatrix4TS.hp)

tRng

the time range, if relevant (time index may suffice)

xe

the matrix of exogenous variable values

y

the response/output matrix (multi-variate time series data)

Attributes

def buildMatrix(xe: MatrixD, y: MatrixD, hp_: HyperParameter, bakcast: Boolean): MatrixD

Build the input matrix by combining the p + spec columns for the trend and endogenous variable with the q * xe.dim2 columns for the exogenous variables.

Build the input matrix by combining the p + spec columns for the trend and endogenous variable with the q * xe.dim2 columns for the exogenous variables.

Value parameters

bakcast

whether a backcasted value is prepended to the time series (defaults to false)

hp_

the hyper-parameters

xe

the matrix of exogenous variable values

y

the matrix vector (time series data)

Attributes

def formNames(n_exo: Int, hp_: HyperParameter): Array[String]

Form an array of names for the features included in the model.

Form an array of names for the features included in the model.

Value parameters

hp_

the hyper-parameters

n_exo

the number of exogenous variable

Attributes