case class NetParam(w: MatriD, b: VectoD = null) extends Product with Serializable
The NetParam
class bundles parameter weights and biases together.
- w
the weight matrix
- b
the optional bias/intercept vector (null => not used)
- Alphabetic
- By Inheritance
- NetParam
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new NetParam(w: MatriD, b: VectoD = null)
- w
the weight matrix
- b
the optional bias/intercept vector (null => not used)
Value Members
- def *(x: MatriD): MatriD
Multiply matrix 'x' by the weight matrix 'w' and add the bias vector 'b'.
Multiply matrix 'x' by the weight matrix 'w' and add the bias vector 'b'.
- x
the matrix to multiply by
- def *:(x: MatriD): MatriD
Multiply matrix 'x' by the weight matrix 'w' and add the bias vector 'b'.
Multiply matrix 'x' by the weight matrix 'w' and add the bias vector 'b'. This is the right associative version (
NetParam
on the left).- x
the matrix to multiply by
- def +=(cw: MatriD, cb: VectoD = null): Unit
Add and assign the changes to the parameters (weights and biases).
Add and assign the changes to the parameters (weights and biases).
- cw
the change to the weights
- cb
the change to the baises
- def +=(c: NetParam): Unit
Add and assign the changes to the parameters (weights and biases).
Add and assign the changes to the parameters (weights and biases).
- c
the change to the parameters
- def -=(cw: MatriD, cb: VectoD = null): Unit
Subtract and assign the changes to the parameters (weights and biases).
Subtract and assign the changes to the parameters (weights and biases).
- cw
the change to the weights
- cb
the change to the baises
- def -=(c: NetParam): Unit
Subtract and assign the changes to the parameters (weights and biases).
Subtract and assign the changes to the parameters (weights and biases).
- c
the change to the parameters
- var b: VectoD
- def copy: NetParam
Make a copy of the network parameters.
- def dot(x: VectoD): VectoD
Multiply vector 'x' by the weight matrix 'w' and add the bias vector 'b'.
Multiply vector 'x' by the weight matrix 'w' and add the bias vector 'b'.
- x
the vector to multiply by
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def set(cw: MatriD, cb: VectoD = null): Unit
Update/assign '(cw, cb)' to this.
- def set(c: NetParam): Unit
Update/assign 'c' to this.
- def toString(): String
Convert this
NetParam
object to a string showing this ('b') parameter's weight matrix 'b.w' and bias vector 'b.b'.Convert this
NetParam
object to a string showing this ('b') parameter's weight matrix 'b.w' and bias vector 'b.b'.- Definition Classes
- NetParam → AnyRef → Any
- val w: MatriD