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

📄 instance.html

📁 < 数据挖掘--实用机器学习技术及java实现> 一书结合数据挖掘和机器学习的知识,作者陈述了自动挖掘模式的基础理论,并且以java语言实现了具有代表性的各类数据挖掘方法.例如:class
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DD><DL><DT><B>Parameters:</B><DD><CODE>instances</CODE> - the reference to the dataset</DL></DD></DL><HR><A NAME="setMissing(int)"><!-- --></A><H3>setMissing</H3><PRE>public final void <B>setMissing</B>(int&nbsp;attIndex)</PRE><DL><DD>Sets a specific value to be "missing". Performs a deep copy of the vector of attribute values before the value is set to be missing.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attIndex</CODE> - the attribute's index</DL></DD></DL><HR><A NAME="setMissing(weka.core.Attribute)"><!-- --></A><H3>setMissing</H3><PRE>public final void <B>setMissing</B>(<A HREF="../../weka/core/Attribute.html">Attribute</A>&nbsp;att)</PRE><DL><DD>Sets a specific value to be "missing". Performs a deep copy of the vector of attribute values before the value is set to be missing. The given attribute has to belong to a dataset.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>att</CODE> - the attribute</DL></DD></DL><HR><A NAME="setValue(int, double)"><!-- --></A><H3>setValue</H3><PRE>public void <B>setValue</B>(int&nbsp;attIndex,                     double&nbsp;value)</PRE><DL><DD>Sets a specific value in the instance to the given value  (internal floating-point format). Performs a deep copy of the vector of attribute values before the value is set.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attIndex</CODE> - the attribute's index<DD><CODE>value</CODE> - the new attribute value (If the corresponding attribute is nominal (or a string) then this is the new value's index as a double).</DL></DD></DL><HR><A NAME="setValueSparse(int, double)"><!-- --></A><H3>setValueSparse</H3><PRE>public void <B>setValueSparse</B>(int&nbsp;indexOfIndex,                           double&nbsp;value)</PRE><DL><DD>Sets a specific value in the instance to the given value  (internal floating-point format). Performs a deep copy of the vector of attribute values before the value is set. Does exactly the same thing as setValue().<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>indexOfIndex</CODE> - the index of the attribute's index<DD><CODE>value</CODE> - the new attribute value (If the corresponding attribute is nominal (or a string) then this is the new value's index as a double).</DL></DD></DL><HR><A NAME="setValue(int, java.lang.String)"><!-- --></A><H3>setValue</H3><PRE>public final void <B>setValue</B>(int&nbsp;attIndex,                           java.lang.String&nbsp;value)</PRE><DL><DD>Sets a value of a nominal or string attribute to the given value. Performs a deep copy of the vector of attribute values before the value is set.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attIndex</CODE> - the attribute's index<DD><CODE>value</CODE> - the new attribute value (If the attribute is a string attribute and the value can't be found, the value is added to the attribute).<DT><B>Throws:</B><DD><CODE><A HREF="../../weka/core/UnassignedDatasetException.html">UnassignedDatasetException</A></CODE> - if the dataset is not set<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the selected attribute is not nominal or a string, or the supplied value couldn't  be found for a nominal attribute</DL></DD></DL><HR><A NAME="setValue(weka.core.Attribute, double)"><!-- --></A><H3>setValue</H3><PRE>public final void <B>setValue</B>(<A HREF="../../weka/core/Attribute.html">Attribute</A>&nbsp;att,                           double&nbsp;value)</PRE><DL><DD>Sets a specific value in the instance to the given value (internal floating-point format). Performs a deep copy of the vector of attribute values before the value is set, so if you are planning on calling setValue many times it may be faster to create a new instance using toDoubleArray.  The given attribute has to belong to a dataset.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>att</CODE> - the attribute<DD><CODE>value</CODE> - the new attribute value (If the corresponding attribute is nominal (or a string) then this is the new value's index as a double).</DL></DD></DL><HR><A NAME="setValue(weka.core.Attribute, java.lang.String)"><!-- --></A><H3>setValue</H3><PRE>public final void <B>setValue</B>(<A HREF="../../weka/core/Attribute.html">Attribute</A>&nbsp;att,                           java.lang.String&nbsp;value)</PRE><DL><DD>Sets a value of an nominal or string attribute to the given value. Performs a deep copy of the vector of attribute values before the value is set, so if you are planning on calling setValue many times it may be faster to create a new instance using toDoubleArray. The given attribute has to belong to a dataset.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>att</CODE> - the attribute<DD><CODE>value</CODE> - the new attribute value (If the attribute is a string attribute and the value can't be found, the value is added to the attribute).<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the the attribute is not nominal or a string, or the value couldn't be found for a nominal attribute</DL></DD></DL><HR><A NAME="setWeight(double)"><!-- --></A><H3>setWeight</H3><PRE>public final void <B>setWeight</B>(double&nbsp;weight)</PRE><DL><DD>Sets the weight of an instance.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>weight</CODE> - the weight</DL></DD></DL><HR><A NAME="stringValue(int)"><!-- --></A><H3>stringValue</H3><PRE>public final java.lang.String <B>stringValue</B>(int&nbsp;attIndex)</PRE><DL><DD>Returns the value of a nominal (or string) attribute for the instance.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attIndex</CODE> - the attribute's index<DT><B>Returns:</B><DD>the value as a string<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the attribute is not a nominal (or string) attribute.<DD><CODE><A HREF="../../weka/core/UnassignedDatasetException.html">UnassignedDatasetException</A></CODE> - if the instance doesn't belong to a dataset.</DL></DD></DL><HR><A NAME="stringValue(weka.core.Attribute)"><!-- --></A><H3>stringValue</H3><PRE>public final java.lang.String <B>stringValue</B>(<A HREF="../../weka/core/Attribute.html">Attribute</A>&nbsp;att)</PRE><DL><DD>Returns the value of a nominal (or string) attribute for the instance.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>att</CODE> - the attribute<DT><B>Returns:</B><DD>the value as a string<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the attribute is not a nominal (or string) attribute.<DD><CODE><A HREF="../../weka/core/UnassignedDatasetException.html">UnassignedDatasetException</A></CODE> - if the instance doesn't belong to a dataset.</DL></DD></DL><HR><A NAME="toDoubleArray()"><!-- --></A><H3>toDoubleArray</H3><PRE>public double[] <B>toDoubleArray</B>()</PRE><DL><DD>Returns the values of each attribute as an array of doubles.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array containing all the instance attribute values</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Returns the description of one instance. If the instance doesn't have access to a dataset, it returns the internal floating-point values. Quotes string values that contain whitespace characters.<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>the instance's description as a string</DL></DD></DL><HR><A NAME="toString(int)"><!-- --></A><H3>toString</H3><PRE>public final java.lang.String <B>toString</B>(int&nbsp;attIndex)</PRE><DL><DD>Returns the description of one value of the instance as a  string. If the instance doesn't have access to a dataset, it  returns the internal floating-point value. Quotes string values that contain whitespace characters, or if they are a question mark.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attIndex</CODE> - the attribute's index<DT><B>Returns:</B><DD>the value's description as a string</DL></DD></DL><HR><A NAME="toString(weka.core.Attribute)"><!-- --></A><H3>toString</H3><PRE>public final java.lang.String <B>toString</B>(<A HREF="../../weka/core/Attribute.html">Attribute</A>&nbsp;att)</PRE><DL><DD>Returns the description of one value of the instance as a  string. If the instance doesn't have access to a dataset it  returns the internal floating-point value. Quotes string values that contain whitespace characters, or if they are a question mark. The given attribute has to belong to a dataset.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>att</CODE> - the attribute<DT><B>Returns:</B><DD>the value's description as a string</DL></DD></DL><HR><A NAME="value(int)"><!-- --></A><H3>value</H3><PRE>public double <B>value</B>(int&nbsp;attIndex)</PRE><DL><DD>Returns an instance's attribute value in internal format.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attIndex</CODE> - the attribute's index<DT><B>Returns:</B><DD>the specified value as a double (If the corresponding attribute is nominal (or a string) then it returns the value's index as a  double).</DL></DD></DL><HR><A NAME="valueSparse(int)"><!-- --></A><H3>valueSparse</H3><PRE>public double <B>valueSparse</B>(int&nbsp;indexOfIndex)</PRE><DL><DD>Returns an instance's attribute value in internal format. Does exactly the same thing as value() if applied to an Instance.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>indexOfIndex</CODE> - the index of the attribute's index<DT><B>Returns:</B><DD>the specified value as a double (If the corresponding attribute is nominal (or a string) then it returns the value's index as a  double).</DL></DD></DL><HR><A NAME="value(weka.core.Attribute)"><!-- --></A><H3>value</H3><PRE>public double <B>value</B>(<A HREF="../../weka/core/Attribute.html">Attribute</A>&nbsp;att)</PRE><DL><DD>Returns an instance's attribute value in internal format. The given attribute has to belong to a dataset.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>att</CODE> - the attribute<DT><B>Returns:</B><DD>the specified value as a double (If the corresponding attribute is nominal (or a string) then it returns the value's index as a double).</DL></DD></DL><HR><A NAME="weight()"><!-- --></A><H3>weight</H3><PRE>public final double <B>weight</B>()</PRE><DL><DD>Returns the instance's weight.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the instance's weight as a double</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[]&nbsp;options)</PRE><DL><DD>Main method for testing this class.<DD><DL></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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../weka/core/FastVector.FastVectorEnumeration.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../weka/core/Instances.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>  &nbsp;&nbsp;<A HREF="Instance.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -