public class RuleClassifierNBayes extends RuleClassifier
This algorithm also does the detection of anomalies.
Learning Decision RuleClassifications from Data Streams, IJCAI 2011, J. Gama, P. Kosina
Parameters:
Modifier and Type | Field and Description |
---|---|
IntOption |
nbThresholdOption |
anomalyDetectionOption, anomalyNumInstThresholdOption, anomalyProbabilityThresholdOption, attributeObservers, attributeObserversGauss, caseAnomaly, caseAnomalySupervised, gracePeriodOption, instance, observedClassDistribution, orderedRulesOption, PminOption, predictionFunctionOption, probabilityThresholdOption, ruleAnomaliesIndex, ruleAnomaliesIndexSupervised, ruleAttribAnomalyStatistics, ruleAttribAnomalyStatisticsSupervised, ruleClassIndex, ruleSet, ruleSetAnomalies, ruleSetAnomaliesSupervised, saveBestEntropy, saveBestEntropyNominalAttrib, saveBestGlobalEntropy, saveBestValGlobalEntropy, saveTheBest, splitConfidenceOption, Supervised, tieThresholdOption, Unsupervised
classifierRandom, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
classOptionNamesToPreparedObjects, options
Constructor and Description |
---|
RuleClassifierNBayes() |
Modifier and Type | Method and Description |
---|---|
protected double[] |
exponential(double[] votes) |
protected double[] |
firstHitNB(weka.core.Instance inst) |
double[] |
getVotesForInstance(weka.core.Instance inst)
Predicts the class memberships for a given instance.
|
protected double[] |
normalize(double[] votes) |
protected double[] |
weightedMaxNB(weka.core.Instance inst) |
protected double[] |
weightedSumNB(weka.core.Instance inst) |
checkBestAttrib, computeAnomalySupervised, computeAnomalyUnsupervised, ComputeHoeffdingBound, computeMean, computeProbability, computeSD, createRule, entropy, expandeRule, findBestValEntropy, findBestValEntropyNominalAtt, firstHit, getBestSecondBestEntropy, getCountNominalAttrib, getModelDescription, getModelDescriptionNoAnomalyDetection, getModelMeasurementsImpl, getPurposeString, getRuleMajorityClassIndex, getWeightSeen, initializeRuleStatistics, isRandomizable, mainFindBestValEntropy, manageMemory, newNominalClassObserver, newNumericClassObserver, newNumericClassObserver2, oberversDistribProb, printAnomaliesSupervised, printAnomaliesUnsupervised, resetLearningImpl, round, theBestAttributes, trainOnInstanceImpl, updateRuleAttribStatistics, weightedMax, weightedSum
contextIsCompatible, copy, correctlyClassifies, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModelContext, getModelMeasurements, getNominalValueString, getSubClassifiers, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance
discoverOptionsViaReflection, getCLICreationString, getOptions, getPreparedClassOption, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCLICreationString, getOptions, prepareForUse, prepareForUse
measureByteSize
public IntOption nbThresholdOption
public double[] getVotesForInstance(weka.core.Instance inst)
Classifier
getVotesForInstance
in interface Classifier
getVotesForInstance
in class RuleClassifier
inst
- the instance to be classifiedprotected double[] firstHitNB(weka.core.Instance inst)
protected double[] weightedMaxNB(weka.core.Instance inst)
protected double[] weightedSumNB(weka.core.Instance inst)
protected double[] normalize(double[] votes)
protected double[] exponential(double[] votes)
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.