|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.BatchClassifierLearner edu.cmu.minorthird.classify.StackedLearner
public class StackedLearner
Stacked generalization. This implementation is based on Wolpert, D.H. (1992), Stacked Generalization, Neural Networks, Vol. 5, pp. 241-259, Pergamon Press. http://citeseer.nj.nec.com/wolpert92stacked.html
Field Summary |
---|
Fields inherited from class edu.cmu.minorthird.classify.BatchClassifierLearner |
---|
classifier, dataset |
Constructor Summary | |
---|---|
StackedLearner()
Use stacked learning to calibrate the predictions of AdaBoost using logistic regression, using 3-CV to split. |
|
StackedLearner(BatchClassifierLearner innerLearner)
Use stacked learning to calibrate the predictions of the inner learner using logistic regression, using 3-CV to split. |
|
StackedLearner(BatchClassifierLearner[] innerLearners,
BatchClassifierLearner finalLearner,
Splitter<Example> splitter)
Create a stacked learner. |
|
StackedLearner(BatchClassifierLearner innerLearner,
Splitter<Example> splitter)
Use stacked learning to calibrate the predictions of the inner learner using logistic regression. |
Method Summary | |
---|---|
Classifier |
batchTrain(Dataset dataset)
subclasses should use this method to implement a batch supervised learning algorithm. |
BatchClassifierLearner |
getInnerLearner()
|
ExampleSchema |
getSchema()
Returns the ExampleSchema - constraints on what the Examples will be. |
Splitter<Example> |
getSplitter()
|
void |
setInnerLearner(BatchClassifierLearner learner)
|
void |
setSchema(ExampleSchema schema)
Accept an ExampleSchema - constraints on what the Examples will be. |
void |
setSplitter(Splitter<Example> splitter)
|
Methods inherited from class edu.cmu.minorthird.classify.BatchClassifierLearner |
---|
addExample, completeTraining, copy, getClassifier, hasNextQuery, nextQuery, reset, setInstancePool |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StackedLearner(BatchClassifierLearner innerLearner, Splitter<Example> splitter)
public StackedLearner(BatchClassifierLearner innerLearner)
public StackedLearner()
public StackedLearner(BatchClassifierLearner[] innerLearners, BatchClassifierLearner finalLearner, Splitter<Example> splitter)
Method Detail |
---|
public Splitter<Example> getSplitter()
public void setSplitter(Splitter<Example> splitter)
public void setInnerLearner(BatchClassifierLearner learner)
public BatchClassifierLearner getInnerLearner()
public final void setSchema(ExampleSchema schema)
ClassifierLearner
public final ExampleSchema getSchema()
ClassifierLearner
public Classifier batchTrain(Dataset dataset)
BatchClassifierLearner
batchTrain
in class BatchClassifierLearner
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |