org.apache.mahout.df.mapreduce.partial
Class Step2Job
java.lang.Object
org.apache.mahout.df.mapreduce.partial.Step2Job
public class Step2Job
- extends java.lang.Object
2nd step of the partial mapreduce builder. Computes the oob predictions using all the trees of the forest
Constructor Summary |
Step2Job(org.apache.hadoop.fs.Path base,
org.apache.hadoop.fs.Path dataPath,
org.apache.hadoop.fs.Path datasetPath,
Step0Job.Step0Output[] partitions)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Step2Job
public Step2Job(org.apache.hadoop.fs.Path base,
org.apache.hadoop.fs.Path dataPath,
org.apache.hadoop.fs.Path datasetPath,
Step0Job.Step0Output[] partitions)
- Parameters:
base
- base directorydataPath
- data used in the first stepdatasetPath
- partitions
- partitions' infos in hadoop's order
run
public void run(org.apache.hadoop.conf.Configuration conf,
TreeID[] keys,
Node[] trees,
PredictionCallback callback)
throws java.io.IOException,
java.lang.ClassNotFoundException,
java.lang.InterruptedException
- Run the second step.
- Parameters:
conf
- configurationkeys
- keys returned by the first steptrees
- trees returned by the first stepcallback
-
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InterruptedException
parseOutput
protected void parseOutput(org.apache.hadoop.mapreduce.Job job,
PredictionCallback callback)
throws java.io.IOException
- Extracts the output and processes it
- Parameters:
job
- callback
-
- Throws:
java.io.IOException
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.