NeuralNet_3L

scalation.modeling.neuralnet.NeuralNet_3L
See theNeuralNet_3L companion class
object NeuralNet_3L extends Scaling

The NeuralNet_3L companion object provides factory methods for creating three-layer (one hidden layer) neural networks. Note, 'scale' is defined in Scaling.

Attributes

Companion
class
Graph
Supertypes
trait Scaling
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(xy: MatrixD, fname: Array[String], nz: Int, hparam: HyperParameter, f: AFF, f1: AFF)(col: Int): NeuralNet_3L

Create a NeuralNet_3L with automatic rescaling from a combined data matrix.

Create a NeuralNet_3L with automatic rescaling from a combined data matrix.

Value parameters

col

the first designated response column (defaults to the last column)

f

the activation function family for layers 1->2 (input to output)

f1

the activation function family for layers 2->3 (hidden to output)

fname

the feature/variable names

hparam

the hyper-parameters

nz

the number of nodes in hidden layer (-1 => use default formula)

xy

the combined input and output matrix

Attributes

def rescale(x: MatrixD, y: MatrixD, fname: Array[String], nz: Int, hparam: HyperParameter, f: AFF, f1: AFF): NeuralNet_3L

Create a NeuralNet_3L with automatic rescaling from a data matrix and response matrix.

Create a NeuralNet_3L with automatic rescaling from a data matrix and response matrix.

Value parameters

f

the activation function family for layers 1->2 (input to output)

f1

the activation function family for layers 2->3 (hidden to output)

fname

the feature/variable names

hparam

the hyper-parameters

nz

the number of nodes in hidden layer (-1 => use default formula)

x

the input/data matrix

y

the output/response matrix

Attributes

Inherited methods

def setScale(scale_: Boolean): Unit

Set the scale flag to the given value.

Set the scale flag to the given value.

Value parameters

scale_

the new value for the scale flag

Attributes

Inherited from:
Scaling

Inherited fields

protected var scale: Boolean

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

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

Attributes

Inherited from:
Scaling