Packages

object PolyORegression extends ModelFactory

The PolyORegression companion object provides factory functions and functions for creating functional forms.

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

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. def allForms(x: MatriD, ord: Int): 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

    ord

    the order (max degree) of the polynomial

  5. 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
  6. def apply(x: MatriD, y: VectoD, ord: Int, fname: Strings, hparam: HyperParameter, technique: RegTechnique.RegTechnique): PolyORegression

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

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

    x

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

    y

    the response/output m-vector

    ord

    the order (k) of the polynomial (max degree)

    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 Cholesky for default)

    See also

    ModelFactory

  7. def apply(t: VectoD, y: VectoD, ord: Int, fname: Strings, hparam: HyperParameter, technique: RegTechnique.RegTechnique): PolyORegression

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

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

    t

    the initial data/input vector: t_i expands to x_i = [1, t_i, t_i2, ... t_ik]

    y

    the response/ouput vector

    ord

    the order (k) of the polynomial (max degree)

    hparam

    the hyper-parameters

    technique

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

  8. def apply(xy: MatriD, ord: Int, fname: Strings = null, hparam: HyperParameter = null, technique: RegTechnique.RegTechnique = Cholesky): PolyORegression

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

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

    xy

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

    ord

    the order (k) of the polynomial (max degree)

    hparam

    the hyper-parameters

    technique

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

  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. val drp: (Null, Null, RegTechnique.Value)
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  15. def forms(v: VectoD, k: Int, nt: Int): VectoD

    Given a 1-vector/point 'v', compute the values for all of its polynomial forms/terms, returning them as a vector.

    Given a 1-vector/point 'v', compute the values for all of its polynomial forms/terms, returning them as a vector.

    v

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

    k

    number of features/predictor variables (not counting intercept) = 1

    nt

    the number of terms

    Definition Classes
    PolyORegressionModelFactory
  16. def getA: MatriD

    Get the multipliers for orthogonal polynomials, matrix 'a'.

    Get the multipliers for orthogonal polynomials, matrix 'a'. FIX - collecting the 'a' matrix this way may fail for parallel processing

  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. 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
  24. def orthogonalize(x: MatriD): (MatriD, MatriD)

    Orthogonalize the data/input matrix 'x' using Gram-Schmidt Orthogonalization, returning the a new orthogonal matrix 'z' and the orthogonalization multipliers 'a'.

    Orthogonalize the data/input matrix 'x' using Gram-Schmidt Orthogonalization, returning the a new orthogonal matrix 'z' and the orthogonalization multipliers 'a'. This will eliminate the multi-collinearity problem.

    x

    the matrix to orthogonalize

  25. val rescale: Boolean

    The 'rescale' flag indicated whether the data is to be rescaled/normalized

    The 'rescale' flag indicated whether the data is to be rescaled/normalized

    Attributes
    protected
    Definition Classes
    ModelFactory
  26. def rescaleOff(): Unit

    Turn rescaling off.

    Turn rescaling off.

    Definition Classes
    ModelFactory
  27. def rescaleOn(): Unit

    Turn rescaling on.

    Turn rescaling on.

    Definition Classes
    ModelFactory
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from ModelFactory

Inherited from Error

Inherited from AnyRef

Inherited from Any

Ungrouped