Uses of Interface
org.tribuo.math.distance.Distance
Package
Description
Provides an implementation of HDBSCAN*.
Provides a multithreaded implementation of K-Means, with a
configurable distance function.
Provides a K-Nearest Neighbours implementation which works across
all Tribuo
Output
types.An interface for distance computations between two
SGDVector
instances
along with some standard implementations.Provides nearest neighbour query functionality.
Provides a brute-force nearest neighbour query implementation.
Provides a k-d tree nearest neighbour query implementation.
-
Uses of Distance in org.tribuo.clustering.hdbscan
ModifierConstructorDescriptionHdbscanTrainer
(int minClusterSize, Distance dist, int k, int numThreads, NeighboursQueryFactoryType nqFactoryType) Constructs an HDBSCAN* trainer using the supplied parameters. -
Uses of Distance in org.tribuo.clustering.kmeans
ModifierConstructorDescriptionKMeansTrainer
(int centroids, int iterations, Distance dist, int numThreads, long seed) Constructs a K-Means trainer using the supplied parameters and the default random initialisation.KMeansTrainer
(int centroids, int iterations, Distance dist, KMeansTrainer.Initialisation initialisationType, int numThreads, long seed) Constructs a K-Means trainer using the supplied parameters. -
Uses of Distance in org.tribuo.common.nearest
ModifierConstructorDescriptionKNNTrainer
(int k, Distance dist, int numThreads, EnsembleCombiner<T> combiner, KNNModel.Backend backend, NeighboursQueryFactoryType nqFactoryType) Creates a K-NN trainer using the supplied parameters. -
Uses of Distance in org.tribuo.math.distance
Modifier and TypeClassDescriptionfinal class
Cosine similarity used as a distance measure.final class
L1 (or Manhattan) distance.final class
L2 (or Euclidean) distance.Modifier and TypeMethodDescriptionDistanceType.getDistance()
Gets the Distance object specified by this enum. -
Uses of Distance in org.tribuo.math.neighbour
Modifier and TypeMethodDescriptionNeighboursQueryFactory.getDistance()
Gets theDistance
set on this object.Modifier and TypeMethodDescriptionstatic NeighboursQueryFactory
NeighboursQueryFactoryType.getNeighboursQueryFactory
(NeighboursQueryFactoryType nqFactoryType, Distance distance, int numThreads) Returns the appropriateNeighboursQueryFactory
implementation. -
Uses of Distance in org.tribuo.math.neighbour.bruteforce
ModifierConstructorDescriptionNeighboursBruteForceFactory
(Distance distance, int numThreads) Constructs a brute-force nearest neighbor query factory object using the supplied parameters. -
Uses of Distance in org.tribuo.math.neighbour.kdtree
ModifierConstructorDescriptionKDTreeFactory
(Distance distance, int numThreads) Constructs a k-d tree nearest neighbor query factory object using the supplied parameters.