Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
C
- copy(String, ModelProvenance) - Method in class org.tribuo.common.nearest.KNNModel
- COSINE - Enum constant in enum org.tribuo.common.nearest.KNNTrainer.Distance
-
Deprecated.Cosine similarity used as a distance measure.
- CURRENT_VERSION - Static variable in class org.tribuo.common.nearest.KNNModel
-
Protobuf serialization version.
D
- deserializeFromProto(int, String, Any) - Static method in class org.tribuo.common.nearest.KNNModel
-
Deserialization factory.
- distType - Variable in class org.tribuo.common.nearest.KNNClassifierOptions
-
Distance metric to use.
F
- FULLY_WEIGHTED_VOTING - Enum constant in enum org.tribuo.common.nearest.KNNClassifierOptions.EnsembleCombinerType
-
Use a
FullyWeightedVotingCombiner.
G
- getDistanceType() - Method in enum org.tribuo.common.nearest.KNNTrainer.Distance
-
Deprecated.Returns the
DistanceTypemapping for the enumeration's value. - getExcuse(Example<T>) - Method in class org.tribuo.common.nearest.KNNModel
- getInvocationCount() - Method in class org.tribuo.common.nearest.KNNTrainer
- getOptionsDescription() - Method in class org.tribuo.common.nearest.KNNClassifierOptions
- getProvenance() - Method in class org.tribuo.common.nearest.KNNTrainer
- getTopFeatures(int) - Method in class org.tribuo.common.nearest.KNNModel
- getTrainer() - Method in class org.tribuo.common.nearest.KNNClassifierOptions
I
- innerPredict(Iterable<Example<T>>) - Method in class org.tribuo.common.nearest.KNNModel
-
Uses the model to predict the output for multiple examples.
- INNERTHREADPOOL - Enum constant in enum org.tribuo.common.nearest.KNNModel.Backend
-
Uses a thread pool at the inner level (i.e., the whole thread pool works on each prediction).
K
- knnBackend - Variable in class org.tribuo.common.nearest.KNNClassifierOptions
-
Parallel backend to use.
- KNNClassifierOptions - Class in org.tribuo.common.nearest
-
CLI Options for training a k-nearest neighbour predictor.
- KNNClassifierOptions() - Constructor for class org.tribuo.common.nearest.KNNClassifierOptions
- KNNClassifierOptions.EnsembleCombinerType - Enum in org.tribuo.common.nearest
-
The type of combination function.
- knnEnsembleCombiner - Variable in class org.tribuo.common.nearest.KNNClassifierOptions
-
Parallel backend to use.
- knnK - Variable in class org.tribuo.common.nearest.KNNClassifierOptions
-
K nearest neighbours to use.
- KNNModel<T> - Class in org.tribuo.common.nearest
-
A k-nearest neighbours model.
- KNNModel.Backend - Enum in org.tribuo.common.nearest
-
The parallel backend for batch predictions.
- knnNumThreads - Variable in class org.tribuo.common.nearest.KNNClassifierOptions
-
Number of threads to use.
- KNNTrainer<T> - Class in org.tribuo.common.nearest
-
A
Trainerfor k-nearest neighbour models. - KNNTrainer(int, int, EnsembleCombiner<T>, KNNModel.Backend, NeighboursQueryFactory) - Constructor for class org.tribuo.common.nearest.KNNTrainer
-
Creates a K-NN trainer using the supplied parameters.
- KNNTrainer(int, KNNTrainer.Distance, int, EnsembleCombiner<T>, KNNModel.Backend) - Constructor for class org.tribuo.common.nearest.KNNTrainer
-
Deprecated.This Constructor is deprecated in version 4.3.
- KNNTrainer(int, Distance, int, EnsembleCombiner<T>, KNNModel.Backend, NeighboursQueryFactoryType) - Constructor for class org.tribuo.common.nearest.KNNTrainer
-
Creates a K-NN trainer using the supplied parameters.
- KNNTrainer.Distance - Enum in org.tribuo.common.nearest
-
Deprecated.This Enum is deprecated in version 4.3, replaced by
DistanceType
L
- L1 - Enum constant in enum org.tribuo.common.nearest.KNNTrainer.Distance
-
Deprecated.L1 (or Manhattan) distance.
- L2 - Enum constant in enum org.tribuo.common.nearest.KNNTrainer.Distance
-
Deprecated.L2 (or Euclidean) distance.
N
- nqFactoryType - Variable in class org.tribuo.common.nearest.KNNClassifierOptions
-
The nearest neighbour implementation factory to use.
O
- org.tribuo.common.nearest - package org.tribuo.common.nearest
-
Provides a K-Nearest Neighbours implementation which works across all Tribuo
Outputtypes.
P
- postConfig() - Method in class org.tribuo.common.nearest.KNNTrainer
-
Used by the OLCUT configuration system, and should not be called by external code.
- predict(Example<T>) - Method in class org.tribuo.common.nearest.KNNModel
S
- serialize() - Method in class org.tribuo.common.nearest.KNNModel
- setInvocationCount(int) - Method in class org.tribuo.common.nearest.KNNTrainer
- STREAMS - Enum constant in enum org.tribuo.common.nearest.KNNModel.Backend
-
Uses the streams API for parallelism when scoring a batch of predictions.
T
- THREADPOOL - Enum constant in enum org.tribuo.common.nearest.KNNModel.Backend
-
Uses a thread pool at the outer level (i.e., one thread per prediction).
- toString() - Method in class org.tribuo.common.nearest.KNNTrainer
- train(Dataset<T>, Map<String, Provenance>) - Method in class org.tribuo.common.nearest.KNNTrainer
- train(Dataset<T>, Map<String, Provenance>, int) - Method in class org.tribuo.common.nearest.KNNTrainer
V
- valueOf(String) - Static method in enum org.tribuo.common.nearest.KNNClassifierOptions.EnsembleCombinerType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.tribuo.common.nearest.KNNModel.Backend
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.tribuo.common.nearest.KNNTrainer.Distance
-
Deprecated.Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.tribuo.common.nearest.KNNClassifierOptions.EnsembleCombinerType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.tribuo.common.nearest.KNNModel.Backend
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.tribuo.common.nearest.KNNTrainer.Distance
-
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
- VOTING - Enum constant in enum org.tribuo.common.nearest.KNNClassifierOptions.EnsembleCombinerType
-
Use a
VotingCombiner.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form