exampletable.html

来自「数据挖掘方面最新软件」· HTML 代码 · 共 723 行 · 第 1/3 页

HTML
723
字号
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../com/rapidminer/example/table/DataRowReader.html" title="interface in com.rapidminer.example.table">DataRowReader</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/example/table/ExampleTable.html#getDataRowReader()">getDataRowReader</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an Iterator for example data given as <code>DataRow</code> objects.</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="../../../../com/rapidminer/example/table/ExampleTable.html#getNumberOfAttributes()">getNumberOfAttributes</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number 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="../../../../com/rapidminer/example/table/ExampleTable.html#removeAttribute(com.rapidminer.example.Attribute)">removeAttribute</A></B>(<A HREF="../../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>&nbsp;attribute)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to calling <code>removeAttribute(attribute.getTableIndex())</code>.</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="../../../../com/rapidminer/example/table/ExampleTable.html#removeAttribute(int)">removeAttribute</A></B>(int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the attribute with the given index to null.</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="../../../../com/rapidminer/example/table/ExampleTable.html#size()">size</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of examples.</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="../../../../com/rapidminer/example/table/ExampleTable.html#toDataString()">toDataString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dumps the complete data as string.</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="../../../../com/rapidminer/example/table/ExampleTable.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string representation of this example table.</TD></TR></TABLE>&nbsp;<P><!-- ============ 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="size()"><!-- --></A><H3>size</H3><PRE>int <B>size</B>()</PRE><DL><DD>Returns the number of examples.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getDataRowReader()"><!-- --></A><H3>getDataRowReader</H3><PRE><A HREF="../../../../com/rapidminer/example/table/DataRowReader.html" title="interface in com.rapidminer.example.table">DataRowReader</A> <B>getDataRowReader</B>()</PRE><DL><DD>Returns an Iterator for example data given as <code>DataRow</code> objects. This should be used in all cases where iteration is desired. Since <A HREF="../../../../com/rapidminer/example/table/ExampleTable.html#getDataRow(int)"><CODE>getDataRow(int)</CODE></A> does not ensure to work in an efficient way the usage of this method is preferred (instead using for-loops).<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getDataRow(int)"><!-- --></A><H3>getDataRow</H3><PRE><A HREF="../../../../com/rapidminer/example/table/DataRow.html" title="class in com.rapidminer.example.table">DataRow</A> <B>getDataRow</B>(int&nbsp;index)</PRE><DL><DD>Returns the i-th data row. Calling methods cannot rely on the efficiency of this method. Memory based example tables should return the data row in O(1).<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAttributes()"><!-- --></A><H3>getAttributes</H3><PRE><A HREF="../../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>[] <B>getAttributes</B>()</PRE><DL><DD>Returns a new array containing all <A HREF="../../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example"><CODE>Attribute</CODE></A>s.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAttribute(int)"><!-- --></A><H3>getAttribute</H3><PRE><A HREF="../../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A> <B>getAttribute</B>(int&nbsp;i)</PRE><DL><DD>Returns the attribute of the column number <i>i</i>. Attention: This value may return null if the column was marked unused.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="findAttribute(java.lang.String)"><!-- --></A><H3>findAttribute</H3><PRE><A HREF="../../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A> <B>findAttribute</B>(java.lang.String&nbsp;name)                        throws <A HREF="../../../../com/rapidminer/operator/OperatorException.html" title="class in com.rapidminer.operator">OperatorException</A></PRE><DL><DD>Returns the attribute with the given name.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../com/rapidminer/operator/OperatorException.html" title="class in com.rapidminer.operator">OperatorException</A></CODE></DL></DD></DL><HR><A NAME="addAttributes(java.util.Collection)"><!-- --></A><H3>addAttributes</H3><PRE>void <B>addAttributes</B>(java.util.Collection&lt;<A HREF="../../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>&gt;&nbsp;newAttributes)</PRE><DL><DD>Adds all <A HREF="../../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example"><CODE>Attribute</CODE></A>s in <code>newAttributes</code> to the end of the list of attributes, creating new data columns if necessary.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="addAttribute(com.rapidminer.example.Attribute)"><!-- --></A><H3>addAttribute</H3><PRE>int <B>addAttribute</B>(<A HREF="../../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>&nbsp;a)</PRE><DL><DD>Adds the attribute to the list of attributes assigning it a free column index.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="removeAttribute(com.rapidminer.example.Attribute)"><!-- --></A><H3>removeAttribute</H3><PRE>void <B>removeAttribute</B>(<A HREF="../../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>&nbsp;attribute)</PRE><DL><DD>Equivalent to calling <code>removeAttribute(attribute.getTableIndex())</code>.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="removeAttribute(int)"><!-- --></A><H3>removeAttribute</H3><PRE>void <B>removeAttribute</B>(int&nbsp;index)</PRE><DL><DD>Sets the attribute with the given index to null. Afterwards, this column can be reused. Callers must make sure, that no other example set contains a reference to this column. Otherwise its data will be messed up. Ususally this is only possible if an operator generates intermediate attributes, like a validation chain or a feature generator. If the attribute already was removed, this method returns silently.<P><DD><DL></DL>

⌨️ 快捷键说明

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