@Deprecated public class PartialBuilder extends Builder
Constructor and Description |
---|
PartialBuilder(TreeBuilder treeBuilder,
org.apache.hadoop.fs.Path dataPath,
org.apache.hadoop.fs.Path datasetPath,
Long seed)
Deprecated.
|
PartialBuilder(TreeBuilder treeBuilder,
org.apache.hadoop.fs.Path dataPath,
org.apache.hadoop.fs.Path datasetPath,
Long seed,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureJob(org.apache.hadoop.mapreduce.Job job)
Deprecated.
Used by the inheriting classes to configure the job
|
protected DecisionForest |
parseOutput(org.apache.hadoop.mapreduce.Job job)
Deprecated.
Parse the output files to extract the trees and pass the predictions to the callback
|
protected static void |
processOutput(org.apache.hadoop.mapreduce.JobContext job,
org.apache.hadoop.fs.Path outputPath,
TreeID[] keys,
Node[] trees)
Deprecated.
Processes the output from the output path.
|
build, getDataPath, getDistributedCacheFile, getNbTrees, getNumMaps, getOutputPath, getRandomSeed, getTreeBuilder, isOutput, loadDataset, runJob, setNbTrees, setOutputDirName, sortSplits
public PartialBuilder(TreeBuilder treeBuilder, org.apache.hadoop.fs.Path dataPath, org.apache.hadoop.fs.Path datasetPath, Long seed)
public PartialBuilder(TreeBuilder treeBuilder, org.apache.hadoop.fs.Path dataPath, org.apache.hadoop.fs.Path datasetPath, Long seed, org.apache.hadoop.conf.Configuration conf)
protected void configureJob(org.apache.hadoop.mapreduce.Job job) throws IOException
Builder
configureJob
in class Builder
job
- Hadoop's JobIOException
- if anything goes wrong while configuring the jobprotected DecisionForest parseOutput(org.apache.hadoop.mapreduce.Job job) throws IOException
Builder
parseOutput
in class Builder
job
- Hadoop's jobIOException
- if anything goes wrong while parsing the outputprotected static void processOutput(org.apache.hadoop.mapreduce.JobContext job, org.apache.hadoop.fs.Path outputPath, TreeID[] keys, Node[] trees) throws IOException
outputPath
- directory that contains the output of the jobkeys
- can be nulltrees
- can be nullIOException
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.