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, UnsupervisedclassifierRandom, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModelclassOptionNamesToPreparedObjects, 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, weightedSumcontextIsCompatible, copy, correctlyClassifies, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModelContext, getModelMeasurements, getNominalValueString, getSubClassifiers, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstancediscoverOptionsViaReflection, getCLICreationString, getOptions, getPreparedClassOption, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUsecopy, measureByteSize, measureByteSize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCLICreationString, getOptions, prepareForUse, prepareForUsemeasureByteSizepublic IntOption nbThresholdOption
public double[] getVotesForInstance(weka.core.Instance inst)
ClassifiergetVotesForInstance in interface ClassifiergetVotesForInstance in class RuleClassifierinst - 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.