thresholdselector.html

来自「由java开发的软件包」· HTML 代码 · 共 1,290 行 · 第 1/4 页

HTML
1,290
字号
</DL><HR><A NAME="OPTIMIZE_LFREQ"><!-- --></A><H3>OPTIMIZE_LFREQ</H3><PRE>public static final int <B>OPTIMIZE_LFREQ</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.classifiers.meta.ThresholdSelector.OPTIMIZE_LFREQ">Constant Field Values</A></DL></DL><HR><A NAME="OPTIMIZE_MFREQ"><!-- --></A><H3>OPTIMIZE_MFREQ</H3><PRE>public static final int <B>OPTIMIZE_MFREQ</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.classifiers.meta.ThresholdSelector.OPTIMIZE_MFREQ">Constant Field Values</A></DL></DL><HR><A NAME="OPTIMIZE_POS_NAME"><!-- --></A><H3>OPTIMIZE_POS_NAME</H3><PRE>public static final int <B>OPTIMIZE_POS_NAME</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.classifiers.meta.ThresholdSelector.OPTIMIZE_POS_NAME">Constant Field Values</A></DL></DL><HR><A NAME="TAGS_OPTIMIZE"><!-- --></A><H3>TAGS_OPTIMIZE</H3><PRE>public static final <A HREF="../../../weka/core/Tag.html" title="class in weka.core">Tag</A>[] <B>TAGS_OPTIMIZE</B></PRE><DL><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="ThresholdSelector()"><!-- --></A><H3>ThresholdSelector</H3><PRE>public <B>ThresholdSelector</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><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><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" title="interface in weka.core">OptionHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/Classifier.html#listOptions()">listOptions</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</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[]&nbsp;options)                throws java.lang.Exception</PRE><DL><DD>Parses a given list of options. Valid options are:<p> -C num <br> The class for which threshold is determined. Valid values are: 1, 2 (for first and second classes, respectively), 3 (for whichever class is least frequent), 4 (for whichever class value is most  frequent), and 5 (for the first class named any of "yes","pos(itive)", "1", or method 3 if no matches). (default 3). <p> -W classname <br> Specify the full class name of classifier to perform cross-validation selection on.<p> -X num <br>  Number of folds used for cross validation. If just a hold-out set is used, this determines the size of the hold-out set (default 3).<p> -R integer <br> Sets whether confidence range correction is applied. This can be used to ensure the confidences range from 0 to 1. Use 0 for no range correction, 1 for correction based on the min/max values seen during threshold  selection (default 0).<p> -S seed <br> Random number seed (default 1).<p> -E integer <br> Sets the evaluation mode. Use 0 for evaluation using cross-validation, 1 for evaluation using hold-out set, and 2 for evaluation on the training data (default 1).<p> Options after -- are passed to the designated sub-classifier. <p><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" title="interface in weka.core">OptionHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/Classifier.html#setOptions(java.lang.String[])">setOptions</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</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="getOptions()"><!-- --></A><H3>getOptions</H3><PRE>public java.lang.String[] <B>getOptions</B>()</PRE><DL><DD>Gets the current settings of the Classifier.<P><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" title="interface in weka.core">OptionHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/Classifier.html#getOptions()">getOptions</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</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="buildClassifier(weka.core.Instances)"><!-- --></A><H3>buildClassifier</H3><PRE>public void <B>buildClassifier</B>(<A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;instances)                     throws java.lang.Exception</PRE><DL><DD>Generates the classifier.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/classifiers/Classifier.html#buildClassifier(weka.core.Instances)">buildClassifier</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instances</CODE> - set of instances serving as training data<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the classifier has not been generated successfully</DL></DD></DL><HR><A NAME="distributionForInstance(weka.core.Instance)"><!-- --></A><H3>distributionForInstance</H3><PRE>public double[] <B>distributionForInstance</B>(<A HREF="../../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;instance)                                 throws java.lang.Exception</PRE><DL><DD>Calculates the class membership probabilities for the given test instance.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/Classifier.html#distributionForInstance(weka.core.Instance)">distributionForInstance</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance to be classified<DT><B>Returns:</B><DD>predicted class probability distribution<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if instance could not be classified successfully</DL></DD></DL><HR><A NAME="globalInfo()"><!-- --></A><H3>globalInfo</H3><PRE>public java.lang.String <B>globalInfo</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a description of the classifier suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="designatedClassTipText()"><!-- --></A><H3>designatedClassTipText</H3><PRE>public java.lang.String <B>designatedClassTipText</B>()</PRE><DL><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="getDesignatedClass()"><!-- --></A><H3>getDesignatedClass</H3><PRE>public <A HREF="../../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A> <B>getDesignatedClass</B>()</PRE><DL><DD>Gets the method to determine which class value to optimize. Will be one of OPTIMIZE_0, OPTIMIZE_1, OPTIMIZE_LFREQ, OPTIMIZE_MFREQ, OPTIMIZE_POS_NAME.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the class selection mode.</DL></DD></DL><HR><A NAME="setDesignatedClass(weka.core.SelectedTag)"><!-- --></A><H3>setDesignatedClass</H3><PRE>public void <B>setDesignatedClass</B>(<A HREF="../../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A>&nbsp;newMethod)</PRE><DL><DD>Sets the method to determine which class value to optimize. Will be one of OPTIMIZE_0, OPTIMIZE_1, OPTIMIZE_LFREQ, OPTIMIZE_MFREQ, OPTIMIZE_POS_NAME.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newMethod</CODE> - the new class selection mode.</DL></DD></DL><HR><A NAME="evaluationModeTipText()"><!-- --></A><H3>evaluationModeTipText</H3><PRE>public java.lang.String <B>evaluationModeTipText</B>()</PRE><DL><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="setEvaluationMode(weka.core.SelectedTag)"><!-- --></A><H3>setEvaluationMode</H3><PRE>public void <B>setEvaluationMode</B>(<A HREF="../../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A>&nbsp;newMethod)</PRE><DL><DD>Sets the evaluation mode used. Will be one of EVAL_TRAINING, EVAL_TUNED_SPLIT, or EVAL_CROSS_VALIDATION<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newMethod</CODE> - the new evaluation mode.</DL></DD></DL><HR><A NAME="getEvaluationMode()"><!-- --></A><H3>getEvaluationMode</H3><PRE>public <A HREF="../../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A> <B>getEvaluationMode</B>()</PRE><DL><DD>Gets the evaluation mode used. Will be one of EVAL_TRAINING, EVAL_TUNED_SPLIT, or EVAL_CROSS_VALIDATION<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the evaluation mode.</DL></DD></DL><HR><A NAME="rangeCorrectionTipText()"><!-- --></A><H3>rangeCorrectionTipText</H3><PRE>public java.lang.String <B>rangeCorrectionTipText</B>()</PRE><DL><DD><DL></DL></DD><DD><DL>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?