📄 thresholdselector.html
字号:
<A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#ThresholdSelector()">ThresholdSelector</A></B>()</CODE><BR> </TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#buildClassifier(weka.core.Instances)">buildClassifier</A></B>(<A HREF="../../weka/core/Instances.html">Instances</A> instances)</CODE><BR> Generates the classifier.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#designatedClassTipText()">designatedClassTipText</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#distributionClassifierTipText()">distributionClassifierTipText</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#distributionForInstance(weka.core.Instance)">distributionForInstance</A></B>(<A HREF="../../weka/core/Instance.html">Instance</A> instance)</CODE><BR> Calculates the class membership probabilities for the given test instance.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#evaluationModeTipText()">evaluationModeTipText</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#findThreshold(weka.core.FastVector)">findThreshold</A></B>(<A HREF="../../weka/core/FastVector.html">FastVector</A> predictions)</CODE><BR> Finds the best threshold, this implementation searches for the highest FMeasure.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../weka/core/SelectedTag.html">SelectedTag</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#getDesignatedClass()">getDesignatedClass</A></B>()</CODE><BR> Gets the method to determine which class value to optimize.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../weka/classifiers/DistributionClassifier.html">DistributionClassifier</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#getDistributionClassifier()">getDistributionClassifier</A></B>()</CODE><BR> Get the DistributionClassifier used as the classifier.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../weka/core/SelectedTag.html">SelectedTag</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#getEvaluationMode()">getEvaluationMode</A></B>()</CODE><BR> Gets the evaluation mode used.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#getNumXValFolds()">getNumXValFolds</A></B>()</CODE><BR> Get the number of folds used for cross-validation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#getOptions()">getOptions</A></B>()</CODE><BR> Gets the current settings of the Classifier.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../weka/core/FastVector.html">FastVector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#getPredictions(weka.core.Instances, int, int)">getPredictions</A></B>(<A HREF="../../weka/core/Instances.html">Instances</A> instances, int mode, int numFolds)</CODE><BR> Collects the classifier predictions using the specified evaluation method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../weka/core/SelectedTag.html">SelectedTag</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#getRangeCorrection()">getRangeCorrection</A></B>()</CODE><BR> Gets the confidence range correction mode used.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#getSeed()">getSeed</A></B>()</CODE><BR> Gets the random number seed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#globalInfo()">globalInfo</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#listOptions()">listOptions</A></B>()</CODE><BR> Returns an enumeration describing the available options</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#main(java.lang.String[])">main</A></B>(java.lang.String[] argv)</CODE><BR> Main method for testing this class.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#numXValFoldsTipText()">numXValFoldsTipText</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#rangeCorrectionTipText()">rangeCorrectionTipText</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#seedTipText()">seedTipText</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#setDesignatedClass(weka.core.SelectedTag)">setDesignatedClass</A></B>(<A HREF="../../weka/core/SelectedTag.html">SelectedTag</A> newMethod)</CODE><BR> Sets the method to determine which class value to optimize.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#setDistributionClassifier(weka.classifiers.DistributionClassifier)">setDistributionClassifier</A></B>(<A HREF="../../weka/classifiers/DistributionClassifier.html">DistributionClassifier</A> newClassifier)</CODE><BR> Set the DistributionClassifier for which threshold is set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#setEvaluationMode(weka.core.SelectedTag)">setEvaluationMode</A></B>(<A HREF="../../weka/core/SelectedTag.html">SelectedTag</A> newMethod)</CODE><BR> Sets the evaluation mode used.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#setNumXValFolds(int)">setNumXValFolds</A></B>(int newNumFolds)</CODE><BR> Set the number of folds used for cross-validation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#setOptions(java.lang.String[])">setOptions</A></B>(java.lang.String[] options)</CODE><BR> Parses a given list of options.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#setRangeCorrection(weka.core.SelectedTag)">setRangeCorrection</A></B>(<A HREF="../../weka/core/SelectedTag.html">SelectedTag</A> newMethod)</CODE><BR> Sets the confidence range correction mode used.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#setSeed(int)">setSeed</A></B>(int seed)</CODE><BR> Sets the seed for random number generation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/classifiers/ThresholdSelector.html#toString()">toString</A></B>()</CODE><BR> Returns description of the cross-validated classifier.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_weka.classifiers.DistributionClassifier"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class weka.classifiers.<A HREF="../../weka/classifiers/DistributionClassifier.html">DistributionClassifier</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../weka/classifiers/DistributionClassifier.html#classifyInstance(weka.core.Instance)">classifyInstance</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_weka.classifiers.Classifier"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class weka.classifiers.<A HREF="../../weka/classifiers/Classifier.html">Classifier</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../weka/classifiers/Classifier.html#forName(java.lang.String, java.lang.String[])">forName</A>, <A HREF="../../weka/classifiers/Classifier.html#makeCopies(weka.classifiers.Classifier, int)">makeCopies</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="RANGE_NONE"><!-- --></A><H3>RANGE_NONE</H3><PRE>public static final int <B>RANGE_NONE</B></PRE><DL></DL><HR><A NAME="RANGE_BOUNDS"><!-- --></A><H3>RANGE_BOUNDS</H3><PRE>public static final int <B>RANGE_BOUNDS</B></PRE><DL></DL><HR><A NAME="TAGS_RANGE"><!-- --></A><H3>TAGS_RANGE</H3><PRE>public static final <A HREF="../../weka/core/Tag.html">Tag</A>[] <B>TAGS_RANGE</B></PRE><DL></DL><HR><A NAME="EVAL_TRAINING_SET"><!-- --></A><H3>EVAL_TRAINING_SET</H3><PRE>public static final int <B>EVAL_TRAINING_SET</B></PRE><DL></DL><HR><A NAME="EVAL_TUNED_SPLIT"><!-- --></A><H3>EVAL_TUNED_SPLIT</H3><PRE>public static final int <B>EVAL_TUNED_SPLIT</B></PRE><DL></DL><HR><A NAME="EVAL_CROSS_VALIDATION"><!-- --></A><H3>EVAL_CROSS_VALIDATION</H3><PRE>public static final int <B>EVAL_CROSS_VALIDATION</B></PRE><DL></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -