Package com.aliasi.classify

Classes for classifying data and evaluation.

See:
          Description

Interface Summary
Classifier<E,C extends Classification> The Classifier interface specifies a single method that returns the classification of an input object.
 

Class Summary
BernoulliClassifier<E> A BernoulliClassifier provides a feature-based classifier where feature values are reduced to booleans based on a specified threshold.
BinaryLMClassifier A BinaryLMClassifier is a boolean dynamic language model classifier based on a single language model and cross-entropy threshold.
Classification A Classification provides a first-best category.
ClassifierEvaluator<E,C extends Classification> A ClassifierEvaluator provides an evaluation harness for classifiers.
ConditionalClassification A ConditionalClassification is a scored classification which estimates conditional probabilities of categories given an input.
ConfusionMatrix An instance of ConfusionMatrix represents a quantitative comparison between two classifiers over a fixed set of categories on a number of test cases.
DynamicLMClassifier<L extends LanguageModel.Dynamic> A DynamicLMClassifier is a language model classifier that accepts training events of categorized character sequences.
JointClassification A JointClassification is a conditional classification derived from a joint probability assignment to each category and the object being classified.
KnnClassifier<E> A KnnClassifier implements k-nearest-neighor classification based on feature extraction and a vector proximity or distance.
LMClassifier<L extends LanguageModel,M extends MultivariateDistribution> An LMClassifier performs joint probability-based classification of character sequences into non-overlapping categories based on language models for each category and a multivariate distribution over categories.
LogisticRegressionClassifier<E> A LogisticRegressionClassifier provides conditional probability classifications of input objects using an underlying logistic regression model and feature extractor.
NaiveBayesClassifier A NaiveBayesClassifier provides a trainable naive Bayes text classifier, with tokens as features.
OnlineLogisticRegressionClassifier<E>  
PerceptronClassifier<E> A PerceptronClassifier implements a binary classifier based on an averaged kernel-based perceptron.
PrecisionRecallEvaluation A PrecisionRecallEvaluation collects and reports a suite of descriptive statistics for binary classification tasks.
RankedClassification A RankedClassification provides a classification with an ordered n-best list of category results.
ScoredClassification A ScoredClassification is a ranked classification where each category also has a score that determines the ranking.
ScoredPrecisionRecallEvaluation A ScoredPrecisionRecallEvaluation provides an evaluation of possible precision-recall operating points and other summary statistics The single method ScoredPrecisionRecallEvaluation.addCase(boolean,double) is used to populate the evaluation, with the first argument representing whether the response was correct and the second the score that was assigned.
TfIdfClassifierTrainer<E> A TfIdfClassifierTrainer provides a framework for training discriminative classifiers based on term-frequency (TF) and inverse document frequency (IDF) weighting of features.
XValidatingClassificationCorpus<E> A XValidatingClassificationCorpus holds a set of inputs and classification results to be used as a corpus with built-in cross-validation support.
 

Package com.aliasi.classify Description

Classes for classifying data and evaluation. Throughout, we use the term "category" rather than "class" or "type", to avoid confusion with the object-oriented notion of class in Java.