arffloader.arffreader.html

来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 518 行 · 第 1/2 页

HTML
518
字号
<A NAME="ArffLoader.ArffReader(java.io.Reader)"><!-- --></A><H3>ArffLoader.ArffReader</H3><PRE>public <B>ArffLoader.ArffReader</B>(java.io.Reader&nbsp;reader)                      throws java.io.IOException</PRE><DL><DD>Reads the data completely from the reader. The data can be accessed via the <code>getData()</code> method.<P><DL><DT><B>Parameters:</B><DD><CODE>reader</CODE> - the reader to use<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if something goes wrong<DT><B>See Also:</B><DD><A HREF="../../../weka/core/converters/ArffLoader.ArffReader.html#getData()"><CODE>getData()</CODE></A></DL></DL><HR><A NAME="ArffLoader.ArffReader(java.io.Reader, int)"><!-- --></A><H3>ArffLoader.ArffReader</H3><PRE>public <B>ArffLoader.ArffReader</B>(java.io.Reader&nbsp;reader,                             int&nbsp;capacity)                      throws java.io.IOException</PRE><DL><DD>Reads only the header and reserves the specified space for instances. Further instances can be read via <code>readInstance()</code>.<P><DL><DT><B>Parameters:</B><DD><CODE>reader</CODE> - the reader to use<DD><CODE>capacity</CODE> - the capacity of the new dataset<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if something goes wrong<DD><CODE>java.lang.IllegalArgumentException</CODE> - if capacity is negative<DT><B>See Also:</B><DD><A HREF="../../../weka/core/converters/ArffLoader.ArffReader.html#getStructure()"><CODE>getStructure()</CODE></A>, <A HREF="../../../weka/core/converters/ArffLoader.ArffReader.html#readInstance(weka.core.Instances)"><CODE>readInstance(Instances)</CODE></A></DL></DL><HR><A NAME="ArffLoader.ArffReader(java.io.Reader, weka.core.Instances, int)"><!-- --></A><H3>ArffLoader.ArffReader</H3><PRE>public <B>ArffLoader.ArffReader</B>(java.io.Reader&nbsp;reader,                             <A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;template,                             int&nbsp;lines)                      throws java.io.IOException</PRE><DL><DD>Reads the data without header according to the specified template. The data can be accessed via the <code>getData()</code> method.<P><DL><DT><B>Parameters:</B><DD><CODE>reader</CODE> - the reader to use<DD><CODE>template</CODE> - the template header<DD><CODE>lines</CODE> - the lines read so far<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if something goes wrong<DT><B>See Also:</B><DD><A HREF="../../../weka/core/converters/ArffLoader.ArffReader.html#getData()"><CODE>getData()</CODE></A></DL></DL><HR><A NAME="ArffLoader.ArffReader(java.io.Reader, weka.core.Instances, int, int)"><!-- --></A><H3>ArffLoader.ArffReader</H3><PRE>public <B>ArffLoader.ArffReader</B>(java.io.Reader&nbsp;reader,                             <A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;template,                             int&nbsp;lines,                             int&nbsp;capacity)                      throws java.io.IOException</PRE><DL><DD>Initializes the reader without reading the header according to the  specified template. The data must be read via the  <code>readInstance()</code> method.<P><DL><DT><B>Parameters:</B><DD><CODE>reader</CODE> - the reader to use<DD><CODE>template</CODE> - the template header<DD><CODE>lines</CODE> - the lines read so far<DD><CODE>capacity</CODE> - the capacity of the new dataset<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if something goes wrong<DT><B>See Also:</B><DD><A HREF="../../../weka/core/converters/ArffLoader.ArffReader.html#getData()"><CODE>getData()</CODE></A></DL></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="getLineNo()"><!-- --></A><H3>getLineNo</H3><PRE>public int <B>getLineNo</B>()</PRE><DL><DD>returns the current line number<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current line number</DL></DD></DL><HR><A NAME="readInstance(weka.core.Instances)"><!-- --></A><H3>readInstance</H3><PRE>public <A HREF="../../../weka/core/Instance.html" title="class in weka.core">Instance</A> <B>readInstance</B>(<A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;structure)                      throws java.io.IOException</PRE><DL><DD>Reads a single instance using the tokenizer and returns it.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>structure</CODE> - the dataset header information, will get updated                                 in case of string or relational attributes<DT><B>Returns:</B><DD>null if end of file has been reached<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if the information is not read  successfully</DL></DD></DL><HR><A NAME="readInstance(weka.core.Instances, boolean)"><!-- --></A><H3>readInstance</H3><PRE>public <A HREF="../../../weka/core/Instance.html" title="class in weka.core">Instance</A> <B>readInstance</B>(<A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;structure,                             boolean&nbsp;flag)                      throws java.io.IOException</PRE><DL><DD>Reads a single instance using the tokenizer and returns it.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>structure</CODE> - the dataset header information, will get updated                                 in case of string or relational attributes<DD><CODE>flag</CODE> - if method should test for carriage return after                                 each instance<DT><B>Returns:</B><DD>null if end of file has been reached<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if the information is not read  successfully</DL></DD></DL><HR><A NAME="getStructure()"><!-- --></A><H3>getStructure</H3><PRE>public <A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>getStructure</B>()</PRE><DL><DD>Returns the header format<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the header format</DL></DD></DL><HR><A NAME="getData()"><!-- --></A><H3>getData</H3><PRE>public <A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>getData</B>()</PRE><DL><DD>Returns the data that was read<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the data</DL></DD></DL><HR><A NAME="getRevision()"><!-- --></A><H3>getRevision</H3><PRE>public java.lang.String <B>getRevision</B>()</PRE><DL><DD>Returns the revision string.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/RevisionHandler.html#getRevision()">getRevision</A></CODE> in interface <CODE><A HREF="../../../weka/core/RevisionHandler.html" title="interface in weka.core">RevisionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the revision</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <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> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</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/converters/ArffLoader.html" title="class in weka.core.converters"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../weka/core/converters/ArffSaver.html" title="class in weka.core.converters"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?weka/core/converters/ArffLoader.ArffReader.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ArffLoader.ArffReader.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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