Class RuleActiveLearningNode

    • Field Detail

      • predictionFunction

        protected int predictionFunction
      • changeDetection

        protected boolean changeDetection
      • owner

        protected Rule owner
      • attributesMask

        protected boolean[] attributesMask
      • numAttributesSelected

        protected int numAttributesSelected
      • splitIndex

        protected int splitIndex
      • statisticsNewRuleActiveLearningNode

        protected double[] statisticsNewRuleActiveLearningNode
      • statisticsBranchSplit

        protected double[] statisticsBranchSplit
      • statisticsOtherBranchSplit

        protected double[] statisticsOtherBranchSplit
    • Constructor Detail

      • RuleActiveLearningNode

        public RuleActiveLearningNode​(double[] initialClassObservations)
        Create a new RuleActiveLearningNode
      • RuleActiveLearningNode

        public RuleActiveLearningNode()
      • RuleActiveLearningNode

        public RuleActiveLearningNode​(Rule.Builder builder)
    • Method Detail

      • learnFromInstance

        public abstract void learnFromInstance​(Instance inst)
      • updateStatistics

        public void updateStatistics​(Instance instance)
      • debug

        protected void debug​(String string,
                             int level)
      • getPrediction

        public double[] getPrediction​(Instance instance)
      • getPrediction

        public abstract double[] getPrediction​(Instance instance,
                                               int predictionMode)
      • getLearnerToUse

        public abstract int getLearnerToUse​(Instance instance,
                                            int predictionMode)
      • computeError

        public abstract double computeError​(Instance instance)
      • updatePageHinckleyTest

        public boolean updatePageHinckleyTest​(double error)
      • getInstancesSeen

        public long getInstancesSeen()
      • isAnomaly

        public abstract boolean isAnomaly​(Instance instance,
                                          double uniVariateAnomalyProbabilityThreshold,
                                          double multiVariateAnomalyProbabilityThreshold,
                                          int numberOfInstanceesForAnomaly)
      • computeProbability

        public double computeProbability​(double mean,
                                         double sd,
                                         double value)
      • getSplitIndex

        public int getSplitIndex()
      • setSplitIndex

        public void setSplitIndex​(int splitIndex)
      • getStatisticsBranchSplit

        public double[] getStatisticsBranchSplit()
      • setStatisticsBranchSplit

        public void setStatisticsBranchSplit​(double[] statisticsBranchSplit)
      • getStatisticsNewRuleActiveLearningNode

        public double[] getStatisticsNewRuleActiveLearningNode()
      • setStatisticsNewRuleActiveLearningNode

        public void setStatisticsNewRuleActiveLearningNode​(double[] statisticsNewRuleActiveLearningNode)
      • getStatisticsOtherBranchSplit

        public double[] getStatisticsOtherBranchSplit()
      • setStatisticsOtherBranchSplit

        public void setStatisticsOtherBranchSplit​(double[] statisticsOtherBranchSplit)
      • tryToExpand

        public abstract boolean tryToExpand​(double splitConfidence,
                                            double tieThreshold)
      • computeHoeffdingBound

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

        public abstract double[] getSimplePrediction()
      • getNodeStatistics

        public DoubleVector getNodeStatistics()
      • updateChangeDetection

        public boolean updateChangeDetection​(double error)
      • getCurrentError

        public abstract double getCurrentError()