AutoDiff

scalation.calculus.AutoDiff
class AutoDiff(y: MatrixD)

The AutoDiff class supports Automatic Differentiation.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def add(node: Node): Node

Add node to the computation graph.

Add node to the computation graph.

Value parameters

node

the node to add to the pipeline

Attributes

def backward(e: MatrixD): Unit

Make a backward pass through the computation graph, computing partial derivatives and adjoints using reverse mode automatic differentiation. Compute adjoint: v-bar-sub-i = vb_i = vb_i+1 * d_v_i+1 / d_v_i

Make a backward pass through the computation graph, computing partial derivatives and adjoints using reverse mode automatic differentiation. Compute adjoint: v-bar-sub-i = vb_i = vb_i+1 * d_v_i+1 / d_v_i

Value parameters

e

the negative error matrix

Attributes

See also
def forward(): Unit

Make a forward pass through the computation graph, computing output values based on the calculation v = f(u + b(0)) where u is the weighted input, b(0) is the bias vector and f is the activation function.

Make a forward pass through the computation graph, computing output values based on the calculation v = f(u + b(0)) where u is the weighted input, b(0) is the bias vector and f is the activation function.

Attributes

Concrete fields

val pipe: ArrayBuffer[Node]