FisherDiffFunction

class FisherDiffFunction[T](df: BatchDiffFunction[T], gradientsToKeep: Int)(implicit vs: MutableInnerProductVectorSpace[T, Double]) extends SecondOrderFunction[T, FisherMatrix[T]]
trait DiffFunction[T]
trait HasOps
trait T => Double
class Object
trait Matchable
class Any

Value members

Concrete methods

def calculate2(x: T): (Double, T, FisherMatrix[T])

Calculates the value, the gradient, and an approximation to the Fisher approximation to the Hessian

Calculates the value, the gradient, and an approximation to the Fisher approximation to the Hessian

Inherited methods

final def %[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Alias for :%(b) when b is a scalar.

Alias for :%(b) when b is a scalar.

Inherited from:
ImmutableNumericOps
final def %:%[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Element-wise modulo of this and b.

Element-wise modulo of this and b.

Inherited from:
ImmutableNumericOps
final def %=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Alias for :%=(b) when b is a scalar.

Alias for :%=(b) when b is a scalar.

Inherited from:
NumericOps
final def &[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Alias for &:&(b) for all b.

Alias for &:&(b) for all b.

Inherited from:
ImmutableNumericOps
final def &:&[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Element-wise logical "and" operator -- returns true if corresponding elements are non-zero.

Element-wise logical "and" operator -- returns true if corresponding elements are non-zero.

Inherited from:
ImmutableNumericOps
final def &=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Mutates this by element-wise and of this and b.

Mutates this by element-wise and of this and b.

Inherited from:
NumericOps
final def *[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Matrix multiplication

Matrix multiplication

Inherited from:
ImmutableNumericOps
final def *:*[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Element-wise product of this and b.

Element-wise product of this and b.

Inherited from:
ImmutableNumericOps
final def *=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Alias for :*=(b) when b is a scalar.

Alias for :*=(b) when b is a scalar.

Inherited from:
NumericOps
final def +[B, C, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Alias for :+(b) for all b.

Alias for :+(b) for all b.

Inherited from:
NumericOps
final def +:+[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Element-wise sum of this and b.

Element-wise sum of this and b.

Inherited from:
ImmutableNumericOps
final def +=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Alias for :+=(b) for all b.

Alias for :+=(b) for all b.

Inherited from:
NumericOps
final def -[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Alias for -:-(b) for all b.

Alias for -:-(b) for all b.

Inherited from:
ImmutableNumericOps
final def -:-[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Element-wise difference of this and b.

Element-wise difference of this and b.

Inherited from:
ImmutableNumericOps
final def -=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Alias for :-=(b) for all b.

Alias for :-=(b) for all b.

Inherited from:
NumericOps
final def /[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Alias for :/(b) when b is a scalar.

Alias for :/(b) when b is a scalar.

Inherited from:
ImmutableNumericOps
final def /:/[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Element-wise quotient of this and b.

Element-wise quotient of this and b.

Inherited from:
ImmutableNumericOps
final def /=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Alias for :/=(b) when b is a scalar.

Alias for :/=(b) when b is a scalar.

Inherited from:
NumericOps
final def :!=[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Element-wise inequality comparator of this and b.

Element-wise inequality comparator of this and b.

Inherited from:
ImmutableNumericOps
final def :%=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Mutates this by element-wise modulo of b into this.

Mutates this by element-wise modulo of b into this.

Inherited from:
NumericOps
final def :&=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Mutates this by element-wise and of this and b.

Mutates this by element-wise and of this and b.

Inherited from:
NumericOps
final def :*=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Mutates this by element-wise multiplication of b into this.

Mutates this by element-wise multiplication of b into this.

Inherited from:
NumericOps
final def :+=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Mutates this by element-wise addition of b into this.

Mutates this by element-wise addition of b into this.

Inherited from:
NumericOps
final def :-=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Mutates this by element-wise subtraction of b from this

Mutates this by element-wise subtraction of b from this

Inherited from:
NumericOps
final def :/=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Mutates this by element-wise division of b into this

Mutates this by element-wise division of b into this

Inherited from:
NumericOps
final def :=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Mutates this by element-wise assignment of b into this.

Mutates this by element-wise assignment of b into this.

Inherited from:
NumericOps
final def :==[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Element-wise equality comparator of this and b.

Element-wise equality comparator of this and b.

Inherited from:
ImmutableNumericOps
final def :^=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Mutates this by element-wise exponentiation of this by b.

Mutates this by element-wise exponentiation of this by b.

Inherited from:
NumericOps
final def :^^=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Mutates this by element-wise xor of this and b.

Mutates this by element-wise xor of this and b.

Inherited from:
NumericOps
final def :|=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Mutates this by element-wise or of this and b.

Mutates this by element-wise or of this and b.

Inherited from:
NumericOps
final def <:<[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Element-wise less=than comparator of this and b.

Element-wise less=than comparator of this and b.

Inherited from:
NumericOps
final def <:=[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Element-wise less-than-or-equal-to comparator of this and b.

Element-wise less-than-or-equal-to comparator of this and b.

Inherited from:
NumericOps
final def >:=[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Element-wise greater-than-or-equal-to comparator of this and b.

Element-wise greater-than-or-equal-to comparator of this and b.

Inherited from:
NumericOps
final def >:>[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Element-wise greater-than comparator of this and b.

Element-wise greater-than comparator of this and b.

Inherited from:
NumericOps
def \[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Shaped solve of this by b.

Shaped solve of this by b.

Inherited from:
ImmutableNumericOps
final def ^:^[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Element-wise exponentiation of this and b.

Element-wise exponentiation of this and b.

Inherited from:
ImmutableNumericOps
final def ^^[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Alias for :^^(b) for all b.

Alias for :^^(b) for all b.

Inherited from:
ImmutableNumericOps
final def ^^:^^[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Element-wise logical "xor" operator -- returns true if only one of the corresponding elements is non-zero.

Element-wise logical "xor" operator -- returns true if only one of the corresponding elements is non-zero.

Inherited from:
ImmutableNumericOps
final def ^^=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Mutates this by element-wise xor of this and b.

Mutates this by element-wise xor of this and b.

Inherited from:
NumericOps
def andThen[A](g: Double => A): T => A
Inherited from:
Function1
final def apply(x: T): Double
Inherited from:
StochasticDiffFunction
def cached(implicit copy: CanCopy[T]): DiffFunction[T]
Inherited from:
DiffFunction
def calculate(x: T): (Double, T)

Calculates both the value and the gradient at a point

Calculates both the value and the gradient at a point

Inherited from:
SecondOrderFunction
def compose[A](g: A => T): A => Double
Inherited from:
Function1
final def dot[B, BB >: B, That](b: B)(implicit op: Impl2[DiffFunction[T], BB, That]): That

Inner product of this and b.

Inner product of this and b.

Inherited from:
ImmutableNumericOps
def gradientAt(x: T): T

calculates the gradient at a point

calculates the gradient at a point

Inherited from:
StochasticDiffFunction
override def repr: DiffFunction[T]
final def t[That, Slice1, Result](a: Slice1)(implicit op: CanTranspose[DiffFunction[T], That], canSlice: CanSlice[That, Slice1, Result]): Result

A transposed view of this object, followed by a slice. Sadly frequently necessary.

A transposed view of this object, followed by a slice. Sadly frequently necessary.

Inherited from:
ImmutableNumericOps
final def t[That, Slice1, Slice2, Result](a: Slice1, b: Slice2)(implicit op: CanTranspose[DiffFunction[T], That], canSlice: CanSlice2[That, Slice1, Slice2, Result]): Result

A transposed view of this object, followed by a slice. Sadly frequently necessary.

A transposed view of this object, followed by a slice. Sadly frequently necessary.

Inherited from:
ImmutableNumericOps
final def t[That](implicit op: CanTranspose[DiffFunction[T], That]): That

A transposed view of this object.

A transposed view of this object.

Inherited from:
ImmutableNumericOps
override def throughLens[U](implicit l: Isomorphism[T, U]): DiffFunction[U]
Definition Classes
Inherited from:
DiffFunction
override def toString(): String
Definition Classes
Function1 -> Any
Inherited from:
Function1
final def unary_![That](implicit op: Impl[DiffFunction[T], That]): That
Inherited from:
ImmutableNumericOps
final def unary_-[That](implicit op: Impl[DiffFunction[T], That]): That
Inherited from:
ImmutableNumericOps
def valueAt(x: T): Double

calculates the value at a point

calculates the value at a point

Inherited from:
StochasticDiffFunction
final def |[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Alias for :||(b) for all b.

Alias for :||(b) for all b.

Inherited from:
ImmutableNumericOps
final def |:|[B, That](b: B)(implicit op: Impl2[DiffFunction[T], B, That]): That

Element-wise logical "or" operator -- returns true if either element is non-zero.

Element-wise logical "or" operator -- returns true if either element is non-zero.

Inherited from:
ImmutableNumericOps
final def |=[B](b: B)(implicit op: InPlaceImpl2[DiffFunction[T], B]): DiffFunction[T]

Mutates this by element-wise or of this and b.

Mutates this by element-wise or of this and b.

Inherited from:
NumericOps