📄 olm.html
字号:
<DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the extension type to use</DL></DD></DL><HR><A NAME="getExtensionType()"><!-- --></A><H3>getExtensionType</H3><PRE>public <A HREF="../../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A> <B>getExtensionType</B>()</PRE><DL><DD>Gets the extension type.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the extension type</DL></DD></DL><HR><A NAME="sortTipText()"><!-- --></A><H3>sortTipText</H3><PRE>public java.lang.String <B>sortTipText</B>()</PRE><DL><DD>Returns the tip text for this property.<P><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="setSort(boolean)"><!-- --></A><H3>setSort</H3><PRE>public void <B>setSort</B>(boolean sort)</PRE><DL><DD>Sets if the instances are to be sorted prior to building the rule bases.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>sort</CODE> - if <code> true </code> the instances will be sorted</DL></DD></DL><HR><A NAME="getSort()"><!-- --></A><H3>getSort</H3><PRE>public boolean <B>getSort</B>()</PRE><DL><DD>Returns if the instances are sorted prior to building the rule bases.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code> true </code> if instances are sorted prior to building the rule bases, <code> false </code> otherwise.</DL></DD></DL><HR><A NAME="seedTipText()"><!-- --></A><H3>seedTipText</H3><PRE>public java.lang.String <B>seedTipText</B>()</PRE><DL><DD>Returns the tip text for this property.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/RandomizableClassifier.html#seedTipText()">seedTipText</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/RandomizableClassifier.html" title="class in weka.classifiers">RandomizableClassifier</A></CODE></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="getSizeRuleBaseMin()"><!-- --></A><H3>getSizeRuleBaseMin</H3><PRE>public int <B>getSizeRuleBaseMin</B>()</PRE><DL><DD>Return the number of examples in the minimal rule base. The minimal rule base is the one that corresponds to the rule base of Ben-David.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of examples in the minimal rule base</DL></DD></DL><HR><A NAME="getSizeRuleBaseMax()"><!-- --></A><H3>getSizeRuleBaseMax</H3><PRE>public int <B>getSizeRuleBaseMax</B>()</PRE><DL><DD>Return the number of examples in the maximal rule base. The maximal rule base is built using an algorithm dual to that for building the minimal rule base.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of examples in the maximal rule base</DL></DD></DL><HR><A NAME="classifyInstance(weka.core.Instance)"><!-- --></A><H3>classifyInstance</H3><PRE>public double <B>classifyInstance</B>(<A HREF="../../../weka/core/Instance.html" title="class in weka.core">Instance</A> instance)</PRE><DL><DD>Classifies a given instance according to the current settings of the classifier.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/Classifier.html#classifyInstance(weka.core.Instance)">classifyInstance</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance to be classified<DT><B>Returns:</B><DD>a <code> double </code> that represents the classification, this could either be the internal value of a label, when rounding is on, or a real number.</DL></DD></DL><HR><A NAME="buildClassifier(weka.core.Instances)"><!-- --></A><H3>buildClassifier</H3><PRE>public void <B>buildClassifier</B>(<A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances) throws java.lang.Exception</PRE><DL><DD>Build the OLM classifier, meaning that the rule bases are built.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/classifiers/Classifier.html#buildClassifier(weka.core.Instances)">buildClassifier</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instances</CODE> - the instances to use for building the rule base<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if <code> instances </code> cannot be handled by the classifier.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Returns a string description of the classifier. In debug mode, the rule bases are added to the string representation as well. This means that the description can become rather lengthy.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code> String </code> describing the classifier.</DL></DD></DL><HR><A NAME="listOptions()"><!-- --></A><H3>listOptions</H3><PRE>public java.util.Enumeration <B>listOptions</B>()</PRE><DL><DD>Get an enumeration of all available options for this classifier.<P><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" title="interface in weka.core">OptionHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/RandomizableClassifier.html#listOptions()">listOptions</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/RandomizableClassifier.html" title="class in weka.classifiers">RandomizableClassifier</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of 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. <p/> <!-- options-start --> Valid options are: <p/> <pre> -S <num> Random number seed. (default 1)</pre> <pre> -D If set, classifier is run in debug mode and may output additional info to the console</pre> <pre> -C <CL|REG> Sets the classification type to be used. (Default: REG)</pre> <pre> -A <MEAN|MED|MAX> Sets the averaging type used in phase 1 of the classifier. (Default: MEAN)</pre> <pre> -N <NONE|EUCL|HAM> If different from NONE, a nearest neighbour rule is fired when the rule base doesn't contain an example smaller than the instance to be classified (Default: NONE).</pre> <pre> -E <MIN|MAX|BOTH> Sets the extension type, i.e. the rule base to use. (Default: MIN)</pre> <pre> -sort If set, the instances are also sorted within the same class before building the rule bases</pre> <!-- options-end --><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" title="interface in weka.core">OptionHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/RandomizableClassifier.html#setOptions(java.lang.String[])">setOptions</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/RandomizableClassifier.html" title="class in weka.classifiers">RandomizableClassifier</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>options</CODE> - an array of strings containing the options<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if there are options that have invalid arguments.</DL></DD></DL><HR><A NAME="getOptions()"><!-- --></A><H3>getOptions</H3><PRE>public java.lang.String[] <B>getOptions</B>()</PRE><DL><DD>Gets an array of string with the current options of the classifier.<P><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" title="interface in weka.core">OptionHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/RandomizableClassifier.html#getOptions()">getOptions</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/RandomizableClassifier.html" title="class in weka.classifiers">RandomizableClassifier</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array suitable as argument for <code> setOptions </code></DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[] args)</PRE><DL><DD>Main method for testing this class.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - the command line arguments</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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../weka/classifiers/misc/MinMaxExtension.html" title="class in weka.classifiers.misc"><B>PREV CLASS</B></A> <A HREF="../../../weka/classifiers/misc/OSDL.html" title="class in weka.classifiers.misc"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?weka/classifiers/misc/OLM.html" target="_top"><B>FRAMES</B></A> <A HREF="OLM.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 + -