Package | Description |
---|---|
de.unibi.techfak.scie.classifiers | |
de.unibi.techfak.scie.classifiers.data |
Modifier and Type | Method and Description |
---|---|
static void |
TrainingUtils.balanceDataSet(ArrayList<LabeledDataPoint> data)
Preprocesses the given data and enforces balanced classes by
inserting data points of the under-represented label multiple
times in the given list.
|
static ClassifierEvaluation |
TrainingUtils.crossValidation(ArrayList<LabeledDataPoint> trainingData,
Classifier classifier,
int folds,
int times,
Comparator<ClassifierEvaluation> comparator,
boolean verbose)
Trains the given classifier using crossvalidation and taking the result
with the best evaluation result according to the given comparator.
|
static <C extends Classifier> |
TrainingUtils.crossValidationSweep(ArrayList<LabeledDataPoint> trainingData,
C classifier,
int folds,
int times,
TrainingUtils.ParameterSweep<C> sweep,
Comparator<ClassifierEvaluation> comparator,
boolean verbose)
Does the cross validation but does the given parameter sweep in an outer
loop.
|
static <C extends Classifier> |
TrainingUtils.simpleParameterSweep(ArrayList<LabeledDataPoint> trainingData,
C classifier,
double testRatio,
TrainingUtils.ParameterSweep<C> sweep,
int times,
Comparator<ClassifierEvaluation> comparator,
boolean verbose)
Does the simple training but does the given parameter sweep in an outer
loop.
|
static ClassifierEvaluation |
TrainingUtils.simpleTraining(ArrayList<LabeledDataPoint> trainingData,
Classifier classifier,
double testRatio,
int times,
Comparator<ClassifierEvaluation> comparator,
boolean verbose)
Chooses randomly testRatio datapoints for testing, trains the classifier
with the rest and reports precision, recall and accuracy for the test
set.
|
void |
LibLinearClassifier.train(ArrayList<LabeledDataPoint> trainingData)
Adjust the classifier parameters according to the given training data.
|
void |
Classifier.train(ArrayList<LabeledDataPoint> trainingData)
Adjust the classifier parameters according to the given training data.
|
Modifier and Type | Method and Description |
---|---|
void |
TrainingDataReader.readTrainingData(org.apache.uima.jcas.JCas jcas,
Collection<RawRelation> rawRelationInstances,
Collection<LabeledDataPoint> trainingDataCollection)
This constructs training data for the given combination of XCAS document
and RawRelations and writes them to the given collection of
LabeledDataPoints.
|
void |
RelationDataPoint.RelationTrainingDataReader.readTrainingData(org.apache.uima.jcas.JCas jcas,
Collection<RawRelation> rawRelationInstances,
Collection<LabeledDataPoint> trainingDataCollection)
This constructs training data for the given combination of XCAS document
and RawRelations and writes them to the given collection of
LabeledDataPoints.
|
void |
CoreSlotCombinationDataPoint.CoreSlotTrainingDataReader.readTrainingData(org.apache.uima.jcas.JCas jcas,
Collection<RawRelation> rawRelationInstances,
Collection<LabeledDataPoint> trainingDataCollection)
This constructs training data for the given combination of XCAS document
and RawRelations and writes them to the given collection of
LabeledDataPoints.
|
void |
CoreDataPoint.CoreTrainingDataReader.readTrainingData(org.apache.uima.jcas.JCas jcas,
Collection<RawRelation> rawRelationInstances,
Collection<LabeledDataPoint> trainingDataCollection)
This constructs training data for the given combination of XCAS document
and RawRelations and writes them to the given collection of
LabeledDataPoints.
|
Copyright © 2014. All rights reserved.