Initializer

scalation.modeling.Initializer
object Initializer

The Initializer object provides functions to initialize the parameters/weights of Neural Networks. Supports Uniform, Normal and Nguyen & Widrow methods.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def weightMat(rows: Int, cols: Int, stream: Int, limit: Double): MatrixD

Generate a random weight/parameter matrix with elements values in (0, limit).

Generate a random weight/parameter matrix with elements values in (0, limit).

Value parameters

cols

the number of columns

limit

the maximum value for any weight

rows

the number of rows

stream

the random number stream to use

Attributes

def weightMat2(rows: Int, cols: Int, stream: Int): MatrixD

Generate a random weight/parameter matrix with elements values from the Standard Normal distribution.

Generate a random weight/parameter matrix with elements values from the Standard Normal distribution.

Value parameters

cols

the number of columns

rows

the number of rows

stream

the random number stream to use

Attributes

def weightMat3(rows: Int, cols: Int, stream: Int): MatrixD

Generate a random weight/parameter matrix with elements values from the Nguyen & Widrow method.

Generate a random weight/parameter matrix with elements values from the Nguyen & Widrow method.

Value parameters

cols

the number of columns

rows

the number of rows

stream

the random number stream to use

Attributes

See also

ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=6945481

def weightVec(rows: Int, stream: Int, limit: Double): VectorD

Generate a random weight/parameter vector with elements values in (0, limit).

Generate a random weight/parameter vector with elements values in (0, limit).

Value parameters

limit

the maximum value for any weight

rows

the number of rows

stream

the random number stream to use

Attributes

def weightVec2(rows: Int, stream: Int): VectorD

Generate a random weight/parameter matrix with elements values from the Standard Normal distribution.

Generate a random weight/parameter matrix with elements values from the Standard Normal distribution.

Value parameters

rows

the number of rows

stream

the random number stream to use

Attributes

def weightVec3(rows: Int, stream: Int): VectorD

Generate a random weight/parameter matrix with elements values from the Nguyen & Widrow Method.

Generate a random weight/parameter matrix with elements values from the Nguyen & Widrow Method.

Value parameters

rows

the number of rows

stream

the random number stream to use

Attributes

See also

ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=6945481