Packages

object QuadRegression extends ModelFactory

The QuadRegression 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. QuadRegression
  2. ModelFactory
  3. Error
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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

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

    Create a QuadRegression 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

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

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

    Create a QuadRegression 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

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

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

    Given a vector/point 'v', compute the values for all of its quadratic, linear and constant forms/terms, returning them as a vector. No interaction/cross-terms. for 1D: v = (x_0) => 'VectorD (1, x_0, x_02)' for 2D: v = (x_0, x_1) => 'VectorD (1, x_0, x_1, x_02, x_1^2)'

    v

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

    k

    number of features/predictor variables (not counting intercept) [not used]

    nt

    the number of terms

    Definition Classes
    QuadRegressionModelFactory
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def numTerms(k: Int): Int

    The number of quadratic, linear and constant forms/terms (1, 3, 5, 7, ...).

    The number of quadratic, linear and constant forms/terms (1, 3, 5, 7, ...). when there are no cross-terms.

    k

    number of features/predictor variables (not counting intercept)

    Definition Classes
    QuadRegressionModelFactory
  21. 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
  22. def rescaleOff(): Unit

    Turn rescaling off.

    Turn rescaling off.

    Definition Classes
    ModelFactory
  23. def rescaleOn(): Unit

    Turn rescaling on.

    Turn rescaling on.

    Definition Classes
    ModelFactory
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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