example.html

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

HTML
934
字号
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/Example.html#setLabel(double)">setLabel</A></B>(double&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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/Example.html#setPredictedLabel(double)">setPredictedLabel</A></B>(double&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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/Example.html#setValue(com.rapidminer.example.Attribute, double)">setValue</A></B>(<A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>&nbsp;a,         double&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the value of attribute a.</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/Example.html#setValue(com.rapidminer.example.Attribute, java.lang.String)">setValue</A></B>(<A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>&nbsp;a,         java.lang.String&nbsp;str)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the value of attribute a which must be a nominal attribute.</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/Example.html#setWeight(double)">setWeight</A></B>(double&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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/Example.html#toDenseString(int, boolean)">toDenseString</A></B>(int&nbsp;fractionDigits,              boolean&nbsp;quoteWhitespace)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns a dense string representation of the example.</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/Example.html#toSparseString(int, int, boolean)">toSparseString</A></B>(int&nbsp;format,               int&nbsp;fractionDigits,               boolean&nbsp;quoteWhitespace)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns regular and some special attributes (label, id, and example weight) in sparse format.</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/Example.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a dense string representation with all possible fraction digits.</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>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="SEPARATOR"><!-- --></A><H3>SEPARATOR</H3><PRE>public static final java.lang.String <B>SEPARATOR</B></PRE><DL><DD>Separator used in the getAttributesAsString() method (tab).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.rapidminer.example.Example.SEPARATOR">Constant Field Values</A></DL></DL><HR><A NAME="SPARSE_SEPARATOR"><!-- --></A><H3>SPARSE_SEPARATOR</H3><PRE>public static final java.lang.String <B>SPARSE_SEPARATOR</B></PRE><DL><DD>Separates indices from values in sparse format (colon).<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.rapidminer.example.Example.SPARSE_SEPARATOR">Constant Field Values</A></DL></DL><!-- ========= 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="Example(com.rapidminer.example.table.DataRow, com.rapidminer.example.ExampleSet)"><!-- --></A><H3>Example</H3><PRE>public <B>Example</B>(<A HREF="../../../com/rapidminer/example/table/DataRow.html" title="class in com.rapidminer.example.table">DataRow</A>&nbsp;data,               <A HREF="../../../com/rapidminer/example/ExampleSet.html" title="interface in com.rapidminer.example">ExampleSet</A>&nbsp;parentExampleSet)</PRE><DL><DD>Creates a new Example that uses the data stored in a DataRow. The attributes  correspond to the regular and special attributes.<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="getDataRow()"><!-- --></A><H3>getDataRow</H3><PRE>public <A HREF="../../../com/rapidminer/example/table/DataRow.html" title="class in com.rapidminer.example.table">DataRow</A> <B>getDataRow</B>()</PRE><DL><DD>Returns the data row which backs up the example in the example table.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAttributes()"><!-- --></A><H3>getAttributes</H3><PRE>public <A HREF="../../../com/rapidminer/example/Attributes.html" title="interface in com.rapidminer.example">Attributes</A> <B>getAttributes</B>()</PRE><DL><DD>Delivers the attributes.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getValue(com.rapidminer.example.Attribute)"><!-- --></A><H3>getValue</H3><PRE>public double <B>getValue</B>(<A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>&nbsp;a)</PRE><DL><DD>Returns the value of attribute a. In the case of nominal attributes, the delivered double value corresponds to an internal index<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getNominalValue(com.rapidminer.example.Attribute)"><!-- --></A><H3>getNominalValue</H3><PRE>public java.lang.String <B>getNominalValue</B>(<A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>&nbsp;a)</PRE><DL><DD>Returns the nominal value for the given attribute.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../com/rapidminer/example/AttributeTypeException.html" title="class in com.rapidminer.example">AttributeTypeException</A></CODE> - if the given attribute has the wrong value type</DL></DD></DL><HR><A NAME="getNumericalValue(com.rapidminer.example.Attribute)"><!-- --></A><H3>getNumericalValue</H3><PRE>public double <B>getNumericalValue</B>(<A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>&nbsp;a)</PRE><DL><DD>Returns the numerical value for the given attribute.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../com/rapidminer/example/AttributeTypeException.html" title="class in com.rapidminer.example">AttributeTypeException</A></CODE> - if the given attribute has the wrong value type</DL></DD></DL><HR><A NAME="getDateValue(com.rapidminer.example.Attribute)"><!-- --></A><H3>getDateValue</H3><PRE>public java.util.Date <B>getDateValue</B>(<A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>&nbsp;a)</PRE><DL><DD>Returns the date value for the given attribute.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../com/rapidminer/example/AttributeTypeException.html" title="class in com.rapidminer.example">AttributeTypeException</A></CODE> - if the given attribute has the wrong value type</DL></DD></DL><HR><A NAME="setValue(com.rapidminer.example.Attribute, double)"><!-- --></A><H3>setValue</H3><PRE>public void <B>setValue</B>(<A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>&nbsp;a,                     double&nbsp;value)</PRE><DL><DD>Sets the value of attribute a. The attribute a need not necessarily be part of the example set the example is taken from, although this is no good style.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setValue(com.rapidminer.example.Attribute, java.lang.String)"><!-- --></A><H3>setValue</H3><PRE>public void <B>setValue</B>(<A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>&nbsp;a,                     java.lang.String&nbsp;str)</PRE><DL><DD>Sets the value of attribute a which must be a nominal attribute. The attribute a need not necessarily be part of the example set the example is taken from, although this is no good style.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="equalValue(com.rapidminer.example.Attribute, com.rapidminer.example.Attribute)"><!-- --></A><H3>equalValue</H3><PRE>public boolean <B>equalValue</B>(<A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>&nbsp;first,                          <A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>&nbsp;second)</PRE><DL><DD>Returns true if both nominal values are the same (if both attributes  are nominal) or if both real values are the same (if both attributes  are real values) or false otherwise.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getLabel()"><!-- --></A><H3>getLabel</H3><PRE>public double <B>getLabel</B>()</PRE><DL><DD><DL>

⌨️ 快捷键说明

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