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

📄 filter.html

📁 < 数据挖掘--实用机器学习技术及java实现> 一书结合数据挖掘和机器学习的知识,作者陈述了自动挖掘模式的基础理论,并且以java语言实现了具有代表性的各类数据挖掘方法.例如:class
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<HR><A NAME="inputFormat(weka.core.Instances)"><!-- --></A><H3>inputFormat</H3><PRE>public boolean <B>inputFormat</B>(<A HREF="../../weka/core/Instances.html">Instances</A>&nbsp;instanceInfo)                    throws java.lang.Exception</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>use <code>setInputFormat(Instances)</code> instead.</I><P><DD><DL></DL></DD></DL><HR><A NAME="setInputFormat(weka.core.Instances)"><!-- --></A><H3>setInputFormat</H3><PRE>public boolean <B>setInputFormat</B>(<A HREF="../../weka/core/Instances.html">Instances</A>&nbsp;instanceInfo)                       throws java.lang.Exception</PRE><DL><DD>Sets the format of the input instances. If the filter is able to determine the output format before seeing any input instances, it does so here. This default implementation clears the output format and output queue, and the new batch flag is set. Overriders should call <code>super.setInputFormat(Instances)</code><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instanceInfo</CODE> - an Instances object containing the input instance structure (any instances contained in the object are ignored - only the structure is required).<DT><B>Returns:</B><DD>true if the outputFormat may be collected immediately<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the inputFormat can't be set successfully</DL></DD></DL><HR><A NAME="outputFormat()"><!-- --></A><H3>outputFormat</H3><PRE>public final <A HREF="../../weka/core/Instances.html">Instances</A> <B>outputFormat</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>use <code>getOutputFormat()</code> instead.</I><P><DD><DL></DL></DD></DL><HR><A NAME="getOutputFormat()"><!-- --></A><H3>getOutputFormat</H3><PRE>public final <A HREF="../../weka/core/Instances.html">Instances</A> <B>getOutputFormat</B>()</PRE><DL><DD>Gets the format of the output instances. This should only be called after input() or batchFinished() has returned true. The relation name of the output instances should be changed to reflect the action of the filter (eg: add the filter name and options).<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an Instances object containing the output instance structure only.<DT><B>Throws:</B><DD><CODE>NullPointerException</CODE> - if no input structure has been defined (or the output format hasn't been determined yet)</DL></DD></DL><HR><A NAME="input(weka.core.Instance)"><!-- --></A><H3>input</H3><PRE>public boolean <B>input</B>(<A HREF="../../weka/core/Instance.html">Instance</A>&nbsp;instance)              throws java.lang.Exception</PRE><DL><DD>Input an instance for filtering. Ordinarily the instance is processed and made available for output immediately. Some filters require all instances be read before producing output, in which case output instances should be collected after calling batchFinished(). If the input marks the start of a new batch, the output queue is cleared. This default implementation assumes all instance conversion will occur when batchFinished() is called.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the input instance<DT><B>Returns:</B><DD>true if the filtered instance may now be collected with output().<DT><B>Throws:</B><DD><CODE>NullPointerException</CODE> - if the input format has not been defined.<DD><CODE>java.lang.Exception</CODE> - if the input instance was not of the correct  format or if there was a problem with the filtering.</DL></DD></DL><HR><A NAME="batchFinished()"><!-- --></A><H3>batchFinished</H3><PRE>public boolean <B>batchFinished</B>()                      throws java.lang.Exception</PRE><DL><DD>Signify that this batch of input to the filter is finished. If the filter requires all instances prior to filtering, output() may now be called to retrieve the filtered instances. Any subsequent instances filtered should be filtered based on setting obtained from the first batch (unless the inputFormat has been re-assigned or new options have been set). This default implementation assumes all instance processing occurs during inputFormat() and input().<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if there are instances pending output<DT><B>Throws:</B><DD><CODE>NullPointerException</CODE> - if no input structure has been defined,<DD><CODE>java.lang.Exception</CODE> - if there was a problem finishing the batch.</DL></DD></DL><HR><A NAME="output()"><!-- --></A><H3>output</H3><PRE>public <A HREF="../../weka/core/Instance.html">Instance</A> <B>output</B>()</PRE><DL><DD>Output an instance after filtering and remove from the output queue.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the instance that has most recently been filtered (or null if the queue is empty).<DT><B>Throws:</B><DD><CODE>NullPointerException</CODE> - if no output structure has been defined</DL></DD></DL><HR><A NAME="outputPeek()"><!-- --></A><H3>outputPeek</H3><PRE>public <A HREF="../../weka/core/Instance.html">Instance</A> <B>outputPeek</B>()</PRE><DL><DD>Output an instance after filtering but do not remove from the output queue.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the instance that has most recently been filtered (or null if the queue is empty).<DT><B>Throws:</B><DD><CODE>NullPointerException</CODE> - if no input structure has been defined</DL></DD></DL><HR><A NAME="numPendingOutput()"><!-- --></A><H3>numPendingOutput</H3><PRE>public int <B>numPendingOutput</B>()</PRE><DL><DD>Returns the number of instances pending output<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of instances  pending output<DT><B>Throws:</B><DD><CODE>NullPointerException</CODE> - if no input structure has been defined</DL></DD></DL><HR><A NAME="isOutputFormatDefined()"><!-- --></A><H3>isOutputFormatDefined</H3><PRE>public boolean <B>isOutputFormatDefined</B>()</PRE><DL><DD>Returns whether the output format is ready to be collected<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the output format is set</DL></DD></DL><HR><A NAME="getStringIndices(weka.core.Instances)"><!-- --></A><H3>getStringIndices</H3><PRE>protected int[] <B>getStringIndices</B>(<A HREF="../../weka/core/Instances.html">Instances</A>&nbsp;insts)</PRE><DL><DD>Gets an array containing the indices of all string attributes.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>insts</CODE> - the Instances to scan for string attributes.<DT><B>Returns:</B><DD>an array containing the indices of string attributes in the input structure. Will be zero-length if there are no string attributes</DL></DD></DL><HR><A NAME="useFilter(weka.core.Instances, weka.filters.Filter)"><!-- --></A><H3>useFilter</H3><PRE>public static <A HREF="../../weka/core/Instances.html">Instances</A> <B>useFilter</B>(<A HREF="../../weka/core/Instances.html">Instances</A>&nbsp;data,                                  <A HREF="../../weka/filters/Filter.html">Filter</A>&nbsp;filter)                           throws java.lang.Exception</PRE><DL><DD>Filters an entire set of instances through a filter and returns the new set.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the data to be filtered<DD><CODE>filter</CODE> - the filter to be used<DT><B>Returns:</B><DD>the filtered set of data<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the filter can't be used successfully</DL></DD></DL><HR><A NAME="filterFile(weka.filters.Filter, java.lang.String[])"><!-- --></A><H3>filterFile</H3><PRE>public static void <B>filterFile</B>(<A HREF="../../weka/filters/Filter.html">Filter</A>&nbsp;filter,                              java.lang.String[]&nbsp;options)                       throws java.lang.Exception</PRE><DL><DD>Method for testing filters.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>argv</CODE> - should contain the following arguments: <br> -i input_file <br> -o output_file <br> -c class_index <br> or -h for help on options<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong or the user requests help on command options</DL></DD></DL><HR><A NAME="batchFilterFile(weka.filters.Filter, java.lang.String[])"><!-- --></A><H3>batchFilterFile</H3><PRE>public static void <B>batchFilterFile</B>(<A HREF="../../weka/filters/Filter.html">Filter</A>&nbsp;filter,                                   java.lang.String[]&nbsp;options)                            throws java.lang.Exception</PRE><DL><DD>Method for testing filters ability to process multiple batches.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>argv</CODE> - should contain the following arguments:<br> -i (first) input file <br> -o (first) output file <br> -r (second) input file <br> -s (second) output file <br> -c class_index <br> or -h for help on options<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong or the user requests help on command options</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;args)</PRE><DL><DD>Main method for testing this class.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>argv</CODE> - should contain arguments to the filter: use -h for help</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/filters/EmptyAttributeFilter.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../weka/filters/FirstOrderFilter.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="Filter.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 + -