Packages

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)

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NetParam
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new NetParam(w: MatriD, b: VectoD = null)

    w

    the weight matrix

    b

    the optional bias/intercept vector (null => not used)

Value Members

  1. 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

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  7. var b: VectoD
  8. def copy: NetParam

    Make a copy of the network parameters.

  9. 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

  10. def productElementNames: Iterator[String]
    Definition Classes
    Product
  11. def set(cw: MatriD, cb: VectoD = null): Unit

    Update/assign '(cw, cb)' to this.

  12. def set(c: NetParam): Unit

    Update/assign 'c' to this.

  13. 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
  14. val w: MatriD