wGmdh
Class GmdhDepthSearch

java.lang.Object
  extended by weka.classifiers.Classifier
      extended by weka.classifiers.SingleClassifierEnhancer
          extended by weka.classifiers.RandomizableSingleClassifierEnhancer
              extended by wGmdh.GmdhDepthSearch
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, weka.core.CapabilitiesHandler, weka.core.OptionHandler, weka.core.Randomizable, weka.core.RevisionHandler, weka.core.TechnicalInformationHandler

public class GmdhDepthSearch
extends weka.classifiers.RandomizableSingleClassifierEnhancer
implements weka.core.OptionHandler, weka.core.TechnicalInformationHandler

A meta-learner that finds optimal network depth for MscWithCv using 10 fold cross-validation. In each iteration of the CV, a GMDH classifier is run and performances of best models per each layer get stored. At the end, we're left with 10*perLayer performance scores and the resulting output is the network depth that performed best accross the 10 iterations of the CV.

See Also:
Serialized Form

Field Summary
protected  java.lang.String outputString
           
 
Fields inherited from class weka.classifiers.RandomizableSingleClassifierEnhancer
m_Seed
 
Fields inherited from class weka.classifiers.SingleClassifierEnhancer
m_Classifier
 
Fields inherited from class weka.classifiers.Classifier
m_Debug
 
Constructor Summary
GmdhDepthSearch()
           
 
Method Summary
 void buildClassifier(weka.core.Instances data)
           
 double classifyInstance(weka.core.Instance instance)
           
 int getFolds()
           
 java.lang.String getRevision()
           
 weka.core.TechnicalInformation getTechnicalInformation()
           
 void setClassifier(weka.classifiers.Classifier newClassifier)
          Set the learner.
 void setFolds(int folds)
           
 java.lang.String toString()
           
 
Methods inherited from class weka.classifiers.RandomizableSingleClassifierEnhancer
getOptions, getSeed, listOptions, seedTipText, setOptions, setSeed
 
Methods inherited from class weka.classifiers.SingleClassifierEnhancer
classifierTipText, defaultClassifierString, getCapabilities, getClassifier, getClassifierSpec
 
Methods inherited from class weka.classifiers.Classifier
debugTipText, distributionForInstance, forName, getDebug, makeCopies, makeCopy, runClassifier, setDebug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface weka.core.OptionHandler
getOptions, listOptions, setOptions
 

Field Detail

outputString

protected java.lang.String outputString
Constructor Detail

GmdhDepthSearch

public GmdhDepthSearch()
Method Detail

setClassifier

public void setClassifier(weka.classifiers.Classifier newClassifier)
Set the learner. It has to be one of the GMDH classifiers.

Overrides:
setClassifier in class weka.classifiers.SingleClassifierEnhancer
Parameters:
newClassifier - the classifier to use.

buildClassifier

public void buildClassifier(weka.core.Instances data)
                     throws java.lang.Exception
Specified by:
buildClassifier in class weka.classifiers.Classifier
Throws:
java.lang.Exception

classifyInstance

public double classifyInstance(weka.core.Instance instance)
                        throws java.lang.Exception
Overrides:
classifyInstance in class weka.classifiers.Classifier
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getRevision

public java.lang.String getRevision()
Specified by:
getRevision in interface weka.core.RevisionHandler

getTechnicalInformation

public weka.core.TechnicalInformation getTechnicalInformation()
Specified by:
getTechnicalInformation in interface weka.core.TechnicalInformationHandler

getFolds

public int getFolds()
Returns:
the folds

setFolds

public void setFolds(int folds)
Parameters:
folds - the folds to set