public class WekaClassifierEvaluationHadoopJob extends HadoopJob implements TextProducer, InstancesProducer, CommandlineRunnable
COLT_JAR, DISTRIBUTED_WEKA_BASE_JAR, DISTRIBUTED_WEKA_HADOOP_JAR, JCOMMON_JAR, JFREECHART_JAR, LA4J_JAR, OPEN_CSV_JAR, TDIGEST_JAR
Constructor and Description |
---|
WekaClassifierEvaluationHadoopJob()
Constructor
|
Modifier and Type | Method and Description |
---|---|
Instances |
getInstances() |
java.lang.String[] |
getJobOptionsOnly()
Get the options pertaining to this job only
|
int |
getNumNodesInCluster()
Get the number of nodes in the user's Hadoop cluster.
|
java.lang.String[] |
getOptions() |
java.lang.String |
getSampleFractionForAUC()
Get the percentage of predictions to retain (via uniform random sampling)
for computing AUC and AUPRC.
|
java.lang.String |
getSeparateTestSetPath()
Get the path in HDFS to the separate test set to use.
|
java.lang.String |
getText() |
java.lang.String |
globalInfo()
Help info for this job
|
java.util.Enumeration<Option> |
listOptions() |
static void |
main(java.lang.String[] args) |
java.lang.String |
numNodesInClusterTipText()
Tip text for this property
|
void |
run(java.lang.Object toRun,
java.lang.String[] args) |
boolean |
runJob() |
java.lang.String |
sampleFractionForAUCTipText()
Tip text for this property
|
java.lang.String |
separateTestSetPathTipText()
Tip text for this property
|
void |
setNumNodesInCluster(int n)
Set the number of nodes in the user's Hadoop cluster.
|
void |
setOptions(java.lang.String[] options) |
void |
setSampleFractionForAUC(java.lang.String f)
Set the percentage of predictions to retain (via uniform random sampling)
for computing AUC and AUPRC.
|
void |
setSeparateTestSetPath(java.lang.String path)
Set the path in HDFS to the separate test set to use.
|
additionalWekaPackagesTipText, cleanOutputDirectory, deubgTipText, getAdditionalWekaPackages, getBaseOptionsOnly, getDebug, getLoggingInterval, getMapNumber, getMapReduceJobConfig, getMapReduceNumber, getPathToWekaJar, getReduceNumber, loggingIntervalTipText, logMessage, pathToWekaJarTipText, setAdditionalWekaPackages, setDebug, setLoggingInterval, setMapReduceJobConfig, setPathToWekaJar
environmentSubstitute, getAdditionalWekaPackageNames, getJobName, getJobStatus, getLog, logMessage, logMessage, makeOptionsStr, objectRowToInstance, parseInstance, postExecution, preExecution, setEnvironment, setJobDescription, setJobName, setJobStatus, setLog, setStatusMessagePrefix, stackTraceToString, statusMessage, stopJob
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postExecution, preExecution
public WekaClassifierEvaluationHadoopJob()
public static void main(java.lang.String[] args)
public java.lang.String globalInfo()
public java.util.Enumeration<Option> listOptions()
listOptions
in interface OptionHandler
listOptions
in class HadoopJob
public java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class HadoopJob
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface OptionHandler
setOptions
in class HadoopJob
java.lang.Exception
public java.lang.String[] getJobOptionsOnly()
public java.lang.String separateTestSetPathTipText()
public java.lang.String getSeparateTestSetPath()
public void setSeparateTestSetPath(java.lang.String path)
path
- the path in HDFS to the separate test set to evaluate onpublic java.lang.String sampleFractionForAUCTipText()
public java.lang.String getSampleFractionForAUC()
public void setSampleFractionForAUC(java.lang.String f)
f
- the fraction (between 0 and 1) of all predictions to retain for
computing AUC/AUPRC.public java.lang.String numNodesInClusterTipText()
public int getNumNodesInCluster()
public void setNumNodesInCluster(int n)
n
- the number of nodes in the clusterpublic boolean runJob() throws weka.distributed.DistributedWekaException
runJob
in class distributed.core.DistributedJob
weka.distributed.DistributedWekaException
public java.lang.String getText()
getText
in interface TextProducer
public Instances getInstances()
getInstances
in interface InstancesProducer
public void run(java.lang.Object toRun, java.lang.String[] args) throws java.lang.IllegalArgumentException
run
in interface CommandlineRunnable
run
in class distributed.core.DistributedJob
java.lang.IllegalArgumentException