|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.ga.watchmaker.cd.hadoop.CDMahoutEvaluator
public final class CDMahoutEvaluator
Mahout distributed evaluator. takes a list of classification rules and an input path and launch a Hadoop job to evaluate the fitness of each rule. At the end loads the evaluations from the job output.
Method Summary | |
---|---|
static void |
evaluate(List<? extends Rule> rules,
int target,
org.apache.hadoop.fs.Path inpath,
org.apache.hadoop.fs.Path output,
Collection<CDFitness> evaluations)
Use all the dataset for training. |
static void |
evaluate(List<? extends Rule> rules,
int target,
org.apache.hadoop.fs.Path inpath,
org.apache.hadoop.fs.Path output,
Collection<CDFitness> evaluations,
DatasetSplit split)
Uses Mahout to evaluate the classification rules using the given evaluator. |
static CDFitness |
evaluate(Rule rule,
int target,
org.apache.hadoop.fs.Path inpath,
org.apache.hadoop.fs.Path output,
DatasetSplit split)
Evaluate a single rule. |
static void |
initializeDataSet(org.apache.hadoop.fs.Path inpath)
Initializes the dataset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void evaluate(List<? extends Rule> rules, int target, org.apache.hadoop.fs.Path inpath, org.apache.hadoop.fs.Path output, Collection<CDFitness> evaluations, DatasetSplit split) throws IOException, InterruptedException, ClassNotFoundException
rules
- classification rules to evaluatetarget
- label value to evaluate the rules forinpath
- input path (the dataset)evaluations
- List<CDFitness>
that contains the
evaluated fitness for each candidate from the input population,
sorted in the same order as the candidates.split
- DatasetSplit used to separate training and testing input
IOException
InterruptedException
ClassNotFoundException
public static void initializeDataSet(org.apache.hadoop.fs.Path inpath) throws IOException
inpath
- input path (the dataset)
IOException
public static CDFitness evaluate(Rule rule, int target, org.apache.hadoop.fs.Path inpath, org.apache.hadoop.fs.Path output, DatasetSplit split) throws IOException, InterruptedException, ClassNotFoundException
rule
- classification rule to evaluatetarget
- label value to evaluate the rules forinpath
- input path (the dataset)split
- DatasetSplit used to separate training and testing input
IOException
InterruptedException
ClassNotFoundException
public static void evaluate(List<? extends Rule> rules, int target, org.apache.hadoop.fs.Path inpath, org.apache.hadoop.fs.Path output, Collection<CDFitness> evaluations) throws IOException, InterruptedException, ClassNotFoundException
rules
- classification rules to evaluatetarget
- label value to evaluate the rules forinpath
- input path (the dataset)evaluations
- List<CDFitness>
that contains the
evaluated fitness for each candidate from the input population,
sorted in the same order as the candidates.
IOException
InterruptedException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |