📄 attributeselection.html
字号:
Select attributes for a split of the data.</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/attributeSelection/AttributeSelection.html#selectedAttributes()">selectedAttributes</A></B>()</CODE><BR> get the final selected set of attributes.</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/attributeSelection/AttributeSelection.html#setEvaluator(weka.attributeSelection.ASEvaluation)">setEvaluator</A></B>(<A HREF="../../weka/attributeSelection/ASEvaluation.html" title="class in weka.attributeSelection">ASEvaluation</A> evaluator)</CODE><BR> set the attribute/subset evaluator</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/attributeSelection/AttributeSelection.html#setFolds(int)">setFolds</A></B>(int folds)</CODE><BR> set the number of folds 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/attributeSelection/AttributeSelection.html#setRanking(boolean)">setRanking</A></B>(boolean r)</CODE><BR> produce a ranking (if possible with the set search and evaluator)</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/attributeSelection/AttributeSelection.html#setSearch(weka.attributeSelection.ASSearch)">setSearch</A></B>(<A HREF="../../weka/attributeSelection/ASSearch.html" title="class in weka.attributeSelection">ASSearch</A> search)</CODE><BR> set the search method</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/attributeSelection/AttributeSelection.html#setSeed(int)">setSeed</A></B>(int s)</CODE><BR> set the seed for use in 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/attributeSelection/AttributeSelection.html#setXval(boolean)">setXval</A></B>(boolean x)</CODE><BR> do a 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/attributeSelection/AttributeSelection.html#toResultsString()">toResultsString</A></B>()</CODE><BR> get a description of the attribute selection</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="AttributeSelection()"><!-- --></A><H3>AttributeSelection</H3><PRE>public <B>AttributeSelection</B>()</PRE><DL><DD>constructor. Sets defaults for each member varaible. Default attribute evaluator is CfsSubsetEval; default search method is BestFirst.<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="numberAttributesSelected()"><!-- --></A><H3>numberAttributesSelected</H3><PRE>public int <B>numberAttributesSelected</B>() throws java.lang.Exception</PRE><DL><DD>Return the number of attributes selected from the most recent run of attribute selection<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of attributes selected<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="selectedAttributes()"><!-- --></A><H3>selectedAttributes</H3><PRE>public int[] <B>selectedAttributes</B>() throws java.lang.Exception</PRE><DL><DD>get the final selected set of attributes.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of attribute indexes<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if attribute selection has not been performed yet</DL></DD></DL><HR><A NAME="rankedAttributes()"><!-- --></A><H3>rankedAttributes</H3><PRE>public double[][] <B>rankedAttributes</B>() throws java.lang.Exception</PRE><DL><DD>get the final ranking of the attributes.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a two dimensional array of ranked attribute indexes and their associated merit scores as doubles.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if a ranking has not been produced</DL></DD></DL><HR><A NAME="setEvaluator(weka.attributeSelection.ASEvaluation)"><!-- --></A><H3>setEvaluator</H3><PRE>public void <B>setEvaluator</B>(<A HREF="../../weka/attributeSelection/ASEvaluation.html" title="class in weka.attributeSelection">ASEvaluation</A> evaluator)</PRE><DL><DD>set the attribute/subset evaluator<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>evaluator</CODE> - the evaluator to use</DL></DD></DL><HR><A NAME="setSearch(weka.attributeSelection.ASSearch)"><!-- --></A><H3>setSearch</H3><PRE>public void <B>setSearch</B>(<A HREF="../../weka/attributeSelection/ASSearch.html" title="class in weka.attributeSelection">ASSearch</A> search)</PRE><DL><DD>set the search method<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>search</CODE> - the search method to use</DL></DD></DL><HR><A NAME="setFolds(int)"><!-- --></A><H3>setFolds</H3><PRE>public void <B>setFolds</B>(int folds)</PRE><DL><DD>set the number of folds for cross validation<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>folds</CODE> - the number of folds</DL></DD></DL><HR><A NAME="setRanking(boolean)"><!-- --></A><H3>setRanking</H3><PRE>public void <B>setRanking</B>(boolean r)</PRE><DL><DD>produce a ranking (if possible with the set search and evaluator)<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - true if a ranking is to be produced</DL></DD></DL><HR><A NAME="setXval(boolean)"><!-- --></A><H3>setXval</H3><PRE>public void <B>setXval</B>(boolean x)</PRE><DL><DD>do a cross validation<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - true if a cross validation is to be performed</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 seed for use in cross validation<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the seed</DL></DD></DL><HR><A NAME="toResultsString()"><!-- --></A><H3>toResultsString</H3><PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -