public class Iadem2 extends AbstractClassifier implements MultiClassClassifier
Modifier and Type | Class and Description |
---|---|
class |
Iadem2.LeafNode |
class |
Iadem2.LeafNodeNB |
class |
Iadem2.LeafNodeNBKirkby |
class |
Iadem2.LeafNodeWeightedVote |
class |
Iadem2.Node |
class |
Iadem2.NominalVirtualNode |
class |
Iadem2.NumericVirtualNode |
class |
Iadem2.SplitNode |
class |
Iadem2.VirtualNode |
Modifier and Type | Field and Description |
---|---|
FloatOption |
attributeDiferentiation |
ClassOption |
driftDetectionMethodOption |
static double |
ERROR_MARGIN |
protected AbstractChangeDetector |
estimator |
IntOption |
gracePeriodOption |
MultiChoiceOption |
leafPredictionOption |
int |
naiveBayesLimit |
protected int |
numberOfInstancesProcessed |
int |
numberOfLeaves |
int |
numberOfNodes |
ClassOption |
numericEstimatorOption |
double |
percentInCommon |
FloatOption |
splitConfidenceOption |
MultiChoiceOption |
splitCriterionOption |
MultiChoiceOption |
splitTestsOption |
protected Iadem2.Node |
treeRoot |
classifierRandom, downSampleRatio, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
config
Constructor and Description |
---|
Iadem2() |
Modifier and Type | Method and Description |
---|---|
void |
createRoot(Instance instance) |
double |
getAttributeDifferentiation() |
double[] |
getClassVotes(Instance instance) |
int |
getMaxNumberOfBins() |
IademSplitCriterion |
getMeasure() |
void |
getModelDescription(StringBuilder out,
int indent)
Returns a string representation of the model.
|
protected Measurement[] |
getModelMeasurementsImpl()
Gets the current measurements of this classifier.
The reason for ...Impl methods: ease programmer burden by not requiring them to remember calls to super in overridden methods. |
int |
getNaiveBayesLimit() |
long |
getNumberOfInstancesProcessed() |
int |
getNumberOfLeaves() |
int |
getNumberOfNodes() |
void |
getNumberOfNodes(int[] count) |
IademNumericAttributeObserver |
getNumericAttObserver() |
double |
getPercentInCommon() |
Iadem2.Node |
getTreeRoot() |
int |
getValuesOfNominalAttributes(int attIndex,
Instance instance) |
double[] |
getVotesForInstance(Instance inst)
Predicts the class memberships for a given instance.
|
void |
incrNumberOfInstancesProcessed() |
boolean |
isOnlyBinaryTest() |
boolean |
isOnlyMultiwayTest() |
boolean |
isRandomizable()
Gets whether this learner needs a random seed.
|
void |
learnFromInstance(Instance instance) |
AbstractChangeDetector |
newEstimator() |
Iadem2.LeafNode |
newLeafNode(Iadem2.Node parent,
long instTreeCountSinceVirtual,
long instNodeCountSinceVirtual,
double[] classDist,
Instance instance) |
protected IademNumericAttributeObserver |
newNumericClassObserver() |
void |
newSplit(int numOfLeaves) |
void |
resetLearningImpl()
Resets this classifier.
|
void |
setNumberOfLeaves(int numberOfLeaves) |
void |
setNumberOfNodes(int numberOfNodes) |
void |
setTreeRoot(Iadem2.Node newRoot) |
void |
trainOnInstanceImpl(Instance inst)
Trains this classifier incrementally using the given instance.
The reason for ...Impl methods: ease programmer burden by not requiring them to remember calls to super in overridden methods. |
contextIsCompatible, copy, correctlyClassifies, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getDownSampleRatio, getModel, getModelContext, getModelMeasurements, getNominalValueString, getPredictionForInstance, getPredictionForInstance, getPurposeString, getSubClassifiers, getSublearners, getVotesForInstance, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance, trainOnInstance, updateDownSampleRatio
getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCLICreationString, getOptions, prepareForUse, prepareForUse
measureByteSize
public ClassOption numericEstimatorOption
public IntOption gracePeriodOption
public MultiChoiceOption splitCriterionOption
public FloatOption splitConfidenceOption
public MultiChoiceOption splitTestsOption
public MultiChoiceOption leafPredictionOption
public ClassOption driftDetectionMethodOption
public FloatOption attributeDiferentiation
public final int naiveBayesLimit
public final double percentInCommon
protected int numberOfInstancesProcessed
public static final double ERROR_MARGIN
protected Iadem2.Node treeRoot
protected AbstractChangeDetector estimator
public int numberOfNodes
public int numberOfLeaves
public boolean isRandomizable()
Learner
isRandomizable
in interface Learner<Example<Instance>>
public void resetLearningImpl()
AbstractClassifier
resetLearningImpl
in class AbstractClassifier
public void trainOnInstanceImpl(Instance inst)
AbstractClassifier
trainOnInstanceImpl
in class AbstractClassifier
inst
- the instance to be used for trainingprotected IademNumericAttributeObserver newNumericClassObserver()
protected Measurement[] getModelMeasurementsImpl()
AbstractClassifier
getModelMeasurementsImpl
in class AbstractClassifier
public void getModelDescription(StringBuilder out, int indent)
AbstractClassifier
getModelDescription
in class AbstractClassifier
out
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic double[] getVotesForInstance(Instance inst)
Classifier
getVotesForInstance
in interface Classifier
getVotesForInstance
in class AbstractClassifier
inst
- the instance to be classifiedpublic AbstractChangeDetector newEstimator()
public void createRoot(Instance instance)
public int getMaxNumberOfBins()
public IademNumericAttributeObserver getNumericAttObserver()
public long getNumberOfInstancesProcessed()
public Iadem2.LeafNode newLeafNode(Iadem2.Node parent, long instTreeCountSinceVirtual, long instNodeCountSinceVirtual, double[] classDist, Instance instance)
public double getAttributeDifferentiation()
public IademSplitCriterion getMeasure() throws IademException
IademException
public void setTreeRoot(Iadem2.Node newRoot)
public void learnFromInstance(Instance instance) throws IademException
IademException
public Iadem2.Node getTreeRoot()
public double[] getClassVotes(Instance instance)
public double getPercentInCommon()
public int getValuesOfNominalAttributes(int attIndex, Instance instance)
public int getNaiveBayesLimit()
public boolean isOnlyMultiwayTest()
public boolean isOnlyBinaryTest()
public void incrNumberOfInstancesProcessed()
public void getNumberOfNodes(int[] count)
public void newSplit(int numOfLeaves)
public int getNumberOfNodes()
public void setNumberOfNodes(int numberOfNodes)
public int getNumberOfLeaves()
public void setNumberOfLeaves(int numberOfLeaves)
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.