ai.libs.jaicore.ml.classification.multiclass.reduction

Class MCTreeNodeReD

  • java.lang.Object
    • ai.libs.jaicore.ml.classification.multiclass.reduction.MCTreeNodeReD
  • All Implemented Interfaces:
    java.io.Serializable, weka.classifiers.Classifier
    Direct Known Subclasses:
    MCTreeMergeNode, MCTreeNodeReDLeaf


    public class MCTreeNodeReDextends java.lang.Objectimplements weka.classifiers.Classifier, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      ModifierConstructor and Description
      protected MCTreeNodeReD() 
       MCTreeNodeReD(weka.classifiers.Classifier innerNodeClassifier, java.util.Collection<java.lang.String> leftChildClasses, weka.classifiers.Classifier leftChildClassifier, java.util.Collection<java.lang.String> rightChildClasses, weka.classifiers.Classifier rightChildClassifier) 
       MCTreeNodeReD(weka.classifiers.Classifier innerNodeClassifier, java.util.List<java.util.Collection<java.lang.String>> childClasses, java.util.List<weka.classifiers.Classifier> childClassifier) 
       MCTreeNodeReD(java.lang.String innerNodeClassifier, java.util.Collection<java.lang.String> leftChildClasses, weka.classifiers.Classifier leftChildClassifier, java.util.Collection<java.lang.String> rightChildClasses, weka.classifiers.Classifier rightChildClassifier) 
       MCTreeNodeReD(java.lang.String innerNodeClassifier, java.util.Collection<java.lang.String> leftChildClasses, java.lang.String leftChildClassifier, java.util.Collection<java.lang.String> rightChildClasses, java.lang.String rightChildClassifier) 
    • Constructor Detail

      • MCTreeNodeReD

        public MCTreeNodeReD(java.lang.String innerNodeClassifier,                     java.util.Collection<java.lang.String> leftChildClasses,                     java.lang.String leftChildClassifier,                     java.util.Collection<java.lang.String> rightChildClasses,                     java.lang.String rightChildClassifier)              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • MCTreeNodeReD

        public MCTreeNodeReD(weka.classifiers.Classifier innerNodeClassifier,                     java.util.Collection<java.lang.String> leftChildClasses,                     weka.classifiers.Classifier leftChildClassifier,                     java.util.Collection<java.lang.String> rightChildClasses,                     weka.classifiers.Classifier rightChildClassifier)
      • MCTreeNodeReD

        public MCTreeNodeReD(java.lang.String innerNodeClassifier,                     java.util.Collection<java.lang.String> leftChildClasses,                     weka.classifiers.Classifier leftChildClassifier,                     java.util.Collection<java.lang.String> rightChildClasses,                     weka.classifiers.Classifier rightChildClassifier)              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • MCTreeNodeReD

        public MCTreeNodeReD(weka.classifiers.Classifier innerNodeClassifier,                     java.util.List<java.util.Collection<java.lang.String>> childClasses,                     java.util.List<weka.classifiers.Classifier> childClassifier)
      • MCTreeNodeReD

        protected MCTreeNodeReD()
    • Method Detail

      • addChild

        public void addChild(java.util.List<java.lang.String> childClasses,                     weka.classifiers.Classifier childClassifier)
      • getChildren

        public java.util.List<ai.libs.jaicore.ml.classification.multiclass.reduction.MCTreeNodeReD.ChildNode> getChildren()
        Returns:
        Returns a list of the child nodes of this node.
      • getContainedClasses

        public java.util.List<java.lang.String> getContainedClasses()
        Get the classes contained in the leaves of this node.
        Returns:
        Returns a collection of the contained class values contained in the leaves of this node.
      • isCompletelyConfigured

        public boolean isCompletelyConfigured()
      • buildClassifier

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

        public double classifyInstance(weka.core.Instance instance)                        throws java.lang.Exception
        Specified by:
        classifyInstance in interface weka.classifiers.Classifier
        Throws:
        java.lang.Exception
      • distributionForInstance

        public double[] distributionForInstance(weka.core.Instance instance)                                 throws java.lang.Exception
        Specified by:
        distributionForInstance in interface weka.classifiers.Classifier
        Throws:
        java.lang.Exception
      • getCapabilities

        public weka.core.Capabilities getCapabilities()
        Specified by:
        getCapabilities in interface weka.classifiers.Classifier
      • getHeight

        public int getHeight()
      • getDepthOfFirstCommonParent

        public int getDepthOfFirstCommonParent(java.util.List<java.lang.String> classes)
      • getClassifier

        public weka.classifiers.Classifier getClassifier()
      • setBaseClassifier

        public void setBaseClassifier(weka.classifiers.Classifier classifier)
      • toString

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

        public java.lang.String toStringWithOffset()
      • toStringWithOffset

        public java.lang.String toStringWithOffset(java.lang.String offset)
      • clone

        public MCTreeNodeReD clone()
        Overrides:
        clone in class java.lang.Object


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14