Packages

object ExpRegression extends ModelFactory

The ExpRegression companion object provides factory apply functions and a testing method.

Linear Supertypes
ModelFactory, Error, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExpRegression
  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, nonneg: Boolean): ExpRegression

    Create an ExpRegression object from a data matrix and a response vector.

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

    x

    the data/input m-by-n matrix (augment with a first column of ones to include intercept in model)

    y

    the response/output m-vector

    fname

    the feature/variable names (use null for default)

    hparam

    the hyper-parameters (use null for default)

    nonneg

    whether to check that responses are nonnegative

    See also

    ModelFactory

  3. def apply(xy: MatriD, fname: Strings = null, hparam: HyperParameter = null, nonneg: Boolean = true): ExpRegression

    Create an ExpRegression object from a combined data-response matrix.

    Create an ExpRegression object from a combined data-response matrix. The last column is assumed to be the response column.

    xy

    the combined data-response matrix (predictors and response)

    fname

    the feature/variable names

    hparam

    the hyper-parameters

    nonneg

    whether to check that responses are nonnegative

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

    Given a vector/point 'v', compute the values for all of its forms/terms, returning them as a vector (assumes Regression with intercept).

    Given a vector/point 'v', compute the values for all of its forms/terms, returning them as a vector (assumes Regression with intercept). Override for expanded columns, e.g., QuadRegression.

    xi

    the vector/point (i-th row of x) for creating forms/terms

    k

    the number of features/predictor variables (not counting intercept)

    nt

    the number of terms

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

    The number of terms/parameters in the model (assumes Regression with intercept.

    The number of terms/parameters in the model (assumes Regression with intercept. Override for expanded columns, e.g., QuadRegression.

    k

    the number of features/predictor variables (not counting intercept)

    Definition Classes
    ModelFactory
  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