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

📄 filter.html

📁 < 数据挖掘--实用机器学习技术及java实现> 一书结合数据挖掘和机器学习的知识,作者陈述了自动挖掘模式的基础理论,并且以java语言实现了具有代表性的各类数据挖掘方法.例如:class
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD><CODE><B><A HREF="../../weka/filters/Filter.html#outputFormat()">outputFormat</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <code>getOutputFormat()</code> instead.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../weka/core/Instances.html">Instances</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/filters/Filter.html#outputFormatPeek()">outputFormatPeek</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a reference to the current output format without copying it.</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/filters/Filter.html#outputPeek()">outputPeek</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Output an instance after filtering but do not remove from the output queue.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/filters/Filter.html#push(weka.core.Instance)">push</A></B>(<A HREF="../../weka/core/Instance.html">Instance</A>&nbsp;instance)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds an output instance to the queue.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/filters/Filter.html#resetQueue()">resetQueue</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears the output queue.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/filters/Filter.html#setInputFormat(weka.core.Instances)">setInputFormat</A></B>(<A HREF="../../weka/core/Instances.html">Instances</A>&nbsp;instanceInfo)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the format of the input instances.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/filters/Filter.html#setOutputFormat(weka.core.Instances)">setOutputFormat</A></B>(<A HREF="../../weka/core/Instances.html">Instances</A>&nbsp;outputFormat)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the format of output instances.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../weka/core/Instances.html">Instances</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/filters/Filter.html#useFilter(weka.core.Instances, weka.filters.Filter)">useFilter</A></B>(<A HREF="../../weka/core/Instances.html">Instances</A>&nbsp;data,          <A HREF="../../weka/filters/Filter.html">Filter</A>&nbsp;filter)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Filters an entire set of instances through a filter and returns the new set.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="m_NewBatch"><!-- --></A><H3>m_NewBatch</H3><PRE>protected boolean <B>m_NewBatch</B></PRE><DL><DD>Record whether the filter is at the start of a batch</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Filter()"><!-- --></A><H3>Filter</H3><PRE>public <B>Filter</B>()</PRE><DL></DL><!-- ============ 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="setOutputFormat(weka.core.Instances)"><!-- --></A><H3>setOutputFormat</H3><PRE>protected void <B>setOutputFormat</B>(<A HREF="../../weka/core/Instances.html">Instances</A>&nbsp;outputFormat)</PRE><DL><DD>Sets the format of output instances. The derived class should use this method once it has determined the outputformat. The  output queue is cleared.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>outputFormat</CODE> - the new output format</DL></DD></DL><HR><A NAME="getInputFormat()"><!-- --></A><H3>getInputFormat</H3><PRE>protected <A HREF="../../weka/core/Instances.html">Instances</A> <B>getInputFormat</B>()</PRE><DL><DD>Gets the currently set inputformat instances. This dataset may contain buffered instances.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the input Instances.</DL></DD></DL><HR><A NAME="outputFormatPeek()"><!-- --></A><H3>outputFormatPeek</H3><PRE>protected <A HREF="../../weka/core/Instances.html">Instances</A> <B>outputFormatPeek</B>()</PRE><DL><DD>Returns a reference to the current output format without copying it.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a reference to the current output format</DL></DD></DL><HR><A NAME="push(weka.core.Instance)"><!-- --></A><H3>push</H3><PRE>protected void <B>push</B>(<A HREF="../../weka/core/Instance.html">Instance</A>&nbsp;instance)</PRE><DL><DD>Adds an output instance to the queue. The derived class should use this method for each output instance it makes available.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance to be added to the queue</DL></DD></DL><HR><A NAME="resetQueue()"><!-- --></A><H3>resetQueue</H3><PRE>protected void <B>resetQueue</B>()</PRE><DL><DD>Clears the output queue.<DD><DL></DL></DD></DL><HR><A NAME="bufferInput(weka.core.Instance)"><!-- --></A><H3>bufferInput</H3><PRE>protected void <B>bufferInput</B>(<A HREF="../../weka/core/Instance.html">Instance</A>&nbsp;instance)</PRE><DL><DD>Adds the supplied input instance to the inputformat dataset for later processing.  Use this method rather than getInputFormat().add(instance). Or else.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the <code>Instance</code> to buffer.</DL></DD></DL><HR><A NAME="getInputStringIndex()"><!-- --></A><H3>getInputStringIndex</H3><PRE>protected int[] <B>getInputStringIndex</B>()</PRE><DL><DD>Returns an array containing the indices of all string attributes in the input format. This index is created during setInputFormat()<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array containing the indices of string attributes in the  input dataset.</DL></DD></DL><HR><A NAME="getOutputStringIndex()"><!-- --></A><H3>getOutputStringIndex</H3><PRE>protected int[] <B>getOutputStringIndex</B>()</PRE><DL><DD>Returns an array containing the indices of all string attributes in the output format. This index is created during setOutputFormat()<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array containing the indices of string attributes in the  output dataset.</DL></DD></DL><HR><A NAME="copyStringValues(weka.core.Instance, boolean, weka.core.Instances, weka.core.Instances)"><!-- --></A><H3>copyStringValues</H3><PRE>protected void <B>copyStringValues</B>(<A HREF="../../weka/core/Instance.html">Instance</A>&nbsp;instance,                                boolean&nbsp;instSrcCompat,                                <A HREF="../../weka/core/Instances.html">Instances</A>&nbsp;srcDataset,                                <A HREF="../../weka/core/Instances.html">Instances</A>&nbsp;destDataset)</PRE><DL><DD>Takes string values referenced by an Instance and copies them from a source dataset to a destination dataset. The instance references are updated to be valid for the destination dataset. The instance may have the  structure (i.e. number and attribute position) of either dataset (this affects where references are obtained from). The source dataset must have the same structure as the filter input format and the destination must have the same structure as the filter output format.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance containing references to strings in the source dataset that will have references updated to be valid for the destination dataset.<DD><CODE>instSrcCompat</CODE> - true if the instance structure is the same as the source, or false if it is the same as the destination<DD><CODE>srcDataset</CODE> - the dataset for which the current instance string references are valid (after any position mapping if needed)<DD><CODE>destDataset</CODE> - the dataset for which the current instance string references need to be inserted (after any position mapping if needed)</DL></DD></DL><HR><A NAME="copyStringValues(weka.core.Instance, boolean, weka.core.Instances, int[], weka.core.Instances, int[])"><!-- --></A><H3>copyStringValues</H3><PRE>protected void <B>copyStringValues</B>(<A HREF="../../weka/core/Instance.html">Instance</A>&nbsp;instance,                                boolean&nbsp;instSrcCompat,                                <A HREF="../../weka/core/Instances.html">Instances</A>&nbsp;srcDataset,                                int[]&nbsp;srcStrAtts,                                <A HREF="../../weka/core/Instances.html">Instances</A>&nbsp;destDataset,                                int[]&nbsp;destStrAtts)</PRE><DL><DD>Takes string values referenced by an Instance and copies them from a source dataset to a destination dataset. The instance references are updated to be valid for the destination dataset. The instance may have the  structure (i.e. number and attribute position) of either dataset (this affects where references are obtained from). Only works if the number of string attributes is the same in both indices (implicitly these string attributes should be semantically same but just with shifted positions).<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance containing references to strings in the source dataset that will have references updated to be valid for the destination dataset.<DD><CODE>instSrcCompat</CODE> - true if the instance structure is the same as the source, or false if it is the same as the destination (i.e. which of the string attribute indices contains the correct locations for this instance).<DD><CODE>srcDataset</CODE> - the dataset for which the current instance string references are valid (after any position mapping if needed)<DD><CODE>srcStrAtts</CODE> - an array containing the indices of string attributes in the source datset.<DD><CODE>destDataset</CODE> - the dataset for which the current instance string references need to be inserted (after any position mapping if needed)<DD><CODE>destStrAtts</CODE> - an array containing the indices of string attributes in the destination datset.</DL></DD></DL><HR><A NAME="flushInput()"><!-- --></A><H3>flushInput</H3><PRE>protected void <B>flushInput</B>()</PRE><DL><DD>This will remove all buffered instances from the inputformat dataset. Use this method rather than getInputFormat().delete();<DD><DL></DL></DD></DL>

⌨️ 快捷键说明

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