Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
int |
byteOffset
The byte offset at which the learner appeared.
|
protected String |
classDir
The directory into which class files, model files, etc are written.
|
protected String |
exFilePath
The file into which training examples are extracted.
|
protected LearningClassifierExpression |
lce
The expression that specified the learner.
|
protected Learner |
learner
The learning classifier being trained.
|
protected Class |
learnerClass
The class of
learner . |
protected Class |
parametersClass
learner 's Parameters class. |
protected boolean |
preExtract
Whether or not example vectors should be pre-extracted.
|
protected boolean |
preExtractZip
Whether or not pre-extracted example files should be compressed.
|
protected String |
testExFilePath
The file into which testing examples are extracted.
|
protected TestingMetric |
testingMetric
The metric with which to measure the learner's performance on a test set.
|
protected Parser |
testParser
The parser from which testing objects are obtained.
|
protected BatchTrainer |
trainer
Actually does the training.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
TrainingThread(String n,
int b,
LearningClassifierExpression lce)
Initializing constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Performs the training and then generates the new code.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public int byteOffset
protected LearningClassifierExpression lce
protected Learner learner
protected String exFilePath
protected String testExFilePath
protected String classDir
protected boolean preExtract
protected boolean preExtractZip
protected BatchTrainer trainer
protected Parser testParser
protected TestingMetric testingMetric
public TrainingThread(String n, int b, LearningClassifierExpression lce)
n
- The name of the learner.b
- The byte offset at which the learner appeared.lce
- The expression that specified the learner.Copyright © 2016. All rights reserved.