Class HOMERNode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, meka.classifiers.multilabel.MultiLabelClassifier, meka.classifiers.MultiXClassifier, weka.classifiers.Classifier, weka.core.BatchPredictor, weka.core.CapabilitiesHandler, weka.core.CapabilitiesIgnorer, weka.core.CommandlineRunnable, weka.core.OptionHandler, weka.core.RevisionHandler
    Direct Known Subclasses:
    HOMERLeaf

    public class HOMERNode
    extends meka.classifiers.multilabel.AbstractMultiLabelClassifier
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class weka.classifiers.AbstractClassifier

        BATCH_SIZE_DEFAULT, m_BatchSize, m_Debug, m_DoNotCheckCapabilities, m_numDecimalPlaces, NUM_DECIMAL_PLACES_DEFAULT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void buildClassifier​(weka.core.Instances trainingSet)  
      double[] distributionForInstance​(weka.core.Instance testInstance)  
      java.lang.String getBaselearnerName()  
      java.util.List<HOMERNode> getChildren()  
      java.util.Collection<java.lang.Integer> getLabels()  
      boolean isLeaf()  
      weka.core.Instances prepareInstances​(weka.core.Instances dataset)  
      void setBaselearner​(meka.classifiers.multilabel.MultiLabelClassifier baselearner)  
      void setBaselearnerName​(java.lang.String baselearnerName)  
      void setThreshold​(boolean doThreshold)  
      java.lang.String toString()  
      • Methods inherited from class meka.classifiers.multilabel.AbstractMultiLabelClassifier

        evaluation, getModel, globalInfo, makeCopies, runClassifier, testCapabilities
      • Methods inherited from class weka.classifiers.AbstractClassifier

        batchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getCapabilities, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getOptions, getRevision, implementsMoreEfficientBatchPrediction, listOptions, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces, setOptions
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface weka.classifiers.Classifier

        classifyInstance, getCapabilities
      • Methods inherited from interface meka.classifiers.MultiXClassifier

        debugTipText, getDebug, setDebug
      • Methods inherited from interface weka.core.OptionHandler

        getOptions, listOptions, setOptions
    • Constructor Detail

      • HOMERNode

        public HOMERNode​(HOMERNode... nodes)
      • HOMERNode

        public HOMERNode​(java.util.List<HOMERNode> nodes)
    • Method Detail

      • setThreshold

        public void setThreshold​(boolean doThreshold)
      • setBaselearner

        public void setBaselearner​(meka.classifiers.multilabel.MultiLabelClassifier baselearner)
      • getBaselearnerName

        public java.lang.String getBaselearnerName()
      • setBaselearnerName

        public void setBaselearnerName​(java.lang.String baselearnerName)
      • getChildren

        public java.util.List<HOMERNode> getChildren()
      • getLabels

        public java.util.Collection<java.lang.Integer> getLabels()
        Returns:
        The set of labels this node is responsible for.
      • buildClassifier

        public void buildClassifier​(weka.core.Instances trainingSet)
                             throws java.lang.Exception
        Specified by:
        buildClassifier in interface weka.classifiers.Classifier
        Specified by:
        buildClassifier in class meka.classifiers.multilabel.AbstractMultiLabelClassifier
        Throws:
        java.lang.Exception
      • distributionForInstance

        public double[] distributionForInstance​(weka.core.Instance testInstance)
                                         throws java.lang.Exception
        Specified by:
        distributionForInstance in interface weka.classifiers.Classifier
        Specified by:
        distributionForInstance in class meka.classifiers.multilabel.AbstractMultiLabelClassifier
        Throws:
        java.lang.Exception
      • prepareInstances

        public weka.core.Instances prepareInstances​(weka.core.Instances dataset)
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • isLeaf

        public boolean isLeaf()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class meka.classifiers.multilabel.AbstractMultiLabelClassifier