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
SparseVectorseparately using aPriorityQueueas a heap.An interface for merging an array ofDenseSparseMatrixinto a singleDenseSparseMatrix.NoopNormalizer returns a copy of the input, without normalizing it.Normalizes, but first subtracts the minimum value (to ensure positivity).A functional interface that generates a normalized version of a double array.