NetParam

scalation.modeling.neuralnet.NetParam
case class NetParam(var w: MatrixD, var b: VectorD)

The NetParam class bundles parameter weights and biases together.

Value parameters

b

the bias/intercept vector

w

the weight matrix

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def *(x: MatrixD): MatrixD

Multiply matrix x by the weight matrix w and add the bias vector b, unless the bias is null.

Multiply matrix x by the weight matrix w and add the bias vector b, unless the bias is null.

Value parameters

x

the matrix to multiply by

Attributes

def *:(x: MatrixD): MatrixD

Multiply matrix x by the weight matrix w and add the bias vector b. This is the right associative version (NetParam on the left).

Multiply matrix x by the weight matrix w and add the bias vector b. This is the right associative version (NetParam on the left).

Value parameters

x

the matrix to multiply by

Attributes

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

Value parameters

c

the change to the parameters

Attributes

def +=(cw: MatrixD, cb: VectorD): Unit

Add and assign the changes to the parameters (weights and biases).

Add and assign the changes to the parameters (weights and biases).

Value parameters

cb

the change to the baises

cw

the change to the weights

Attributes

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

Value parameters

c

the change to the parameters

Attributes

def -=(cw: MatrixD, cb: VectorD): Unit

Subtract and assign the changes to the parameters (weights and biases).

Subtract and assign the changes to the parameters (weights and biases).

Value parameters

cb

the change to the baises

cw

the change to the weights

Attributes

def =~(c: NetParam): Boolean

Return whether this and NetParam c are approximately equal.

Return whether this and NetParam c are approximately equal.

Value parameters

c

the other network parameters

Attributes

def copy: NetParam

Make a copy of the network parameters.

Make a copy of the network parameters.

Attributes

infix def dot(x: VectorD): VectorD

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.

Value parameters

x

the vector to multiply by

Attributes

def set(c: NetParam): Unit

Set/assign NetParam c to this (needed for val cases).

Set/assign NetParam c to this (needed for val cases).

Attributes

def set(cw: MatrixD, cb: VectorD): Unit

Set/assign (cw, cb) to this (needed for val cases).

Set/assign (cw, cb) to this (needed for val cases).

Attributes

Convert this NetParam object to a matrix where the first row is the bias vector b and the rest of the rows contain the weight matrix w.

Convert this NetParam object to a matrix where the first row is the bias vector b and the rest of the rows contain the weight matrix w.

Attributes

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

Attributes

Definition Classes
Any
def trim(dim: Int, dim2: Int): NetParam

Make a trimmed copy of the network parameters.

Make a trimmed copy of the network parameters.

Value parameters

dim

the first dimension of weight matrix

dim2

the second dimension of weight matrix and dimension of bias vector

Attributes

def update(c: NetParam): Unit

Update/assign NetParam c to this.

Update/assign NetParam c to this.

Attributes

def update(cw: MatrixD, cb: VectorD): Unit

Update/assign (cw, cb) to this.

Update/assign (cw, cb) to this.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product