object Initializer
The Initializer
object provides functions to initialize the parameters/weights
of Neural Networks. Supports Uniform, Normal and Nguyen & Widrow methods.
- Alphabetic
- By Inheritance
- Initializer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
weightMat(rows: Int, cols: Int, stream: Int = 0, limit: Double = -1.0): MatriD
Generate a random weight/parameter matrix with elements values in (0, limit).
Generate a random weight/parameter matrix with elements values in (0, limit).
- rows
the number of rows
- cols
the number of columns
- stream
the random number stream to use
- limit
the maximum value for any weight
-
def
weightMat2(rows: Int, cols: Int, stream: Int = 0): MatriD
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.
- rows
the number of rows
- cols
the number of columns
- stream
the random number stream to use
-
def
weightMat3(rows: Int, cols: Int, stream: Int = 0): MatriD
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.
- rows
the number of rows
- cols
the number of columns
- stream
the random number stream to use
- See also
ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=6945481
-
def
weightVec(rows: Int, stream: Int = 0, limit: Double = -1.0): VectoD
Generate a random weight/parameter matrix with elements values in (0, limit).
Generate a random weight/parameter matrix with elements values in (0, limit).
- rows
the number of rows
- stream
the random number stream to use
- limit
the maximum value for any weight
-
def
weightVec2(rows: Int, stream: Int = 0): VectoD
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.
- rows
the number of rows
- stream
the random number stream to use
-
def
weightVec3(rows: Int, stream: Int = 0): VectoD
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.
- rows
the number of rows
- stream
the random number stream to use
- See also
ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=6945481