Uses of Interface
org.tribuo.math.distance.Distance
Packages that use 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
Constructors in org.tribuo.clustering.hdbscan with parameters of type DistanceModifierConstructorDescriptionHdbscanTrainer
(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
Constructors in org.tribuo.clustering.kmeans with parameters of type DistanceModifierConstructorDescriptionKMeansTrainer
(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
Constructors in org.tribuo.common.nearest with parameters of type DistanceModifierConstructorDescriptionKNNTrainer
(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
Classes in org.tribuo.math.distance that implement DistanceModifier and TypeClassDescriptionfinal class
Cosine similarity used as a distance measure.final class
L1 (or Manhattan) distance.final class
L2 (or Euclidean) distance.Methods in org.tribuo.math.distance that return DistanceModifier and TypeMethodDescriptionDistanceType.getDistance()
Gets the Distance object specified by this enum. -
Uses of Distance in org.tribuo.math.neighbour
Methods in org.tribuo.math.neighbour that return DistanceModifier and TypeMethodDescriptionNeighboursQueryFactory.getDistance()
Gets theDistance
set on this object.Methods in org.tribuo.math.neighbour with parameters of type DistanceModifier and TypeMethodDescriptionstatic NeighboursQueryFactory
NeighboursQueryFactoryType.getNeighboursQueryFactory
(NeighboursQueryFactoryType nqFactoryType, Distance distance, int numThreads) Returns the appropriateNeighboursQueryFactory
implementation. -
Uses of Distance in org.tribuo.math.neighbour.bruteforce
Methods in org.tribuo.math.neighbour.bruteforce that return DistanceConstructors in org.tribuo.math.neighbour.bruteforce with parameters of type DistanceModifierConstructorDescriptionNeighboursBruteForceFactory
(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
Methods in org.tribuo.math.neighbour.kdtree that return DistanceConstructors in org.tribuo.math.neighbour.kdtree with parameters of type DistanceModifierConstructorDescriptionKDTreeFactory
(Distance distance, int numThreads) Constructs a k-d tree nearest neighbor query factory object using the supplied parameters.