public class SubProcessWrapper extends Wrapper
Modifier and Type | Class and Description |
---|---|
static class |
SubProcessWrapper.ErrorAndTime
Small class that just encapsulates the error and time of a sub process run
TODO: Should really be changed to use a ClassifierResult instead
|
mExperimentSeed, mInstance, mProperties, mResultMetric, mRunner, mTimeout
Constructor and Description |
---|
SubProcessWrapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
_processParameter(java.lang.String arg,
java.util.Queue<java.lang.String> args)
The only two things that a SubProcessWrapper cares about are the timeouts and the seed
|
protected void |
_processResults(ClassifierResult res)
Emit the result from a sub process wrapper back up to whoever called us
|
protected void |
_processWrapperParameterStart(java.util.Queue<java.lang.String> args)
We only have to set the instance string
|
static SubProcessWrapper.ErrorAndTime |
getErrorAndTime(java.io.File runDir,
Experiment exp,
java.lang.String instance,
java.lang.String args,
java.lang.String autowekaSeed) |
static SubProcessWrapper.ErrorAndTime |
getErrorAndTime(java.io.File runDir,
Experiment exp,
java.lang.String instance,
java.lang.String args,
java.lang.String autowekaSeed,
java.util.Properties props) |
static SubProcessWrapper.ErrorAndTime |
getErrorAndTime(java.io.File runDir,
autoweka.ListExperiment exp,
java.lang.String instance,
java.lang.String args,
java.lang.String autowekaSeed) |
static SubProcessWrapper.ErrorAndTime |
getErrorAndTime(java.io.File runDir,
autoweka.ListExperiment exp,
java.lang.String instance,
java.lang.String args,
java.lang.String autowekaSeed,
java.util.Properties props) |
static SubProcessWrapper.ErrorAndTime |
getErrorAndTime(java.io.File runDir,
java.lang.String memory,
java.util.Properties props,
float trainTimeout,
java.lang.String instance,
java.lang.String args,
java.lang.String autowekaSeed)
Calls the SubProcessWrapper as a SubProcess, and returns the result back up to the caller.
|
static void |
main(java.lang.String[] args)
Calls the SubProcessWrapper using the given arguments
|
public static void main(java.lang.String[] args)
args
- Any arguments.protected void _processParameter(java.lang.String arg, java.util.Queue<java.lang.String> args)
_processParameter
in class Wrapper
arg
- The parameter.args
- The list of parameters.protected void _processWrapperParameterStart(java.util.Queue<java.lang.String> args)
_processWrapperParameterStart
in class Wrapper
args
- The list of arguments.protected void _processResults(ClassifierResult res)
_processResults
in class Wrapper
res
- The classifier result.public static SubProcessWrapper.ErrorAndTime getErrorAndTime(java.io.File runDir, autoweka.ListExperiment exp, java.lang.String instance, java.lang.String args, java.lang.String autowekaSeed)
public static SubProcessWrapper.ErrorAndTime getErrorAndTime(java.io.File runDir, autoweka.ListExperiment exp, java.lang.String instance, java.lang.String args, java.lang.String autowekaSeed, java.util.Properties props)
public static SubProcessWrapper.ErrorAndTime getErrorAndTime(java.io.File runDir, Experiment exp, java.lang.String instance, java.lang.String args, java.lang.String autowekaSeed)
public static SubProcessWrapper.ErrorAndTime getErrorAndTime(java.io.File runDir, Experiment exp, java.lang.String instance, java.lang.String args, java.lang.String autowekaSeed, java.util.Properties props)
public static SubProcessWrapper.ErrorAndTime getErrorAndTime(java.io.File runDir, java.lang.String memory, java.util.Properties props, float trainTimeout, java.lang.String instance, java.lang.String args, java.lang.String autowekaSeed)
runDir
- The run directory.memory
- The memory limit.props
- The properties.trainTimeout
- The timeout for training.instance
- The instance.args
- The arguments.autowekaSeed
- The seed.