| Package | Description |
|---|---|
| com.aliasi.classify |
Classes for classifying data and evaluation.
|
| com.aliasi.cluster |
Classes for clustering data and evaluation.
|
| com.aliasi.dca |
Classes for fitting and running discrete choice analysis (DCA) models.
|
| com.aliasi.features |
Classes for extracting feature vectors from objects and parsing
objects for feature handlers.
|
| com.aliasi.test.unit.features | |
| com.aliasi.tokenizer |
Classes for tokenizing character sequences.
|
| Modifier and Type | Method and Description |
|---|---|
FeatureExtractor<? super E> |
TfIdfClassifierTrainer.featureExtractor()
Return the feature extractor for this classifier.
|
FeatureExtractor<? super E> |
PerceptronClassifier.featureExtractor()
Returns the feature extractor for this perceptron.
|
FeatureExtractor<? super E> |
KnnClassifier.featureExtractor()
Returns the feature extractor for ths KNN classifier.
|
FeatureExtractor<E> |
BernoulliClassifier.featureExtractor()
Return the feature extractor for this classifier.
|
FeatureExtractor<E> |
LogisticRegressionClassifier.featureExtractor()
Returns an immutable view of the feature extractor for this
classifier.
|
| Modifier and Type | Method and Description |
|---|---|
static <F> LogisticRegressionClassifier<F> |
LogisticRegressionClassifier.train(Corpus<ObjectHandler<Classified<F>>> corpus,
FeatureExtractor<? super F> featureExtractor,
int minFeatureCount,
boolean addInterceptFeature,
RegressionPrior prior,
AnnealingSchedule annealingSchedule,
double minImprovement,
int minEpochs,
int maxEpochs,
Reporter reporter)
Returns a trained logistic regression classifier given the specified
feature extractor, training corpus, model priors and search parameters.
|
static <F> LogisticRegressionClassifier<F> |
LogisticRegressionClassifier.train(Corpus<ObjectHandler<Classified<F>>> corpus,
FeatureExtractor<? super F> featureExtractor,
int minFeatureCount,
boolean addInterceptFeature,
RegressionPrior prior,
int blockSize,
LogisticRegressionClassifier<F> hotStart,
AnnealingSchedule annealingSchedule,
double minImprovement,
int rollingAverageSize,
int minEpochs,
int maxEpochs,
ObjectHandler<LogisticRegressionClassifier<F>> classifierHandler,
Reporter reporter)
Returns a trained logistic regression classifier given the specified
feature extractor, training corpus, model priors and search parameters.
|
| Constructor and Description |
|---|
BernoulliClassifier(FeatureExtractor<E> featureExtractor)
Construct a Bernoulli classifier with the specified feature
extractor and the default feature activation threshold of 0.0.
|
BernoulliClassifier(FeatureExtractor<E> featureExtractor,
double featureActivationThreshold)
Construct a Bernoulli classifier with the specified feature
extractor and specified feature activation threshold.
|
KnnClassifier(FeatureExtractor<? super E> featureExtractor,
int k)
Construct a k-nearest-neighbor classifier based on the
specified feature extractor and using the specified number of
neighbors.
|
KnnClassifier(FeatureExtractor<? super E> featureExtractor,
int k,
Distance<Vector> distance)
Construct a k-nearest-neighbor classifier based on the
specified feature extractor, specified maximum number of
neighbors, and specified distance function.
|
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.
|
PerceptronClassifier(Corpus<ObjectHandler<Classified<E>>> corpus,
FeatureExtractor<? super E> featureExtractor,
KernelFunction kernelFunction,
String corpusAcceptCategory,
int numIterations,
String outputAcceptCategory,
String outputRejectCategory)
Construct a perceptron classifier from the specified feature extractor,
corpus with designated accept category, polynomial kernel degree and
number of training iterations, and output accept and reject categories.
|
TfIdfClassifierTrainer(FeatureExtractor<? super E> featureExtractor)
Construct a TF/IDF classifier trainer based on the specified
feature extractor.
|
| Modifier and Type | Method and Description |
|---|---|
FeatureExtractor<E> |
KMeansClusterer.featureExtractor()
Returns the feature extractor for this clusterer.
|
| Constructor and Description |
|---|
KMeansClusterer(FeatureExtractor<E> featureExtractor,
int numClusters,
int maxEpochs,
boolean kMeansPlusPlus,
double minImprovement)
Construct a k-means clusterer with the specified feature
extractor, number of clusters, minimum improvement per cluster,
using either traditional or k-means++ initialization.
|
| Modifier and Type | Method and Description |
|---|---|
FeatureExtractor<E> |
DiscreteObjectChooser.featureExtractor()
Return the feature extractor for this chooser.
|
| Modifier and Type | Method and Description |
|---|---|
static <F> DiscreteObjectChooser<F> |
DiscreteObjectChooser.estimate(FeatureExtractor<F> featureExtractor,
List<List<F>> alternativeObjectss,
int[] choices,
int minFeatureCount,
RegressionPrior prior,
int priorBlockSize,
AnnealingSchedule annealingSchedule,
double minImprovement,
int minEpochs,
int maxEpochs,
Reporter reporter)
Because intercepts are ignored, they are not added to
feature maps and should not be treated as noninformative in the
prior.
|
| Constructor and Description |
|---|
DiscreteObjectChooser(FeatureExtractor<E> featureExtractor,
SymbolTable featureSymbolTable,
DiscreteChooser chooser)
Construct a discrete chooser based on the specified feature
extractor, feature symbol table, and base chooser.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AddFeatureExtractor<E>
An
AddFeatureExtractor returns feature vectors that result
from summing the feature vectors returned by a collection of
contained feature extractors. |
class |
BoundedFeatureExtractor<E>
A
BoundedFeatureExtractor provides a lower-bound and
upper-bound on feature values between which all values from a
contained base extractor are bounded. |
class |
CacheFeatureExtractor<E>
A
CacheFeatureExtractor uses a cache to store a mapping from
objects to their feature vector maps. |
class |
ChunkerFeatureExtractor
A
ChunkerFeatureExtractor implements a feature extractor
for character sequences based on a specified chunker. |
class |
FeatureExtractorFilter<E>
A
FeatureExtractorFilter contains a reference to another
feature extractor. |
class |
InteractionFeatureExtractor<E>
An
InteractionFeatureExtractor produces interaction
features between two feature extractors. |
class |
KnownFeatureExtractor<E>
A
KnownFeatureExtractor restricts a base feature extractor
to features contained in a set provided at construction time. |
class |
LengthNormFeatureExtractor<E>
A
LengthNormFeatureExtractor converts feature vectors
produced by a contained extractor into unit length vectors. |
class |
ModifiedFeatureExtractor<E>
A
ModifiedFeatureExtractor allows feature values to be
modified in a feature-specific fashion. |
class |
PrefixedFeatureExtractor<E>
A
PrefixedFeatureExtractor applies a specified prefix to all
of the feature names from a base feature extractor. |
class |
StringLengthFeatureExtractor
A
StringLengthFeatureExtractor implements a feature
extractor that provides string length features based on
a specified set of string lengths. |
class |
ZScoreFeatureExtractor<E>
A
ZScoreFeatureExtractor converts features to their
z-scores, where means and deviations are determined by a
corpus supplied at compile time. |
| Modifier and Type | Method and Description |
|---|---|
FeatureExtractor<? super E> |
FeatureExtractorFilter.baseExtractor()
Returns the contained feature extractor.
|
| Modifier and Type | Method and Description |
|---|---|
List<FeatureExtractor<? super E>> |
AddFeatureExtractor.baseFeatureExtractors()
Returns an unmodifiable view of the list of base feature
extractors for this additive feature extractor.
|
| Constructor and Description |
|---|
AddFeatureExtractor(FeatureExtractor<? super E>... extractors)
Construct an additive feature extractor from the specified
extractors.
|
AddFeatureExtractor(FeatureExtractor<? super E> extractor1,
FeatureExtractor<? super E> extractor2)
Construct an additive feature extractor from the specified pair
of extractors.
|
AddFeatureExtractor(FeatureExtractor<? super E> extractor1,
FeatureExtractor<? super E> extractor2)
Construct an additive feature extractor from the specified pair
of extractors.
|
BoundedFeatureExtractor(FeatureExtractor<? super E> extractor,
double minValue,
double maxValue)
Construct a bounded feature extractor that bounds the feature
values produced by the specified extractor to be within the
specified minimum and maximum values.
|
CacheFeatureExtractor(FeatureExtractor<? super E> extractor,
Map<E,Map<String,? extends Number>> cache)
Construct a cached feature extractor that caches the
results of the specified extractor using the specified cache.
|
FeatureExtractorFilter(FeatureExtractor<? super E> extractor)
Construct a feature extractor filter from the specified
feature extractor.
|
InteractionFeatureExtractor(String prefix,
String separator,
FeatureExtractor<E> extractor)
Construct a feature extractor for interactions between the
features extracted by the specified extractor, creating new
features with the specified prefix and separator.
|
InteractionFeatureExtractor(String prefix,
String separator,
FeatureExtractor<E> extractor1,
FeatureExtractor<E> extractor2)
Construct a feature extractor for interactions between
the features extracted by the specified extractors, creating
new features with the specified prefix and separator.
|
InteractionFeatureExtractor(String prefix,
String separator,
FeatureExtractor<E> extractor1,
FeatureExtractor<E> extractor2)
Construct a feature extractor for interactions between
the features extracted by the specified extractors, creating
new features with the specified prefix and separator.
|
KnownFeatureExtractor(FeatureExtractor<? super E> baseExtractor,
Set<String> knownFeatureSet)
Construct a known feature extractor based on the specified feature
set and base extractor.
|
LengthNormFeatureExtractor(FeatureExtractor<? super E> extractor)
Construct a length-normalized feature extractor from the
specified extractor.
|
ModifiedFeatureExtractor(FeatureExtractor<? super E> extractor)
Construct a modified feature extractor with the specified
base extractor.
|
PrefixedFeatureExtractor(String prefix,
FeatureExtractor<E> extractor)
Construct a feature extractor that adds the specified prefix
to feature names extracted by the specified extractor.
|
ZScoreFeatureExtractor(Corpus<ObjectHandler<Classified<E>>> corpus,
FeatureExtractor<? super E> extractor)
Construct a z-core feature extractor from the specified base
feature extractor and the training section of the supplied
corpus.
|
| Constructor and Description |
|---|
AddFeatureExtractor(Collection<? extends FeatureExtractor<? super E>> extractors)
Construct an additive feature extractor from the specified
collection of extractors.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MockFeatureExtractor |
class |
SerializableMockFeatureExtractor |
| Modifier and Type | Method and Description |
|---|---|
static <E> void |
MockFeatureExtractor.assertFeats(FeatureExtractor<E> fe,
E in,
String[] feats,
double[] vals) |
| Modifier and Type | Class and Description |
|---|---|
class |
TokenFeatureExtractor
A
TokenFeatureExtractor produces feature vectors from
character sequences representing token counts. |
Copyright © 2019 Alias-i, Inc.. All rights reserved.