Package org.tribuo.math.util
package org.tribuo.math.util
Provides math related util classes.
There are two interfaces: Merger
and
VectorNormalizer
. Merger is used to combine gradient tensors
produced across different examples (i.e., to combine the gradients within a minibatch). VectorNormalizer is
used to normalize an array, usually into a probability distribution.
-
ClassDescriptionNormalizes the exponential values of the input array.Merges each
SparseVector
separately using aPriorityQueue
as a heap.An interface for merging an array ofDenseSparseMatrix
into a singleDenseSparseMatrix
.NoopNormalizer returns a copy inNoopNormalizer.normalize(double[])
and is a no-op in place.Normalizes, but first subtracts the minimum value (to ensure positivity).Normalizes the input by applying a logistic sigmoid to each element.A functional interface that generates a normalized version of a double array.