Class LearningLiteral

    • Constructor Detail

      • LearningLiteral

        public LearningLiteral()
      • LearningLiteral

        public LearningLiteral​(int[] outputsToLearn)
    • Method Detail

      • tryToExpand

        public abstract boolean tryToExpand​(double splitConfidence,
                                            double tieThresholdOption)
      • updateAndCheckChange

        public boolean updateAndCheckChange​(MultiLabelInstance instance)
      • getNormalizedErrors

        protected abstract double[] getNormalizedErrors​(Prediction prediction,
                                                        Instance inst)
      • updateAndCheckAnomalyDetection

        public boolean updateAndCheckAnomalyDetection​(MultiLabelInstance instance)
      • getWeightSeenSinceExpansion

        public double getWeightSeenSinceExpansion()
      • getOutputsToLearn

        public int[] getOutputsToLearn()
      • setOutputsToLearn

        public void setOutputsToLearn​(int[] outputsToLearn)
      • getDescription

        public void getDescription​(StringBuilder sb,
                                   int indent)
        Description copied from interface: MOAObject
        Returns a string representation of this object. Used in AbstractMOAObject.toString to give a string representation of the object.
        Parameters:
        sb - the stringbuilder to add the description
        indent - the number of characters to indent
      • getExpandedLearningLiteral

        public LearningLiteral getExpandedLearningLiteral()
      • getOtherBranchLearningLiteral

        public LearningLiteral getOtherBranchLearningLiteral()
      • getErrors

        public double[] getErrors()
      • setChangeDetector

        public void setChangeDetector​(ChangeDetector changeDetector)
      • setAnomalyDetector

        public void setAnomalyDetector​(AnomalyDetector anomalyDetector)
      • computeHoeffdingBound

        public static double computeHoeffdingBound​(double range,
                                                   double confidence,
                                                   double n)
      • setRandomGenerator

        public void setRandomGenerator​(Random random)
      • setAttributesPercentage

        public void setAttributesPercentage​(double attributesPercentage)
      • initializeAttibutesMask

        protected int initializeAttibutesMask​(MultiLabelInstance inst)
      • getInputsToLearn

        public int[] getInputsToLearn()
      • setInstanceTransformer

        public void setInstanceTransformer​(InstanceTransformer instanceTransformer)
      • getOtherOutputsLearningLiteral

        public LearningLiteral getOtherOutputsLearningLiteral()
      • setInstanceInformation

        public void setInstanceInformation​(InstanceInformation instanceInformation)
      • getMeritInputAttributes

        public double[] getMeritInputAttributes()
      • getAttributeMask

        public boolean[] getAttributeMask()