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

📄 abstractloader.html

📁 weka是机器学习和数据挖掘领域最有影响力的开源项目之一
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the File<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - always</DL></DD></DL><HR><A NAME="reset()"><!-- --></A><H3>reset</H3><PRE>public void <B>reset</B>()           throws java.lang.Exception</PRE><DL><DD>Default implementation sets retrieval mode to NONE<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/converters/Loader.html#reset()">reset</A></CODE> in interface <CODE><A HREF="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>never.</CODE><DD><CODE>java.lang.Exception</CODE> - if Loader can't be reset for some reason.</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>Default implementation throws an IOException.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/converters/Loader.html#setSource(java.io.InputStream)">setSource</A></CODE> in interface <CODE><A HREF="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>input</CODE> - the input stream<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - always</DL></DD></DL><HR><A NAME="getStructure()"><!-- --></A><H3>getStructure</H3><PRE>public abstract <A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>getStructure</B>()                                throws java.io.IOException</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../weka/core/converters/Loader.html#getStructure()">Loader</A></CODE></B></DD><DD>Determines and returns (if possible) the structure (internally the  header) of the data set as an empty set of instances.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/converters/Loader.html#getStructure()">getStructure</A></CODE> in interface <CODE><A HREF="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</A></CODE></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 abstract <A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>getDataSet</B>()                              throws java.io.IOException</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../weka/core/converters/Loader.html#getDataSet()">Loader</A></CODE></B></DD><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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/converters/Loader.html#getDataSet()">getDataSet</A></CODE> in interface <CODE><A HREF="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</A></CODE></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 abstract <A HREF="../../../weka/core/Instance.html" title="class in weka.core">Instance</A> <B>getNextInstance</B>()                                  throws java.io.IOException</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../weka/core/converters/Loader.html#getNextInstance()">Loader</A></CODE></B></DD><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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/converters/Loader.html#getNextInstance()">getNextInstance</A></CODE> in interface <CODE><A HREF="../../../weka/core/converters/Loader.html" title="interface in weka.core.converters">Loader</A></CODE></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=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/AbstractFileSaver.html" title="class in weka.core.converters"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../weka/core/converters/AbstractSaver.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/AbstractLoader.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="AbstractLoader.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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -