|
||||||||||
| 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.AbstainAttributePercentile
public class AbstainAttributePercentile
Only predict if attribute value within percentile range. Ensure same for training set if req.
| Field Summary | |
|---|---|
protected int |
m_attnum
|
protected weka.core.Instances |
m_Data
|
protected boolean |
m_debug
|
protected double |
m_max
|
protected double |
m_min
|
protected boolean |
m_ok
|
protected double |
m_pctile
|
protected Range |
m_Range
|
protected Hashtable<Integer,double[]> |
m_Ranges
the ranges (attribute index <-> double[]). |
protected boolean |
m_removetrain
|
| Fields inherited from class weka.classifiers.SingleClassifierEnhancer |
|---|
m_Classifier |
| Fields inherited from class weka.classifiers.AbstractClassifier |
|---|
m_Debug |
| Constructor Summary | |
|---|---|
AbstainAttributePercentile()
|
|
| Method Summary | |
|---|---|
String |
attributeTipText()
|
void |
buildClassifier(weka.core.Instances data)
Builds the classifier. |
double |
classifyInstance(weka.core.Instance inst)
Returns the prediction. |
String |
getAttribute()
|
weka.core.Capabilities |
getCapabilities()
Returns default capabilities of the base classifier. |
String[] |
getOptions()
Gets the current option settings for the OptionHandler. |
double |
getPercentile()
|
boolean |
getRemoveTrain()
|
String |
getRevision()
|
String |
globalInfo()
Returns a string describing classifier. |
Enumeration |
listOptions()
Returns an enumeration describing the available options. |
static void |
main(String[] argv)
Main method for running this class. |
String |
percentileTipText()
|
String |
removeTrainTipText()
|
void |
setAttribute(String at)
|
void |
setOptions(String[] options)
Sets the OptionHandler's options using the given list. |
void |
setPercentile(double var)
|
void |
setRemoveTrain(boolean t)
|
String |
toString()
Returns description of classifier. |
| Methods inherited from class weka.classifiers.SingleClassifierEnhancer |
|---|
classifierTipText, defaultClassifierString, getClassifier, getClassifierSpec, setClassifier |
| Methods inherited from class weka.classifiers.AbstractClassifier |
|---|
debugTipText, distributionForInstance, forName, getDebug, makeCopies, makeCopy, runClassifier, setDebug |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected weka.core.Instances m_Data
protected int m_attnum
protected boolean m_debug
protected double m_pctile
protected boolean m_ok
protected boolean m_removetrain
protected double m_min
protected double m_max
protected Hashtable<Integer,double[]> m_Ranges
protected Range m_Range
| Constructor Detail |
|---|
public AbstainAttributePercentile()
| Method Detail |
|---|
public String globalInfo()
public Enumeration listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class weka.classifiers.SingleClassifierEnhancer
public void setOptions(String[] options)
throws Exception
-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
-S <sint> Number of regressions (default: 10)
-P <int> Percent sample size (default: 60)
-E <int> Percent Error at (default: 50)
-G <seed> Set the seed used to generate samples (default: 0)
setOptions in interface weka.core.OptionHandlersetOptions in class weka.classifiers.SingleClassifierEnhanceroptions - the list of options as an array of strings
Exception - if an option is not supportedpublic String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class weka.classifiers.SingleClassifierEnhancerpublic weka.core.Capabilities getCapabilities()
getCapabilities in interface weka.classifiers.ClassifiergetCapabilities in interface weka.core.CapabilitiesHandlergetCapabilities in class weka.classifiers.SingleClassifierEnhancer
public void buildClassifier(weka.core.Instances data)
throws Exception
buildClassifier in interface weka.classifiers.Classifierdata - the training data
Exception - if something goes wrong
public double classifyInstance(weka.core.Instance inst)
throws Exception
classifyInstance in interface weka.classifiers.ClassifierclassifyInstance in class weka.classifiers.AbstractClassifierExceptionpublic String toString()
toString in class Objectpublic String getRevision()
getRevision in interface weka.core.RevisionHandlergetRevision in class weka.classifiers.AbstractClassifierpublic void setPercentile(double var)
public double getPercentile()
public String percentileTipText()
public void setAttribute(String at)
public String getAttribute()
public String attributeTipText()
public void setRemoveTrain(boolean t)
public boolean getRemoveTrain()
public String removeTrainTipText()
public static void main(String[] argv)
argv - the options
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||