Packages

object CubicXRegression extends ModelFactory

The CubicXRegression companion object provides methods for creating functional forms.

Linear Supertypes
ModelFactory, Error, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CubicXRegression
  2. ModelFactory
  3. Error
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def allForms(x: MatriD): MatriD

    Create all forms/terms for each row/point placing them in a new matrix.

    Create all forms/terms for each row/point placing them in a new matrix.

    x

    the original un-expanded input/data matrix

    Definition Classes
    ModelFactory
  2. def apply(x: MatriD, y: VectoD, fname: Strings, hparam: HyperParameter, technique: RegTechnique.RegTechnique): CubicXRegression

    Create a CubicXRegression object from a data matrix and a response vector.

    Create a CubicXRegression object from a data matrix and a response vector. This factory function provides data rescaling.

    x

    the initial data/input matrix (before quadratic term expansion)

    y

    the response/output m-vector

    fname

    the feature/variable names (use null for default)

    hparam

    the hyper-parameters (use null for default)

    technique

    the technique used to solve for b in x.t*x*b = x.t*y (use OR for default)

    See also

    ModelFactory

  3. def apply(xy: MatriD, fname: Strings = null, hparam: HyperParameter = null, technique: RegTechnique.RegTechnique = QR): CubicXRegression

    Create a CubicXRegression object from a combined data-response matrix.

    Create a CubicXRegression object from a combined data-response matrix.

    xy

    the initial combined data-response matrix (before quadratic term expansion)

    hparam

    the hyper-parameters

    technique

    the technique used to solve for b in x.t*x*b = x.t*y

  4. val drp: (Null, Null, RegTechnique.Value)
  5. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  6. def forms(v: VectoD, k: Int, nt: Int): VectoD

    Given a vector/point 'p', compute the values for all of its cubic, quadratic, linear and constant forms/terms, returning them as a vector.

    Given a vector/point 'p', compute the values for all of its cubic, quadratic, linear and constant forms/terms, returning them as a vector. for 1D: v = (x_0) => 'VectorD (1, x_0, x_02, x_03)' for 2D: v = (x_0, x_1) => 'VectorD (1, x_0, x_02, x_03, x_1, x_12, x_13, x_0*x_1, x_02*x_1, x_0*x_12)'

    v

    the source vector/point for creating forms/terms

    k

    number of features/predictor variables (not counting intercept)

    nt

    the number of terms

    Definition Classes
    CubicXRegressionModelFactory
  7. def numTerms(k: Int): Int

    The number of cubic, quadratic, linear and constant forms/terms (4, 10, 20, 35, ...).

    The number of cubic, quadratic, linear and constant forms/terms (4, 10, 20, 35, ...).

    k

    number of features/predictor variables (not counting intercept)

    Definition Classes
    CubicXRegressionModelFactory
  8. def rescaleOff(): Unit

    Turn rescaling off.

    Turn rescaling off.

    Definition Classes
    ModelFactory
  9. def rescaleOn(): Unit

    Turn rescaling on.

    Turn rescaling on.

    Definition Classes
    ModelFactory