| Package | Description |
|---|---|
| com.aliasi.classify |
Classes for classifying data and evaluation.
|
| com.aliasi.matrix |
Classes for matrices and vectors.
|
| com.aliasi.spell |
Classes for spelling correction and edit distance.
|
| Modifier and Type | Method and Description |
|---|---|
Proximity<Vector> |
KnnClassifier.proximity()
Returns the proximity measure for this KNN classifier.
|
| Constructor and Description |
|---|
KnnClassifier(FeatureExtractor<? super E> extractor,
int k,
Proximity<Vector> proximity,
boolean weightByProximity)
Construct a k-nearest-neighbor classifier based on the
specified feature extractor, specified maximum number of
neighbors, specified proximity function, and boolean flag
indicating whether or not to weight nearest neighbors by proximity
during classification.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
KernelFunction
A
KernelFunction computes real-valued proximities
between vectors. |
| Modifier and Type | Class and Description |
|---|---|
class |
CosineDistance
The
CosineDistance class implements proximity as
vector cosine. |
class |
DotProductKernel
The
DotProductKernel is the trivial kernel function
computed by taking the dot product of the input vectors. |
class |
GaussianRadialBasisKernel
A
GaussianRadialBasisKernel provides a kernel based on
a Gaussian radial basis function with a fixed variance parameter. |
class |
HyperbolicTangentKernel
A
HyperbolicTangentKernel provides a kernel based on
the hyperbolic tangent of a dot product with fixed linear scaling. |
class |
PolynomialKernel
A
PolynomialKernel provides a dot product over a fixed
degree polynomial basis expansion of a vector. |
| Modifier and Type | Class and Description |
|---|---|
class |
EditDistance
The
EditDistance class implements the standard notion
of edit distance, with or without transposition. |
class |
FixedWeightEditDistance
A
FixedWeightEditDistance sets constant weights for
the edit operations for weighted edit distance. |
class |
JaccardDistance
The
JaccardDistance class implements a notion of
distance based on token overlap. |
class |
JaroWinklerDistance
The
JaroWinklerDistance class implements the original
Jaro string comparison as well as Winkler's modifications. |
class |
TfIdfDistance
The
TfIdfDistance class provides a string distance
based on term frequency (TF) and inverse document frequency (IDF). |
class |
TokenizedDistance
The
TokenizedDistance class provides an underlying
implementation of string distance based on comparing sets of
tokens. |
class |
WeightedEditDistance
The
WeightedEditDistance class implements both the
proximity and distance interfaces based on the negative proximity
weights assigned to independent atomic edit operations. |
Copyright © 2016 Alias-i, Inc.. All rights reserved.