Packages

abstract class ForecasterVec extends Forecaster

The Forecaster trait provides a common framework for several forecasters. Note, the 'train' method must be called first followed by 'eval'.

Linear Supertypes
Forecaster, Error, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ForecasterVec
  2. Forecaster
  3. Error
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ForecasterVec(t: VectoD, y: VectoD, orders: Int*)

    t

    the time vector

    y

    the input vector (time series data)

    orders

    the orders for the model (e.g., ARIMA (,d,))

Abstract Value Members

  1. abstract def forecast(h: Int): VectoD

    Produce forecasts for 'h' steps ahead into the future

    Produce forecasts for 'h' steps ahead into the future

    h

    the forecasting horizon, number of steps ahead to produce forecasts

    Definition Classes
    Forecaster
  2. abstract def parameters: VectoD

    Return the parameter vector.

  3. abstract def predict(): VectoD

    Return the vector of predicted values on the training data

    Return the vector of predicted values on the training data

    Definition Classes
    Forecaster
  4. abstract def train(): ForecasterVec

    Given a time series 'y', train the prediction function 'y = f(y_)', where 'f(y_)' is a function of the lagged values of 'y', by fitting its parameters.

    Given a time series 'y', train the prediction function 'y = f(y_)', where 'f(y_)' is a function of the lagged values of 'y', by fitting its parameters.

    Definition Classes
    ForecasterVecForecaster

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. def diagnose(yy: VectoD, ee: VectoD): Unit

    Compute diagnostics for the forecaster.

    Compute diagnostics for the forecaster. Override to add more diagnostics. Note, for 'mse' and 'rmse', 'sse' is divided by the number of instances 'm' rather than the degrees of freedom.

    yy

    the response vector, actual values

    ee

    the residual/error vector

    Attributes
    protected
    Definition Classes
    Forecaster
    See also

    en.wikipedia.org/wiki/Mean_squared_error

  7. var e: VectorD
    Attributes
    protected
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def eval(): Unit

    Compute the error and useful diagnostics for the entire dataset.

    Compute the error and useful diagnostics for the entire dataset.

    Definition Classes
    ForecasterVecForecaster
  11. def f_(z: Double): String

    Format a double value.

    Format a double value.

    z

    the double value to format

    Definition Classes
    Forecaster
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def fit: VectoD

    Return the quality of fit including 'sst', 'sse', 'mae', rmse' and 'rSq'.

    Return the quality of fit including 'sst', 'sse', 'mae', rmse' and 'rSq'. Note, if 'sse > sst', the model introduces errors and the 'rSq' may be negative, otherwise, R^2 ('rSq') ranges from 0 (weak) to 1 (strong). Note that 'rSq' is the last or number 5 measure. Override to add more quality of fit measures.

    Definition Classes
    Forecaster
  14. def fitLabel: Seq[String]

    Return the labels for the fit.

    Return the labels for the fit. Override when necessary.

    Definition Classes
    Forecaster
  15. def fitMap: Map[String, String]

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

    Build a map of quality of fit measures (use of LinedHashMap makes it ordered). Override to add more quality of fit measures.

    Definition Classes
    Forecaster
  16. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  17. def forecast(): VectoD

    Produce forecasts for one step ahead into the future

    Produce forecasts for one step ahead into the future

    Definition Classes
    Forecaster
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. val index_rSq: Int
    Definition Classes
    Forecaster
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. val mae: Double
    Attributes
    protected
    Definition Classes
    Forecaster
  23. val mape: Double
    Attributes
    protected
    Definition Classes
    Forecaster
  24. val ml: Int
    Attributes
    protected
  25. val mse: Double
    Attributes
    protected
    Definition Classes
    Forecaster
  26. val mu: Double
    Attributes
    protected
  27. val n: Int
    Attributes
    protected
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. def plotFunc(fVec: VectoD, name: String): Unit

    Plot a function, e.g., Auto-Correlation Function 'ACF', Partial Auto-Correlation Function 'PACF'.

    Plot a function, e.g., Auto-Correlation Function 'ACF', Partial Auto-Correlation Function 'PACF'.

    fVec

    the vector given function values

    name

    the name of the function

  32. val rSq: Double
    Attributes
    protected
    Definition Classes
    Forecaster
  33. val rmse: Double
    Attributes
    protected
    Definition Classes
    Forecaster
  34. val sse: Double
    Attributes
    protected
    Definition Classes
    Forecaster
  35. val ssr: Double
    Attributes
    protected
    Definition Classes
    Forecaster
  36. val sst: Double
    Attributes
    protected
    Definition Classes
    Forecaster
  37. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Forecaster

Inherited from Error

Inherited from AnyRef

Inherited from Any

Ungrouped