|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.AbstractClassifier
weka.classifiers.SingleClassifierEnhancer
weka.classifiers.meta.RangeCheck
public class RangeCheck
Keeps track of the ranges in case of numeric attributes. It then allows checks whether an instance is for one or more attributes outside the training range.
Valid options are:-D If set, classifier is run in debug mode and may output additional info to the console
-W Full name of base classifier. (default: weka.classifiers.rules.ZeroR)
Options specific to classifier weka.classifiers.rules.ZeroR:
-D If set, classifier is run in debug mode and may output additional info to the console
| Field Summary | |
|---|---|
protected weka.core.Instances |
m_Header
the training header. |
protected Hashtable<Integer,double[]> |
m_Ranges
the ranges (attribute index <-> double[]). |
| Fields inherited from class weka.classifiers.SingleClassifierEnhancer |
|---|
m_Classifier |
| Fields inherited from class weka.classifiers.AbstractClassifier |
|---|
m_Debug |
| Constructor Summary | |
|---|---|
RangeCheck()
|
|
| Method Summary | |
|---|---|
void |
buildClassifier(weka.core.Instances data)
Build the classifier on the filtered data. |
List<String> |
checkRangeForInstance(weka.core.Instance inst)
Checks the range for the instance. |
double[] |
distributionForInstance(weka.core.Instance instance)
Classifies a given instance after filtering. |
String |
globalInfo()
Returns a string describing this classifier. |
String |
toString()
Output a representation of this classifier |
| Methods inherited from class weka.classifiers.SingleClassifierEnhancer |
|---|
classifierTipText, defaultClassifierString, getCapabilities, getClassifier, getClassifierSpec, getOptions, listOptions, setClassifier, setOptions |
| Methods inherited from class weka.classifiers.AbstractClassifier |
|---|
classifyInstance, debugTipText, forName, getDebug, getRevision, makeCopies, makeCopy, runClassifier, setDebug |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface weka.classifiers.Classifier |
|---|
classifyInstance, getCapabilities |
| Field Detail |
|---|
protected Hashtable<Integer,double[]> m_Ranges
protected weka.core.Instances m_Header
| Constructor Detail |
|---|
public RangeCheck()
| Method Detail |
|---|
public String globalInfo()
public void buildClassifier(weka.core.Instances data)
throws Exception
buildClassifier in interface weka.classifiers.Classifierdata - the training data
Exception - if the classifier could not be built successfully
public double[] distributionForInstance(weka.core.Instance instance)
throws Exception
distributionForInstance in interface weka.classifiers.ClassifierdistributionForInstance in class weka.classifiers.AbstractClassifierinstance - the instance to be classified
Exception - if instance could not be classified successfullypublic List<String> checkRangeForInstance(weka.core.Instance inst)
checkRangeForInstance in interface RangeCheckClassifierinst - the instance to check
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||