public abstract class RuleRegressionNode extends Object implements Serializable
Constructor and Description |
---|
RuleRegressionNode() |
RuleRegressionNode(double[] initialClassObservations) |
Modifier and Type | Method and Description |
---|---|
double |
computeError(Instance instance) |
static double |
computeHoeffdingBound(double range,
double confidence,
double n) |
static double |
computeProbability(double mean,
double sd,
double value) |
double |
computeSD(double squaredVal,
double val,
long size) |
double |
getCurrentError() |
long |
getInstancesSeen() |
int |
getLearnerToUse(int predMode) |
DoubleVector |
getNodeStatistics() |
double |
getNormalizedPrediction(Instance instance) |
Perceptron |
getPerceptron() |
double[] |
getPrediction(Instance instance) |
double[] |
getPrediction(Instance instance,
int predictionMode) |
double[] |
getSimplePrediction() |
TargetMean |
getTargetMean() |
boolean |
isAnomaly(Instance instance,
double uniVariateAnomalyProbabilityThreshold,
double multiVariateAnomalyProbabilityThreshold,
int numberOfInstanceesForAnomaly) |
void |
setPerceptron(Perceptron perceptron) |
void |
setTargetMean(TargetMean targetMean) |
abstract void |
updateStatistics(Instance instance) |
public RuleRegressionNode(double[] initialClassObservations)
public RuleRegressionNode()
public Perceptron getPerceptron()
public void setPerceptron(Perceptron perceptron)
public TargetMean getTargetMean()
public void setTargetMean(TargetMean targetMean)
public abstract void updateStatistics(Instance instance)
public double[] getPrediction(Instance instance)
public double[] getSimplePrediction()
public double[] getPrediction(Instance instance, int predictionMode)
public double getNormalizedPrediction(Instance instance)
public int getLearnerToUse(int predMode)
public double computeError(Instance instance)
public double getCurrentError()
public long getInstancesSeen()
public DoubleVector getNodeStatistics()
public boolean isAnomaly(Instance instance, double uniVariateAnomalyProbabilityThreshold, double multiVariateAnomalyProbabilityThreshold, int numberOfInstanceesForAnomaly)
public static double computeProbability(double mean, double sd, double value)
public static double computeHoeffdingBound(double range, double confidence, double n)
public double computeSD(double squaredVal, double val, long size)
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.