Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractFMModel<T> - Class in org.tribuo.common.sgd
-
A quadratic factorization machine model trained using SGD.
- AbstractFMModel(String, ModelProvenance, ImmutableFeatureMap, ImmutableOutputInfo<T>, FMParameters, boolean) - Constructor for class org.tribuo.common.sgd.AbstractFMModel
-
Constructs a factorization machine model trained via SGD.
- AbstractFMTrainer<T,
U, - Class in org.tribuo.common.sgdV> -
A trainer for a quadratic factorization machine model which uses SGD.
- AbstractFMTrainer() - Constructor for class org.tribuo.common.sgd.AbstractFMTrainer
-
For olcut.
- AbstractFMTrainer(StochasticGradientOptimiser, int, int, int, long, int, double) - Constructor for class org.tribuo.common.sgd.AbstractFMTrainer
-
Constructs an SGD trainer for a factorization machine.
- AbstractLinearSGDModel<T> - Class in org.tribuo.common.sgd
-
A linear model trained using SGD.
- AbstractLinearSGDModel(String, ModelProvenance, ImmutableFeatureMap, ImmutableOutputInfo<T>, LinearParameters, boolean) - Constructor for class org.tribuo.common.sgd.AbstractLinearSGDModel
-
Constructs a linear model trained via SGD.
- AbstractLinearSGDTrainer<T,
U, - Class in org.tribuo.common.sgdV> -
A trainer for a linear model which uses SGD.
- AbstractLinearSGDTrainer() - Constructor for class org.tribuo.common.sgd.AbstractLinearSGDTrainer
-
For olcut.
- AbstractLinearSGDTrainer(StochasticGradientOptimiser, int, int, int, long) - Constructor for class org.tribuo.common.sgd.AbstractLinearSGDTrainer
-
Constructs an SGD trainer for a linear model.
- AbstractSGDModel<T> - Class in org.tribuo.common.sgd
-
A model trained using SGD.
- AbstractSGDModel(String, ModelProvenance, ImmutableFeatureMap, ImmutableOutputInfo<T>, FeedForwardParameters, boolean, boolean) - Constructor for class org.tribuo.common.sgd.AbstractSGDModel
-
Constructs a linear model trained via SGD.
- AbstractSGDModel.PredAndActive - Class in org.tribuo.common.sgd
-
A nominal tuple used to capture the prediction and the number of active features used by the model.
- AbstractSGDTrainer<T,
U, - Class in org.tribuo.common.sgdV, X> -
A trainer for a model which uses SGD.
- AbstractSGDTrainer(boolean) - Constructor for class org.tribuo.common.sgd.AbstractSGDTrainer
-
Base constructor called by subclass no-args constructors used by OLCUT.
- AbstractSGDTrainer(StochasticGradientOptimiser, int, int, int, long, boolean) - Constructor for class org.tribuo.common.sgd.AbstractSGDTrainer
-
Constructs an SGD trainer.
- addBias - Variable in class org.tribuo.common.sgd.AbstractSGDModel
- addBias - Variable in class org.tribuo.common.sgd.AbstractSGDTrainer
C
- copy() - Method in class org.tribuo.common.sgd.FMParameters
- createModel(String, ModelProvenance, ImmutableFeatureMap, ImmutableOutputInfo<T>, X) - Method in class org.tribuo.common.sgd.AbstractSGDTrainer
-
Creates the appropriate model subclass for this subclass of AbstractSGDTrainer.
- createParameters(int, int, SplittableRandom) - Method in class org.tribuo.common.sgd.AbstractFMTrainer
-
Constructs the trainable parameters object, in this case a
FMParameterscontaining a weight matrix for the feature weights and a series of weight matrices for the factorized feature representation. - createParameters(int, int, SplittableRandom) - Method in class org.tribuo.common.sgd.AbstractLinearSGDTrainer
-
Constructs the trainable parameters object, in this case a
LinearParameterscontaining a single weight matrix. - createParameters(int, int, SplittableRandom) - Method in class org.tribuo.common.sgd.AbstractSGDTrainer
-
Constructs the trainable parameters object.
- CURRENT_VERSION - Static variable in class org.tribuo.common.sgd.FMParameters
-
Protobuf serialization version.
D
- deserializeFromProto(int, String, Any) - Static method in class org.tribuo.common.sgd.FMParameters
-
Deserialization factory.
E
- epochs - Variable in class org.tribuo.common.sgd.AbstractSGDTrainer
- exportONNXModel(String, long) - Method in class org.tribuo.common.sgd.AbstractFMModel
-
Exports this
Modelas an ONNX protobuf. - exportONNXModel(String, long) - Method in class org.tribuo.common.sgd.AbstractLinearSGDModel
-
Exports this
Modelas an ONNX protobuf.
F
- factorizedDimSize - Variable in class org.tribuo.common.sgd.AbstractFMTrainer
- FMParameters - Class in org.tribuo.common.sgd
-
A
Parametersfor factorization machines. - FMParameters(SplittableRandom, int, int, int, double) - Constructor for class org.tribuo.common.sgd.FMParameters
-
Constructor.
G
- get() - Method in class org.tribuo.common.sgd.FMParameters
- getBiasesCopy() - Method in class org.tribuo.common.sgd.AbstractFMModel
-
Returns a copy of the output dimension biases.
- getDimensionName(int) - Method in class org.tribuo.common.sgd.AbstractFMModel
-
Gets the name of the indexed output dimension.
- getDimensionName(int) - Method in class org.tribuo.common.sgd.AbstractLinearSGDModel
-
Gets the name of the indexed output dimension.
- getEmptyCopy() - Method in class org.tribuo.common.sgd.FMParameters
-
This returns a
DenseMatrixthe same size as the Parameters. - getExcuse(Example<T>) - Method in class org.tribuo.common.sgd.AbstractFMModel
-
Factorization machines don't provide excuses, use an explainer.
- getExcuse(Example<T>) - Method in class org.tribuo.common.sgd.AbstractLinearSGDModel
- getFactorsCopy() - Method in class org.tribuo.common.sgd.AbstractFMModel
-
Returns a copy of the factors.
- getInvocationCount() - Method in class org.tribuo.common.sgd.AbstractSGDTrainer
- getLinearWeightsCopy() - Method in class org.tribuo.common.sgd.AbstractFMModel
-
Returns a copy of the linear weights.
- getModelClassName() - Method in class org.tribuo.common.sgd.AbstractSGDTrainer
-
Returns the class name of the model that's produced by this trainer.
- getModelParameters() - Method in class org.tribuo.common.sgd.AbstractSGDModel
-
Returns a copy of the model parameters.
- getName() - Method in class org.tribuo.common.sgd.AbstractFMTrainer
-
Returns the default model name.
- getName() - Method in class org.tribuo.common.sgd.AbstractLinearSGDTrainer
-
Returns the default model name.
- getName() - Method in class org.tribuo.common.sgd.AbstractSGDTrainer
-
Returns the default model name.
- getObjective() - Method in class org.tribuo.common.sgd.AbstractSGDTrainer
-
Returns the objective used by this trainer.
- getProvenance() - Method in class org.tribuo.common.sgd.AbstractSGDTrainer
- getTarget(ImmutableOutputInfo<T>, T) - Method in class org.tribuo.common.sgd.AbstractSGDTrainer
-
Extracts the appropriate training time representation from the supplied output.
- getTopFeatures(int) - Method in class org.tribuo.common.sgd.AbstractFMModel
-
Gets the top
nfeatures for each output dimension. - getTopFeatures(int) - Method in class org.tribuo.common.sgd.AbstractLinearSGDModel
- getWeightsCopy() - Method in class org.tribuo.common.sgd.AbstractLinearSGDModel
-
Returns a copy of the weights.
- gradients(Pair<Double, SGDVector>, SGDVector) - Method in class org.tribuo.common.sgd.FMParameters
-
Generate the gradients for a particular feature vector given the loss and the per output gradients.
L
- loggingInterval - Variable in class org.tribuo.common.sgd.AbstractSGDTrainer
- lossAndGradient(T, SGDVector) - Method in interface org.tribuo.common.sgd.SGDObjective
-
Scores a prediction, returning the loss and a vector of per output dimension gradients.
M
- merge(Tensor[][], int) - Method in class org.tribuo.common.sgd.FMParameters
- minibatchSize - Variable in class org.tribuo.common.sgd.AbstractSGDTrainer
- modelParameters - Variable in class org.tribuo.common.sgd.AbstractSGDModel
-
The weights for this model.
N
- numActiveFeatures - Variable in class org.tribuo.common.sgd.AbstractSGDModel.PredAndActive
-
The number of active features used in the prediction.
O
- onnxModelName() - Method in class org.tribuo.common.sgd.AbstractFMModel
- onnxModelName() - Method in class org.tribuo.common.sgd.AbstractLinearSGDModel
- onnxOutput(ONNXNode) - Method in class org.tribuo.common.sgd.AbstractFMModel
-
Takes the unnormalized ONNX output of this model and applies an appropriate normalizer from the concrete class.
- onnxOutput(ONNXNode) - Method in class org.tribuo.common.sgd.AbstractLinearSGDModel
-
Takes the unnormalized ONNX output of this model and applies an appropriate normalizer from the concrete class.
- optimiser - Variable in class org.tribuo.common.sgd.AbstractSGDTrainer
- org.tribuo.common.sgd - package org.tribuo.common.sgd
-
Provides the base classes for models trained with stochastic gradient descent.
P
- postConfig() - Method in class org.tribuo.common.sgd.AbstractFMTrainer
- postConfig() - Method in class org.tribuo.common.sgd.AbstractSGDTrainer
-
Used by the OLCUT configuration system, and should not be called by external code.
- predict(SGDVector) - Method in class org.tribuo.common.sgd.FMParameters
-
Generates an unnormalised prediction by multiplying the weights with the incoming features, adding the bias and adding the feature factors.
- prediction - Variable in class org.tribuo.common.sgd.AbstractSGDModel.PredAndActive
-
The vector prediction.
- predictSingle(Example<T>) - Method in class org.tribuo.common.sgd.AbstractSGDModel
-
Generates the dense vector prediction from the supplied example.
R
- rng - Variable in class org.tribuo.common.sgd.AbstractSGDTrainer
S
- seed - Variable in class org.tribuo.common.sgd.AbstractSGDTrainer
- serialize() - Method in class org.tribuo.common.sgd.FMParameters
- set(Tensor[]) - Method in class org.tribuo.common.sgd.FMParameters
- setInvocationCount(int) - Method in class org.tribuo.common.sgd.AbstractSGDTrainer
- setShuffle(boolean) - Method in class org.tribuo.common.sgd.AbstractSGDTrainer
-
Turn on or off shuffling of examples.
- SGDObjective<T> - Interface in org.tribuo.common.sgd
-
An interface for a loss function that can produce the loss and gradient incurred by a single prediction.
- shuffle - Variable in class org.tribuo.common.sgd.AbstractSGDTrainer
- shuffleInPlace(SGDVector[], T[], double[], SplittableRandom) - Static method in class org.tribuo.common.sgd.AbstractSGDTrainer
-
Shuffles the features, outputs and weights in place.
T
- train(Dataset<T>) - Method in class org.tribuo.common.sgd.AbstractSGDTrainer
- train(Dataset<T>, Map<String, Provenance>) - Method in class org.tribuo.common.sgd.AbstractSGDTrainer
- train(Dataset<T>, Map<String, Provenance>, int) - Method in class org.tribuo.common.sgd.AbstractSGDTrainer
U
- update(Tensor[]) - Method in class org.tribuo.common.sgd.FMParameters
V
- variance - Variable in class org.tribuo.common.sgd.AbstractFMTrainer
W
- writeONNXGraph(ONNXRef<?>) - Method in class org.tribuo.common.sgd.AbstractFMModel
- writeONNXGraph(ONNXRef<?>) - Method in class org.tribuo.common.sgd.AbstractLinearSGDModel
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form