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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- 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
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- var b: VectoD
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated