|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wGmdh.jGmdh.oldskul.MultiSelectCombi
public class MultiSelectCombi
a multilayered-combinatorial GMDH network class
Nested Class Summary | |
---|---|
static class |
MultiSelectCombi.ModelAndLayer
A class used to describe the best model trained. |
Field Summary | |
---|---|
protected weka.core.Attribute |
attrRegress
|
protected DatasetSupervised |
dataset
|
protected ModelFactory |
maker
|
java.util.ArrayList<java.util.ArrayList<? extends Node>> |
selectedLayers
|
protected StructureValidationPerformance |
selectionPerformance
|
protected NodeFilter |
selector
|
protected StructureLearningPerformance |
trainingPerformance
|
protected double |
trainPercentage
|
Constructor Summary | |
---|---|
MultiSelectCombi(DatasetSupervised h,
ModelFactory f,
NodeFilter selector)
|
Method Summary | |
---|---|
void |
arrayCleanup()
Passes through all nodes we have and set to null their trainSetOutput and validationSetOutput. |
MultiSelectCombi.ModelAndLayer |
bestModel(MultiSelectCombi.ModelAndLayer currentBest)
Incrementaly finds the best model according to structure validation score. |
DatasetSupervised |
getDataset()
|
ModelFactory |
getMaker()
|
StructureValidationPerformance |
getSelectionPerformance()
|
StructureLearningPerformance |
getTrainingPerformance()
|
void |
initAttributeLayer()
Initializes the layer of AttributeNodes and presents it to selector |
int |
mscGrow()
Grow network by one layer; in multilayered version of selectional-combinatorial algorithm. |
void |
multiSelectCombi(int nrLayers)
|
static java.lang.String |
polynomialExpressionGlobal(Model target,
int fold)
Submodels will be marked by their uniqueID. |
void |
setAttributeLayer(DatasetSupervised dataProvider)
Reconnect inputs of AttributeNodes. |
void |
setDataset(DatasetSupervised dataset)
|
void |
setMaker(ModelFactory maker)
|
void |
setSelectionPerformance(StructureValidationPerformance crit)
|
void |
setTrainingPerformance(StructureLearningPerformance meas)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DatasetSupervised dataset
protected double trainPercentage
protected weka.core.Attribute attrRegress
protected StructureValidationPerformance selectionPerformance
protected StructureLearningPerformance trainingPerformance
public java.util.ArrayList<java.util.ArrayList<? extends Node>> selectedLayers
protected ModelFactory maker
protected NodeFilter selector
Constructor Detail |
---|
public MultiSelectCombi(DatasetSupervised h, ModelFactory f, NodeFilter selector)
Method Detail |
---|
public void setSelectionPerformance(StructureValidationPerformance crit)
public StructureValidationPerformance getSelectionPerformance()
public void setTrainingPerformance(StructureLearningPerformance meas)
public StructureLearningPerformance getTrainingPerformance()
public void initAttributeLayer() throws java.lang.Exception
java.lang.Exception
public void setAttributeLayer(DatasetSupervised dataProvider)
dataProvider
- public void multiSelectCombi(int nrLayers) throws ExpressionEqualToZero, TooBig, TooSmall
ExpressionEqualToZero
TooBig
TooSmall
public int mscGrow() throws ExpressionEqualToZero, TooBig, TooSmall
ExpressionEqualToZero
TooBig
TooSmall
public DatasetSupervised getDataset()
public void setDataset(DatasetSupervised dataset)
dataset
- the dataset to setpublic ModelFactory getMaker()
public void setMaker(ModelFactory maker)
maker
- the maker to setpublic MultiSelectCombi.ModelAndLayer bestModel(MultiSelectCombi.ModelAndLayer currentBest)
currentBest
- to initialize search, pass null. To build upon a
prexisting search (e.g. you know the best one from the
3rd layer and you've grown your layers in the meantime
and now you have 10 of them so you can continue from
the 4th layer), pass the best model found in last
iteration and the index of layer it belongs to, wrapped
inside a ModelAndLayer. Remains unchanged.
public static java.lang.String polynomialExpressionGlobal(Model target, int fold) throws TooBig
target
- fold
- coefficients obtained from fold-th fold will be used
jGMDH.raw.exceptions.TooBig
TooBig
public void arrayCleanup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |