Liking cljdoc? Tell your friends :D

org.soulspace.math.gradient


directionclj/s

Returns the direction of the vector w (which is w normalized to length 1)

Returns the direction of the vector w (which is w normalized to length 1)
sourceraw docstring

directional-varianceclj/s

(directional-variance m w)

Calculates the variance of the matrix m in the direction of w.

Calculates the variance of the matrix m in the direction of w.
sourceraw docstring

directional-variance-gradientclj/s

(directional-variance-gradient m w)

Calculates the contribution of the matrix m to the gradient of the variance in direction w.

Calculates the contribution of the matrix m to the gradient of the variance in direction w.
sourceraw docstring

directional-variance-gradient-iclj/s

(directional-variance-gradient-i x-i w)

Calculates the contribution of row x-i to the gradient of the variance in direction w.

Calculates the contribution of row x-i to the gradient of the variance in direction w.
sourceraw docstring

directional-variance-iclj/s

(directional-variance-i x-i w)

Calculates the variance of the row x-i in the direction of w.

Calculates the variance of the row x-i in the direction of w.
sourceraw docstring

estimate-gradientclj/s

(estimate-gradient f v)
(estimate-gradient f v h)

Estimates the gradient of f at v.

Estimates the gradient of f at v.
sourceraw docstring

maximize-batchclj/s

(maximize-batch target-fn gradient-fn theta-0)
(maximize-batch target-fn gradient-fn theta-0 tolerance)

Calculates the theta that minimizes the target function by gradient descent.

Calculates the theta that minimizes the target function by gradient descent.
sourceraw docstring

maximize-stochasticclj/s

(maximize-stochastic target-fn gradient-fn x y theta-0)
(maximize-stochastic target-fn gradient-fn x y theta-0 alpha-0)

Calculates .

Calculates .
sourceraw docstring

minimize-batchclj/s

(minimize-batch target-fn gradient-fn theta-0)
(minimize-batch target-fn gradient-fn theta-0 tolerance)

Calculates .

Calculates .
sourceraw docstring

minimize-stochasticclj/s

(minimize-stochastic target-fn gradient-fn x y theta-0)
(minimize-stochastic target-fn gradient-fn x y theta-0 alpha-0)

Calculates .

Calculates .
sourceraw docstring

minimize-sum-of-squaresclj/s

(minimize-sum-of-squares start-v)

Calculates the minimization of the sum of squares.

Calculates the minimization of the sum of squares.
sourceraw docstring

negated-all-fnclj/s

(negated-all-fn f)

Returns a function that calculates the negated values (multiplied with -1) of f for functions returning a sequence of values.

Returns a function that calculates the negated values (multiplied with -1) of f for functions returning a sequence of values.
sourceraw docstring

negated-fnclj/s

(negated-fn f)

Returns a function that calculates the negated value (multiplied with -1) of f.

Returns a function that calculates the negated value (multiplied with -1) of f.
sourceraw docstring

partial-difference-quotientclj/s

(partial-difference-quotient f v i h)

Calculates the i-th partial difference quotient of f at v.

Calculates the i-th partial difference quotient of f at v.
sourceraw docstring

safe-applyclj/s

(safe-apply f & args)

Safely applies f so that it returns infinity whenever f returns an error.

Safely applies f so that it returns infinity whenever f returns an error.
sourceraw docstring

safe-fnclj/s

(safe-fn f)

Returns a function that is the same as f except that it returns infinity whenever f returns an error.

Returns a function that is the same as f except that it returns infinity whenever f returns an error.
sourceraw docstring

stepclj/s

(step v direction step-size)

Returns the vector v moved step-size in direction.

Returns the vector v moved step-size in direction.
sourceraw docstring

step-sizesclj/s

source

sum-of-squares-gradientclj/s

(sum-of-squares-gradient v)

Calculates the gradient of the sum of squares of v.

Calculates the gradient of the sum of squares of v.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close