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

📄 loader.html

📁 这是一个由java实现的数据挖掘
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Wed Sep 04 10:31:50 CDT 2002 --><TITLE>: Interface  Loader</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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;PREV CLASS&nbsp;&nbsp;NEXT CLASS</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></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&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><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">weka.core.converters</FONT><BR>Interface  Loader</H2><DL><DT><B>All Superinterfaces:</B> <DD>java.io.Serializable</DD></DL><DL><DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../weka/core/converters/AbstractLoader.html">AbstractLoader</A></DD></DL><HR><DL><DT>public interface <B>Loader</B><DT>extends java.io.Serializable</DL><P>Interface to something that can load Instances from an input source in some format.<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../weka/core/Instances.html">Instances</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/converters/Loader.html#getDataSet()">getDataSet</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the full data set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../weka/core/Instance.html">Instance</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/converters/Loader.html#getNextInstance()">getNextInstance</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read the data set incrementally---get the next instance in the data  set or returns null if there are no more instances to get.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../weka/core/Instances.html">Instances</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/core/converters/Loader.html#getStructure()">getStructure</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines and returns (if possible) the structure (internally the  header) of the data set as an empty set of instances.</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="../../../weka/core/converters/Loader.html#setSource(java.io.File)">setSource</A></B>(java.io.File&nbsp;file)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets the Loader object and sets the source of the data set to be  the supplied File object.</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="../../../weka/core/converters/Loader.html#setSource(java.io.InputStream)">setSource</A></B>(java.io.InputStream&nbsp;input)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets the Loader object and sets the source of the data set to be  the supplied InputStream.</TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setSource(java.io.File)"><!-- --></A><H3>setSource</H3><PRE>public void <B>setSource</B>(java.io.File&nbsp;file)               throws java.io.IOException</PRE><DL><DD>Resets the Loader object and sets the source of the data set to be  the supplied File object.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the File<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an error occurs support loading from a File. <pre><jml>    public_normal_behavior      requires: file != null                && (* file exists *);      modifiable: model_sourceSupplied, model_structureDetermined;      ensures: model_sourceSupplied == true                && model_structureDetermined == false;  also    public_exceptional_behavior      requires: file == null                || (* file does not exist *);    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.<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">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.<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">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.<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">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.<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 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;PREV CLASS&nbsp;&nbsp;NEXT CLASS</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></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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