📄 discretizefilter.html
字号:
</TABLE><A NAME="listOptions()"><!-- --></A><H3>listOptions</H3><PRE>public java.util.Enumeration <B>listOptions</B>()</PRE><DL><DD>Gets an enumeration describing the available options<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#listOptions()">listOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of all the available options</DL></DD></DL><HR><A NAME="setOptions(java.lang.String[])"><!-- --></A><H3>setOptions</H3><PRE>public void <B>setOptions</B>(java.lang.String[] options) throws java.lang.Exception</PRE><DL><DD>Parses the options for this object. Valid options are: <p> -B num <br> Specify the (maximum) number of equal-width bins to divide numeric attributes into. (default class-based discretization).<p> -O Optimizes the number of bins using a leave-one-out estimate of the entropy. -R col1,col2-col4,... <br> Specify list of columns to discretize. First and last are valid indexes. (default none) <p> -V <br> Invert matching sense.<p> -D <br> Make binary nominal attributes. <p> -E <br> Use better encoding of split point for MDL. <p> -K <br> Use Kononeko's MDL criterion. <p><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#setOptions(java.lang.String[])">setOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>options</CODE> - the list of options as an array of strings<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an option is not supported</DL></DD></DL><HR><A NAME="getOptions()"><!-- --></A><H3>getOptions</H3><PRE>public java.lang.String[] <B>getOptions</B>()</PRE><DL><DD>Gets the current settings of the filter.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#getOptions()">getOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of strings suitable for passing to setOptions</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> instanceInfo) throws java.lang.Exception</PRE><DL><DD>Sets the format of the input instances.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/filters/Filter.html#setInputFormat(weka.core.Instances)">setInputFormat</A></CODE> in class <CODE><A HREF="../../weka/filters/Filter.html">Filter</A></CODE></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 input format can't be set successfully</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> instance)</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.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/filters/Filter.html#input(weka.core.Instance)">input</A></CODE> in class <CODE><A HREF="../../weka/filters/Filter.html">Filter</A></CODE></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>java.lang.IllegalStateException</CODE> - if no input format has been defined.</DL></DD></DL><HR><A NAME="batchFinished()"><!-- --></A><H3>batchFinished</H3><PRE>public boolean <B>batchFinished</B>()</PRE><DL><DD>Signifies 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.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/filters/Filter.html#batchFinished()">batchFinished</A></CODE> in class <CODE><A HREF="../../weka/filters/Filter.html">Filter</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if there are instances pending output<DT><B>Throws:</B><DD><CODE>java.lang.IllegalStateException</CODE> - if no input structure has been defined</DL></DD></DL><HR><A NAME="globalInfo()"><!-- --></A><H3>globalInfo</H3><PRE>public java.lang.String <B>globalInfo</B>()</PRE><DL><DD>Returns a string describing this filter<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a description of the filter suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="findNumBinsTipText()"><!-- --></A><H3>findNumBinsTipText</H3><PRE>public java.lang.String <B>findNumBinsTipText</B>()</PRE><DL><DD>Returns the tip text for this property<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getFindNumBins()"><!-- --></A><H3>getFindNumBins</H3><PRE>public boolean <B>getFindNumBins</B>()</PRE><DL><DD>Get the value of FindNumBins.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Value of FindNumBins.</DL></DD></DL><HR><A NAME="setFindNumBins(boolean)"><!-- --></A><H3>setFindNumBins</H3><PRE>public void <B>setFindNumBins</B>(boolean newFindNumBins)</PRE><DL><DD>Set the value of FindNumBins.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newFindNumBins</CODE> - Value to assign to FindNumBins.</DL></DD></DL><HR><A NAME="makeBinaryTipText()"><!-- --></A><H3>makeBinaryTipText</H3><PRE>public java.lang.String <B>makeBinaryTipText</B>()</PRE><DL><DD>Returns the tip text for this property<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getMakeBinary()"><!-- --></A><H3>getMakeBinary</H3><PRE>public boolean <B>getMakeBinary</B>()</PRE><DL><DD>Gets whether binary attributes should be made for discretized ones.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if attributes will be binarized</DL></DD></DL><HR><A NAME="setMakeBinary(boolean)"><!-- --></A><H3>setMakeBinary</H3><PRE>public void <B>setMakeBinary</B>(boolean makeBinary)</PRE><DL><DD>Sets whether binary attributes should be made for discretized ones.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>makeBinary</CODE> - if binary attributes are to be made</DL></DD></DL><HR><A NAME="useMDLTipText()"><!-- --></A><H3>useMDLTipText</H3><PRE>public java.lang.String <B>useMDLTipText</B>()</PRE><DL><DD>Returns the tip text for this property<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getUseMDL()"><!-- --></A><H3>getUseMDL</H3><PRE>public boolean <B>getUseMDL</B>()</PRE><DL><DD>Gets whether MDL will be used as the discretisation method.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if so, false if fixed bins should be used.</DL></DD></DL><HR><A NAME="setUseMDL(boolean)"><!-- --></A><H3>setUseMDL</H3><PRE>public void <B>setUseMDL</B>(boolean useMDL)</PRE><DL><DD>Sets whether MDL will be used as the discretisation method.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>useMDL</CODE> - true if MDL should be used, false if fixed bins should be used.</DL></DD></DL><HR><A NAME="useKononenkoTipText()"><!-- --></A><H3>useKononenkoTipText</H3><PRE>public java.lang.String <B>useKononenkoTipText</B>()</PRE><DL><DD>Returns the tip text for this property<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getUseKononenko()"><!-- --></A><H3>getUseKononenko</H3><PRE>public boolean <B>getUseKononenko</B>()</PRE><DL><DD>Gets whether Kononenko's MDL criterion is to be used.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if Kononenko's criterion will be used.</DL></DD></DL><HR><A NAME="setUseKononenko(boolean)"><!-- --></A><H3>setUseKononenko</H3><PRE>public void <B>setUseKononenko</B>(boolean useKon)</PRE><DL><DD>Sets whether Kononenko's MDL criterion is to be used.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>useKon</CODE> - true if Kononenko's one is to be used</DL></DD></DL><HR><A NAME="useBetterEncodingTipText()"><!-- --></A><H3>useBetterEncodingTipText</H3><PRE>public java.lang.String <B>useBetterEncodingTipText</B>()</PRE><DL><DD>Returns the tip text for this property<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getUseBetterEncoding()"><!-- --></A><H3>getUseBetterEncoding</H3><PRE>public boolean <B>getUseBetterEncoding</B>()</PRE><DL><DD>Gets whether better encoding is to be used for MDL.<DD><DL></DL></DD><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -