📄 relieffattributeeval.html
字号:
<DT><B>Returns:</B><DD>a description of the evaluator suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><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<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> -M <number of instances> <br> Specify the number of instances to sample when estimating attributes. <br> If not specified then all instances will be used. <p> -D <seed> <br> Seed for randomly sampling instances. <p> -K <number of neighbours> <br> Number of nearest neighbours to use for estimating attributes. <br> (Default is 10). <p> -W <br> Weight nearest neighbours by distance. <p> -A <sigma> <br> Specify sigma value (used in an exp function to control how quickly <br> weights decrease for more distant instances). Use in conjunction with <br> -W. Sensible values = 1/5 to 1/10 the number of nearest neighbours. <br><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="sigmaTipText()"><!-- --></A><H3>sigmaTipText</H3><PRE>public java.lang.String <B>sigmaTipText</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="setSigma(int)"><!-- --></A><H3>setSigma</H3><PRE>public void <B>setSigma</B>(int s) throws java.lang.Exception</PRE><DL><DD>Sets the sigma value.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the value of sigma (> 0)<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if s is not positive</DL></DD></DL><HR><A NAME="getSigma()"><!-- --></A><H3>getSigma</H3><PRE>public int <B>getSigma</B>()</PRE><DL><DD>Get the value of sigma.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the sigma value.</DL></DD></DL><HR><A NAME="numNeighboursTipText()"><!-- --></A><H3>numNeighboursTipText</H3><PRE>public java.lang.String <B>numNeighboursTipText</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="setNumNeighbours(int)"><!-- --></A><H3>setNumNeighbours</H3><PRE>public void <B>setNumNeighbours</B>(int n)</PRE><DL><DD>Set the number of nearest neighbours<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - the number of nearest neighbours.</DL></DD></DL><HR><A NAME="getNumNeighbours()"><!-- --></A><H3>getNumNeighbours</H3><PRE>public int <B>getNumNeighbours</B>()</PRE><DL><DD>Get the number of nearest neighbours<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of nearest neighbours</DL></DD></DL><HR><A NAME="seedTipText()"><!-- --></A><H3>seedTipText</H3><PRE>public java.lang.String <B>seedTipText</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="setSeed(int)"><!-- --></A><H3>setSeed</H3><PRE>public void <B>setSeed</B>(int s)</PRE><DL><DD>Set the random number seed for randomly sampling instances.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the random number seed.</DL></DD></DL><HR><A NAME="getSeed()"><!-- --></A><H3>getSeed</H3><PRE>public int <B>getSeed</B>()</PRE><DL><DD>Get the seed used for randomly sampling instances.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the random number seed.</DL></DD></DL><HR><A NAME="sampleSizeTipText()"><!-- --></A><H3>sampleSizeTipText</H3><PRE>public java.lang.String <B>sampleSizeTipText</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="setSampleSize(int)"><!-- --></A><H3>setSampleSize</H3><PRE>public void <B>setSampleSize</B>(int s)</PRE><DL><DD>Set the number of instances to sample for attribute estimation<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the number of instances to sample.</DL></DD></DL><HR><A NAME="getSampleSize()"><!-- --></A><H3>getSampleSize</H3><PRE>public int <B>getSampleSize</B>()</PRE><DL><DD>Get the number of instances used for estimating attributes<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of instances.</DL></DD></DL><HR><A NAME="weightByDistanceTipText()"><!-- --></A><H3>weightByDistanceTipText</H3><PRE>public java.lang.String <B>weightByDistanceTipText</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="setWeightByDistance(boolean)"><!-- --></A><H3>setWeightByDistance</H3><PRE>public void <B>setWeightByDistance</B>(boolean b)</PRE><DL><DD>Set the nearest neighbour weighting method<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - true nearest neighbours are to be weighted by distance.</DL></DD></DL><HR><A NAME="getWeightByDistance()"><!-- --></A><H3>getWeightByDistance</H3><PRE>public boolean <B>getWeightByDistance</B>()</PRE><DL><DD>Get whether nearest neighbours are being weighted by distance<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>m_weightByDiffernce</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 ReliefFAttributeEval.<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="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Return a description of the ReliefF attribute evaluator.<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>a description of the evaluator as a String.</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>Initializes a ReliefF attribute evaluator.<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="evaluateAttribute(int)"><!-- --></A><H3>evaluateAttribute</H3><PRE>public double <B>evaluateAttribute</B>(int attribute) throws java.lang.Exception</PRE><DL><DD>Evaluates an individual attribute using ReliefF's instance based approach. The actual work is done by buildEvaluator which evaluates all features.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/attributeSelection/AttributeEvaluator.html#evaluateAttribute(int)">evaluateAttribute</A></CODE> in class <CODE><A HREF="../../weka/attributeSelection/AttributeEvaluator.html">AttributeEvaluator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attribute</CODE> - the index of the attribute to be evaluated<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the attribute could not be evaluated</DL></DD></DL><HR><A NAME="resetOptions()"><!-- --></A><H3>resetOptions</H3><PRE>protected void <B>resetOptions</B>()</PRE><DL><DD>Reset options to their default values<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/RankSearch.html"><B>PREV CLASS</B></A> <A HREF="../../weka/attributeSelection/SubsetEvaluator.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="ReliefFAttributeEval.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 + -