|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.multiprocess.Job
adams.flow.transformer.WekaClassifierRanker.RankingJob
public static class WekaClassifierRanker.RankingJob
A job class specific to ranking classifiers.
| Field Summary | |
|---|---|
protected weka.classifiers.Classifier |
m_BestClassifier
the best classifier. |
protected weka.classifiers.Classifier |
m_Classifier
the classifier to evaluate. |
protected String |
m_EvaluationError
for storing evaluating errors. |
protected int |
m_Folds
the number of folds to use. |
protected int |
m_Index
the index in actor's input array. |
protected WekaClassifierRanker.Measure |
m_Measure
the measure to use for ranking. |
protected boolean |
m_OutputBestSetup
whether to output the best classifier. |
protected Performance |
m_Performance
the performance. |
protected long |
m_Seed
the seed value to use. |
protected weka.core.Instances |
m_Test
the test data to evaluate with (if folds less than 2). |
protected weka.core.Instances |
m_Train
the train data to evaluate with. |
| Fields inherited from class adams.multiprocess.Job |
|---|
m_complete, m_completed, m_depends, m_ExecutionError, m_jobInfo, m_jobParams |
| Constructor Summary | |
|---|---|
WekaClassifierRanker.RankingJob(weka.classifiers.Classifier cls,
int index,
weka.core.Instances train,
weka.core.Instances test,
long seed,
int folds,
WekaClassifierRanker.Measure measure,
boolean best)
Initializes the job. |
|
| Method Summary | |
|---|---|
void |
cleanUp()
Cleans up data structures, frees up memory. |
protected String |
getAdditionalErrorInformation()
Returns additional information to be added to the error message. |
weka.classifiers.Classifier |
getBestClassifier()
Returns the best classifier found. |
protected weka.classifiers.Classifier |
getBestClassifier(weka.classifiers.Classifier template,
weka.classifiers.Classifier trained)
In case of GridSearch/MultiSearch the best setup is returned, otherwise the classifier itself. |
weka.classifiers.Classifier |
getClassifier()
Returns the classifier being used. |
int |
getFolds()
Returns the number of folds. |
int |
getIndex()
Returns the index of the classifier in the actor's input array. |
WekaClassifierRanker.Measure |
getMeasure()
Returns the measure for ranking. |
boolean |
getOutputBestSetup()
Returns whether the best setup is output in case of optimizers like GridSearch/MultiSearch. |
Performance |
getPerformance()
The generated performance. |
long |
getSeed()
Returns the seed value. |
weka.core.Instances |
getTest()
The test data. |
weka.core.Instances |
getTrain()
The training data. |
protected String |
postProcessCheck()
Checks whether all post-conditions have been met. |
protected String |
preProcessCheck()
Checks whether all pre-conditions have been met. |
protected void |
process()
Does the actual execution of the job. |
String |
toString()
Returns a string representation of the job. |
| Methods inherited from class adams.multiprocess.Job |
|---|
addDependency, addParam, execute, getAsVector, getDependencies, getExecutionError, getJobCompleteListener, getJobInfo, getParam, hasExecutionError, isComplete, jobCompleted, setJobCompleteListener |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected weka.classifiers.Classifier m_Classifier
protected int m_Index
protected weka.core.Instances m_Train
protected weka.core.Instances m_Test
protected long m_Seed
protected int m_Folds
protected WekaClassifierRanker.Measure m_Measure
protected Performance m_Performance
protected String m_EvaluationError
protected boolean m_OutputBestSetup
protected weka.classifiers.Classifier m_BestClassifier
| Constructor Detail |
|---|
public WekaClassifierRanker.RankingJob(weka.classifiers.Classifier cls,
int index,
weka.core.Instances train,
weka.core.Instances test,
long seed,
int folds,
WekaClassifierRanker.Measure measure,
boolean best)
cls - the classifier to evaluateindex - the index of the classifier in input arraytrain - the training data to usetest - the test data to useseed - the seed value to usefolds - the number of folds to usemeasure - the measure to use for rankingbest - whether to output the best classifier setup (for optimizers)| Method Detail |
|---|
public weka.classifiers.Classifier getClassifier()
public int getIndex()
public weka.core.Instances getTrain()
public weka.core.Instances getTest()
public long getSeed()
public int getFolds()
public WekaClassifierRanker.Measure getMeasure()
public Performance getPerformance()
public weka.classifiers.Classifier getBestClassifier()
public boolean getOutputBestSetup()
protected String preProcessCheck()
preProcessCheck in class Job
protected weka.classifiers.Classifier getBestClassifier(weka.classifiers.Classifier template,
weka.classifiers.Classifier trained)
template - the template classifiertrained - the trained classifier
protected void process()
process in class Jobprotected String postProcessCheck()
postProcessCheck in class Jobpublic void cleanUp()
cleanUp in interface CleanUpHandlercleanUp in class Jobprotected String getAdditionalErrorInformation()
getAdditionalErrorInformation in class Jobpublic String toString()
toString in class Job
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||