Uses of Class
org.tribuo.math.la.DenseVector
Packages that use DenseVector
Package
Description
Contains the implementation of Tribuo's math library, it's gradient descent optimisers, kernels and a set of
math related utils.
A package of statistical distributions.
Provides a linear algebra system used for numerical operations in Tribuo.
Provides some utility tensors for use in gradient optimisers.
-
Uses of DenseVector in org.tribuo.math
Methods in org.tribuo.math that return DenseVectorModifier and TypeMethodDescriptionGenerates an un-normalized prediction by feeding the features through the parameters.Generates an unnormalised prediction by leftMultiply'ing the weights with the incoming features. -
Uses of DenseVector in org.tribuo.math.distributions
Methods in org.tribuo.math.distributions that return DenseVectorModifier and TypeMethodDescriptionMultivariateNormalDistribution.sampleVector()Sample a vector from this multivariate normal distribution.Constructors in org.tribuo.math.distributions with parameters of type DenseVectorModifierConstructorDescriptionMultivariateNormalDistribution(DenseVector means, DenseMatrix covariance, long seed) Constructs a multivariate normal distribution that can be sampled from.MultivariateNormalDistribution(DenseVector means, DenseMatrix covariance, long seed, boolean eigenDecomposition) Constructs a multivariate normal distribution that can be sampled from. -
Uses of DenseVector in org.tribuo.math.la
Methods in org.tribuo.math.la that return DenseVectorModifier and TypeMethodDescriptionAddsotherto this vector, producing a newDenseVector.DenseMatrix.columnSum()Returns a dense vector containing each column sum.DenseVector.copy()static DenseVectorDenseVector.createDenseVector(double[] values) Defensively copies the values before construction.static <T extends Output<T>>
DenseVectorDenseVector.createDenseVector(Example<T> example, ImmutableFeatureMap featureInfo, boolean addBias) Builds aDenseVectorfrom anExample.SparseVector.densify()Returns a dense vector copying this sparse vector.static DenseVectorDenseVector.deserializeFromProto(int version, String className, com.google.protobuf.Any message) Deserialization factory.DenseMatrix.EigenDecomposition.diagonal()The diagonal vector of the tridiagonal form.DenseMatrix.EigenDecomposition.eigenvalues()The vector of eigenvalues, in descending order.DenseVector.foreach(DoubleUnaryOperator f) Applies the functionfto each element of this vector returning a new vector.DenseMatrix.gatherAcrossDim1(int[] elements) Constructs a dense vector by gathering values across dimension 1.DenseMatrix.gatherAcrossDim2(int[] elements) Constructs a dense vector by gathering values across dimension 2.DenseMatrix.getColumn(int index) Returns a copy of the specified column.DenseMatrix.EigenDecomposition.getEigenVector(int i) Returns the dense vector representing the i'th eigenvector.DenseMatrix.getRow(int i) DenseMatrix.leftMultiply(SGDVector input) DenseSparseMatrix.leftMultiply(SGDVector input) DenseMatrix.EigenDecomposition.offDiagonal()The off diagonal vector, with the first element set to zero.DenseMatrix.rightMultiply(SGDVector input) DenseSparseMatrix.rightMultiply(SGDVector input) rightMultiply is very inefficient on DenseSparseMatrix due to the storage format.DenseMatrix.rowSum()DenseSparseMatrix.rowSum()Matrix.rowSum()Generates aDenseVectorrepresenting the sum of each row.DenseVector.scale(double coefficient) Solves a system of linear equations A * b = y, where y is the input vector, A is the matrix which produced this Cholesky factorization, and b is the returned value.Solves a system of linear equations A * b = y, where y is the input vector, A is the matrix which produced this eigen decomposition, and b is the returned value.Solves a system of linear equations A * b = y, where y is the input vector, A is the matrix which produced this LU factorization, and b is the returned value.Subtractsotherfrom this vector, producing a newDenseVector.protected static DenseVectorDenseVector.unpackProto(org.tribuo.math.protos.DenseTensorProto proto) Unpacks aDenseTensorProtointo aDenseVector.Methods in org.tribuo.math.la with parameters of type DenseVectorModifier and TypeMethodDescriptionvoidDenseMatrix.rowScaleInPlace(DenseVector scalingCoefficients) voidDenseSparseMatrix.rowScaleInPlace(DenseVector scalingCoefficients) voidMatrix.rowScaleInPlace(DenseVector scalingCoefficients) Scales each row by the appropriate value in theDenseVector.voidDenseVector.setElements(DenseVector other) Sets all the elements of this vector to be the same asother.Constructors in org.tribuo.math.la with parameters of type DenseVector -
Uses of DenseVector in org.tribuo.math.optimisers.util
Subclasses of DenseVector in org.tribuo.math.optimisers.utilModifier and TypeClassDescriptionclassA subclass ofDenseVectorwhich shrinks the value every time a new value is added.Methods in org.tribuo.math.optimisers.util that return DenseVectorModifier and TypeMethodDescriptionShrinkingVector.convertToDense()ShrinkingMatrix.leftMultiply(SGDVector input) Constructors in org.tribuo.math.optimisers.util with parameters of type DenseVectorModifierConstructorDescriptionShrinkingVector(DenseVector v, double baseRate, boolean scaleShrinking) Constructs a shrinking vector copy of the supplied dense matrix.ShrinkingVector(DenseVector v, double baseRate, double lambda) Constructs a shrinking vector copy of the supplied dense vector.