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

📄 loader.html

📁 由java开发的软件包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
    signals: (IOException); </jml></pre></DL></DD></DL><HR><A NAME="setSource(java.io.InputStream)"><!-- --></A><H3>setSource</H3><PRE>public void <B>setSource</B>(java.io.InputStream&nbsp;input)               throws java.io.IOException</PRE><DL><DD>Resets the Loader object and sets the source of the data set to be  the supplied InputStream.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>input</CODE> - the source InputStream<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if this Loader doesn't support loading from a File.</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>()                       throws java.io.IOException</PRE><DL><DD>Determines and returns (if possible) the structure (internally the  header) of the data set as an empty set of instances.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the structure of the data set as an empty set of Instances<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there is no source or parsing fails <pre><jml>    public_normal_behavior      requires: model_sourceSupplied == true                && model_structureDetermined == false                && (* successful parse *);      modifiable: model_structureDetermined;      ensures: \result != null               && \result.numInstances() == 0               && model_structureDetermined == true;  also    public_exceptional_behavior      requires: model_sourceSupplied == false                || (* unsuccessful parse *);      signals: (IOException); </jml></pre></DL></DD></DL><HR><A NAME="getDataSet()"><!-- --></A><H3>getDataSet</H3><PRE>public <A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>getDataSet</B>()                     throws java.io.IOException</PRE><DL><DD>Return the full data set. If the structure hasn't yet been determined by a call to getStructure then the method should do so before processing the rest of the data set.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the full data set as an Instances object<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there is an error during parsing or if  getNextInstance has been called on this source (either incremental or batch loading can be used, not both). <pre><jml>    public_normal_behavior      requires: model_sourceSupplied == true                && (* successful parse *);      modifiable: model_structureDetermined;      ensures: \result != null               && \result.numInstances() >= 0               && model_structureDetermined == true;  also    public_exceptional_behavior      requires: model_sourceSupplied == false                || (* unsuccessful parse *);      signals: (IOException); </jml></pre></DL></DD></DL><HR><A NAME="getNextInstance()"><!-- --></A><H3>getNextInstance</H3><PRE>public <A HREF="../../../weka/core/Instance.html" title="class in weka.core">Instance</A> <B>getNextInstance</B>()                         throws java.io.IOException</PRE><DL><DD>Read the data set incrementally---get the next instance in the data  set or returns null if there are no more instances to get. If the structure hasn't yet been  determined by a call to getStructure then method should do so before returning the next instance in the data set. If it is not possible to read the data set incrementally (ie. in cases where the data set structure cannot be fully established before all instances have been seen) then an exception should be thrown.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the next instance in the data set as an Instance object or null if there are no more instances to be read<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if there is an error during parsing or if getDataSet has been called on this source (either incremental or batch loading can be used, not both). <pre><jml>    public_normal_behavior    {|       requires: model_sourceSupplied == true                 && (* successful parse *);       modifiable: model_structureDetermined;       ensures: model_structureDetermined == true                && \result != null;     also       requires: model_sourceSupplied == true                 && (* no further input *);       modifiable: model_structureDetermined;       ensures: model_structureDetermined == true                && \result == null;    |}  also    public_exceptional_behavior    {|       requires: model_sourceSupplied == false                 || (* unsuccessful parse *);       signals: (IOException);     also       requires: (* unable to process data set incrementally *);       signals: (IOException);    |} </jml></pre></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=3 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="../../../../Tutorial.pdf"><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/index.html"><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/IncrementalConverter.html" title="interface in weka.core.converters"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../weka/core/converters/Saver.html" title="interface in weka.core.converters"><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="Loader.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;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -