Packages

object NeuralNet_XL extends ModelFactory

The NeuralNet_XL companion object provides factory functions for buidling multi-layer neural nets (defaults to two hidden layers). Note, 'rescale' is defined in ModelFactory in Model.scala.

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

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, nz: Array[Int], fname: Strings, hparam: HyperParameter, af: Array[AFF]): NeuralNet_XL

    Create a NeuralNet_XL for a data matrix and response vector.

    Create a NeuralNet_XL for a data matrix and response vector.

    x

    the input/data matrix

    y

    the output/response vector

    nz

    the number of nodes in each hidden layer, e.g., Array (5, 10) means 2 hidden with sizes 5 and 10

    fname

    the feature/variable names

    hparam

    the hyper-parameters

    af

    the array of activation function families over all layers

  3. def apply(xy: MatriD, nz: Array[Int] = null, fname: Strings = null, hparam: HyperParameter = Optimizer.hp, af: Array[AFF] = Array (f_tanh, f_tanh, f_id)): NeuralNet_XL

    Create a NeuralNet_XL for a combined data matrix.

    Create a NeuralNet_XL for a combined data matrix.

    xy

    the combined input and output matrix

    nz

    the number of nodes in each hidden layer, e.g., Array (5, 10) means 2 hidden with sizes 5 and 10

    fname

    the feature/variable names

    hparam

    the hyper-parameters

    af

    the array of activation function families over all layers

  4. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  5. 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
  6. 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
  7. def rescaleOff(): Unit

    Turn rescaling off.

    Turn rescaling off.

    Definition Classes
    ModelFactory
  8. def rescaleOn(): Unit

    Turn rescaling on.

    Turn rescaling on.

    Definition Classes
    ModelFactory