⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 attributeselection.html

📁 weka是机器学习和数据挖掘领域最有影响力的开源项目之一
💻 HTML
📖 第 1 页 / 共 3 页
字号:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/attributeSelection/AttributeSelection.html#selectedAttributes()">selectedAttributes</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;evaluator)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set the attribute/subset evaluator</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/attributeSelection/AttributeSelection.html#setFolds(int)">setFolds</A></B>(int&nbsp;folds)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/attributeSelection/AttributeSelection.html#setRanking(boolean)">setRanking</A></B>(boolean&nbsp;r)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;search)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set the search method</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/attributeSelection/AttributeSelection.html#setSeed(int)">setSeed</A></B>(int&nbsp;s)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/attributeSelection/AttributeSelection.html#setXval(boolean)">setXval</A></B>(boolean&nbsp;x)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;do a cross validation</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/attributeSelection/AttributeSelection.html#toResultsString()">toResultsString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get a description of the attribute selection</TD></TR></TABLE>&nbsp;<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>&nbsp;<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>&nbsp;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>&nbsp;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&nbsp;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&nbsp;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&nbsp;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&nbsp;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 + -