📄 classifiersubseteval.html
字号:
<A NAME="listOptions()"><!-- --></A><H3>listOptions</H3><PRE>public java.util.Enumeration <B>listOptions</B>()</PRE><DL><DD>Returns an enumeration describing the available options <p> -B <classifier> <br> Class name of the classifier to use for accuracy estimation. Place any classifier options last on the command line following a "--". Eg -B weka.classifiers.NaiveBayes ... -- -K <p> -T <br> Use the training data for accuracy estimation rather than a hold out/ test set. <p> -H <filename> <br> The file containing hold out/test instances to use for accuracy estimation <p><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#listOptions()">listOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of all the available options</DL></DD></DL><HR><A NAME="setOptions(java.lang.String[])"><!-- --></A><H3>setOptions</H3><PRE>public void <B>setOptions</B>(java.lang.String[] options) throws java.lang.Exception</PRE><DL><DD>Parses a given list of options. Valid options are:<p> -C <classifier> <br> Class name of classifier to use for accuracy estimation. Place any classifier options last on the command line following a "--". Eg -B weka.classifiers.NaiveBayes ... -- -K <p> -T <br> Use training data instead of a hold out/test set for accuracy estimation. <p> -H <filname> <br> Name of the hold out/test set to estimate classifier accuracy on. <p><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#setOptions(java.lang.String[])">setOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>options</CODE> - the list of options as an array of strings<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an option is not supported</DL></DD></DL><HR><A NAME="classifierTipText()"><!-- --></A><H3>classifierTipText</H3><PRE>public java.lang.String <B>classifierTipText</B>()</PRE><DL><DD>Returns the tip text for this property<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="setClassifier(weka.classifiers.Classifier)"><!-- --></A><H3>setClassifier</H3><PRE>public void <B>setClassifier</B>(<A HREF="../../weka/classifiers/Classifier.html">Classifier</A> newClassifier)</PRE><DL><DD>Set the classifier to use for accuracy estimation<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newClassifier</CODE> - the Classifier to use.</DL></DD></DL><HR><A NAME="getClassifier()"><!-- --></A><H3>getClassifier</H3><PRE>public <A HREF="../../weka/classifiers/Classifier.html">Classifier</A> <B>getClassifier</B>()</PRE><DL><DD>Get the classifier used as the base learner.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the classifier used as the classifier</DL></DD></DL><HR><A NAME="holdOutFileTipText()"><!-- --></A><H3>holdOutFileTipText</H3><PRE>public java.lang.String <B>holdOutFileTipText</B>()</PRE><DL><DD>Returns the tip text for this property<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getHoldOutFile()"><!-- --></A><H3>getHoldOutFile</H3><PRE>public java.io.File <B>getHoldOutFile</B>()</PRE><DL><DD>Gets the file that holds hold out/test instances.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>File that contains hold out instances</DL></DD></DL><HR><A NAME="setHoldOutFile(java.io.File)"><!-- --></A><H3>setHoldOutFile</H3><PRE>public void <B>setHoldOutFile</B>(java.io.File h)</PRE><DL><DD>Set the file that contains hold out/test instances<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>h</CODE> - the hold out file</DL></DD></DL><HR><A NAME="useTrainingTipText()"><!-- --></A><H3>useTrainingTipText</H3><PRE>public java.lang.String <B>useTrainingTipText</B>()</PRE><DL><DD>Returns the tip text for this property<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getUseTraining()"><!-- --></A><H3>getUseTraining</H3><PRE>public boolean <B>getUseTraining</B>()</PRE><DL><DD>Get if training data is to be used instead of hold out/test data<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if training data is to be used instead of hold out data</DL></DD></DL><HR><A NAME="setUseTraining(boolean)"><!-- --></A><H3>setUseTraining</H3><PRE>public void <B>setUseTraining</B>(boolean t)</PRE><DL><DD>Set if training data is to be used instead of hold out/test data<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if training data is to be used instead of hold out data</DL></DD></DL><HR><A NAME="getOptions()"><!-- --></A><H3>getOptions</H3><PRE>public java.lang.String[] <B>getOptions</B>()</PRE><DL><DD>Gets the current settings of ClassifierSubsetEval<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#getOptions()">getOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of strings suitable for passing to setOptions()</DL></DD></DL><HR><A NAME="buildEvaluator(weka.core.Instances)"><!-- --></A><H3>buildEvaluator</H3><PRE>public void <B>buildEvaluator</B>(<A HREF="../../weka/core/Instances.html">Instances</A> data) throws java.lang.Exception</PRE><DL><DD>Generates a attribute evaluator. Has to initialize all fields of the evaluator that are not being set via options.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/attributeSelection/ASEvaluation.html#buildEvaluator(weka.core.Instances)">buildEvaluator</A></CODE> in class <CODE><A HREF="../../weka/attributeSelection/ASEvaluation.html">ASEvaluation</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - set of instances serving as training data<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the evaluator has not been generated successfully</DL></DD></DL><HR><A NAME="evaluateSubset(java.util.BitSet)"><!-- --></A><H3>evaluateSubset</H3><PRE>public double <B>evaluateSubset</B>(java.util.BitSet subset) throws java.lang.Exception</PRE><DL><DD>Evaluates a subset of attributes<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/attributeSelection/SubsetEvaluator.html#evaluateSubset(java.util.BitSet)">evaluateSubset</A></CODE> in class <CODE><A HREF="../../weka/attributeSelection/SubsetEvaluator.html">SubsetEvaluator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>subset</CODE> - a bitset representing the attribute subset to be evaluated<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the subset could not be evaluated</DL></DD></DL><HR><A NAME="evaluateSubset(java.util.BitSet, weka.core.Instances)"><!-- --></A><H3>evaluateSubset</H3><PRE>public double <B>evaluateSubset</B>(java.util.BitSet subset, <A HREF="../../weka/core/Instances.html">Instances</A> holdOut) throws java.lang.Exception</PRE><DL><DD>Evaluates a subset of attributes with respect to a set of instances. Calling this function overides any test/hold out instancs set from setHoldOutFile.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/attributeSelection/HoldOutSubsetEvaluator.html#evaluateSubset(java.util.BitSet, weka.core.Instances)">evaluateSubset</A></CODE> in class <CODE><A HREF="../../weka/attributeSelection/HoldOutSubsetEvaluator.html">HoldOutSubsetEvaluator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>subset</CODE> - a bitset representing the attribute subset to be evaluated<DD><CODE>holdOut</CODE> - a set of instances (possibly seperate and distinct from those use to build/train the evaluator) with which to evaluate the merit of the subset<DT><B>Returns:</B><DD>the "merit" of the subset on the holdOut data<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the subset cannot be evaluated</DL></DD></DL><HR><A NAME="evaluateSubset(java.util.BitSet, weka.core.Instance, boolean)"><!-- --></A><H3>evaluateSubset</H3><PRE>public double <B>evaluateSubset</B>(java.util.BitSet subset, <A HREF="../../weka/core/Instance.html">Instance</A> holdOut, boolean retrain) throws java.lang.Exception</PRE><DL><DD>Evaluates a subset of attributes with respect to a single instance. Calling this function overides any hold out/test instances set through setHoldOutFile.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/attributeSelection/HoldOutSubsetEvaluator.html#evaluateSubset(java.util.BitSet, weka.core.Instance, boolean)">evaluateSubset</A></CODE> in class <CODE><A HREF="../../weka/attributeSelection/HoldOutSubsetEvaluator.html">HoldOutSubsetEvaluator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>subset</CODE> - a bitset representing the attribute subset to be evaluated<DD><CODE>holdOut</CODE> - a single instance (possibly not one of those used to build/train the evaluator) with which to evaluate the merit of the subset<DD><CODE>retrain</CODE> - true if the classifier should be retrained with respect to the new subset before testing on the holdOut instance.<DT><B>Returns:</B><DD>the "merit" of the subset on the holdOut instance<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the subset cannot be evaluated</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Returns a string describing classifierSubsetEval<DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the description as a string</DL></DD></DL><HR><A NAME="resetOptions()"><!-- --></A><H3>resetOptions</H3><PRE>protected void <B>resetOptions</B>()</PRE><DL><DD>reset to defaults<DD><DL></DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[] args)</PRE><DL><DD>Main method for testing this class.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - the options</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../weka/attributeSelection/ChiSquaredAttributeEval.html"><B>PREV CLASS</B></A> <A HREF="../../weka/attributeSelection/ConsistencySubsetEval.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="ClassifierSubsetEval.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -