Package | Description |
---|---|
edu.illinois.cs.cogcomp.lbjava.learn |
Modifier and Type | Method and Description |
---|---|
boolean |
Lexicon.isPruned(int i,
int label,
Lexicon.PruningPolicy policy)
Determines if the given feature index should be
pruned according to the given pruning policy, which must have its thresholds set already in
the case that it represents the "Percentage" policy.
|
boolean |
Lexicon.isPruned(int i,
Lexicon.PruningPolicy policy)
Determines if the given feature index should be pruned
according to the given pruning policy, which must have its thresholds set already in the case
that it represents the "Percentage" policy.
|
int[] |
Lexicon.prune(Lexicon.PruningPolicy policy)
Rearranges the order in which features appear in the lexicon
based on the compiled feature counts in
Lexicon.featureCounts or
Lexicon.perClassFeatureCounts so that pruned features are at the end of the feature space. |
void |
BatchTrainer.pruneDataset(String exampleFile,
boolean zip,
Lexicon.PruningPolicy policy,
Learner preExtractLearner)
Prunes the data returned
by
BatchTrainer.parser according to the given policy, under the assumption that feature counts
have already been compiled in the given learner's lexicon. |
void |
BatchTrainer.pruneDataset(String exampleFile,
Lexicon.PruningPolicy policy,
Learner preExtractLearner)
Prunes the data returned by
BatchTrainer.parser according to the given policy, under the assumption that feature counts have
already been compiled in the given learner's lexicon. |
Copyright © 2016. All rights reserved.