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

📄 multiclassclassifier.html

📁 < 数据挖掘--实用机器学习技术及java实现> 一书结合数据挖掘和机器学习的知识,作者陈述了自动挖掘模式的基础理论,并且以java语言实现了具有代表性的各类数据挖掘方法.例如:class
💻 HTML
📖 第 1 页 / 共 2 页
字号:
ERROR_RANDOM</H3><PRE>public static final int <B>ERROR_RANDOM</B></PRE><DL></DL><HR><A NAME="ERROR_EXHAUSTIVE"><!-- --></A><H3>ERROR_EXHAUSTIVE</H3><PRE>public static final int <B>ERROR_EXHAUSTIVE</B></PRE><DL></DL><HR><A NAME="TAGS_ERROR"><!-- --></A><H3>TAGS_ERROR</H3><PRE>public static final <A HREF="../../weka/core/Tag.html">Tag</A>[] <B>TAGS_ERROR</B></PRE><DL></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="MultiClassClassifier()"><!-- --></A><H3>MultiClassClassifier</H3><PRE>public <B>MultiClassClassifier</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="buildClassifier(weka.core.Instances)"><!-- --></A><H3>buildClassifier</H3><PRE>public void <B>buildClassifier</B>(<A HREF="../../weka/core/Instances.html">Instances</A>&nbsp;insts)                     throws java.lang.Exception</PRE><DL><DD>Builds the classifiers.<DD><DL><DT><B>Overrides:</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">Classifier</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>insts</CODE> - the training data.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if a classifier can't be built</DL></DD></DL><HR><A NAME="distributionForInstance(weka.core.Instance)"><!-- --></A><H3>distributionForInstance</H3><PRE>public double[] <B>distributionForInstance</B>(<A HREF="../../weka/core/Instance.html">Instance</A>&nbsp;inst)                                 throws java.lang.Exception</PRE><DL><DD>Returns the distribution for an instance.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/classifiers/DistributionClassifier.html#distributionForInstance(weka.core.Instance)">distributionForInstance</A></CODE> in class <CODE><A HREF="../../weka/classifiers/DistributionClassifier.html">DistributionClassifier</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the distribution can't be computed successfully</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Prints the classifiers.<DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD></DL><HR><A NAME="listOptions()"><!-- --></A><H3>listOptions</H3><PRE>public java.util.Enumeration <B>listOptions</B>()</PRE><DL><DD>Returns 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[]&nbsp;options)                throws java.lang.Exception</PRE><DL><DD>Parses a given list of options. Valid options are:<p> -E num <br> Sets the error-correction mode. Valid values are 0 (no correction), 1 (random codes), and 2 (exhaustive code). (default 0) <p> -R num <br> Sets the multiplier when using random codes. (default 2.0)<p> -W classname <br> Specify the full class name of a learner as the basis for  the multiclassclassifier (required).<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 Classifier.<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="globalInfo()"><!-- --></A><H3>globalInfo</H3><PRE>public java.lang.String <B>globalInfo</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a description of the classifier suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="randomWidthFactorTipText()"><!-- --></A><H3>randomWidthFactorTipText</H3><PRE>public java.lang.String <B>randomWidthFactorTipText</B>()</PRE><DL><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="getRandomWidthFactor()"><!-- --></A><H3>getRandomWidthFactor</H3><PRE>public double <B>getRandomWidthFactor</B>()</PRE><DL><DD>Gets the multiplier when generating random codes. Will generate numClasses * m_RandomWidthFactor codes.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the width multiplier</DL></DD></DL><HR><A NAME="setRandomWidthFactor(double)"><!-- --></A><H3>setRandomWidthFactor</H3><PRE>public void <B>setRandomWidthFactor</B>(double&nbsp;newRandomWidthFactor)</PRE><DL><DD>Sets the multiplier when generating random codes. Will generate numClasses * m_RandomWidthFactor codes.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newRandomWidthFactor</CODE> - the new width multiplier</DL></DD></DL><HR><A NAME="errorCorrectionModeTipText()"><!-- --></A><H3>errorCorrectionModeTipText</H3><PRE>public java.lang.String <B>errorCorrectionModeTipText</B>()</PRE><DL><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="getErrorCorrectionMode()"><!-- --></A><H3>getErrorCorrectionMode</H3><PRE>public <A HREF="../../weka/core/SelectedTag.html">SelectedTag</A> <B>getErrorCorrectionMode</B>()</PRE><DL><DD>Gets the error correction mode used. Will be one of ERROR_NONE, ERROR_RANDOM, or ERROR_EXHAUSTIVE.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current error correction mode.</DL></DD></DL><HR><A NAME="setErrorCorrectionMode(weka.core.SelectedTag)"><!-- --></A><H3>setErrorCorrectionMode</H3><PRE>public void <B>setErrorCorrectionMode</B>(<A HREF="../../weka/core/SelectedTag.html">SelectedTag</A>&nbsp;newMethod)</PRE><DL><DD>Sets the error correction mode used. Will be one of ERROR_NONE, ERROR_RANDOM, or ERROR_EXHAUSTIVE.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newMethod</CODE> - the new error correction mode.</DL></DD></DL><HR><A NAME="distributionClassifierTipText()"><!-- --></A><H3>distributionClassifierTipText</H3><PRE>public java.lang.String <B>distributionClassifierTipText</B>()</PRE><DL><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="setDistributionClassifier(weka.classifiers.DistributionClassifier)"><!-- --></A><H3>setDistributionClassifier</H3><PRE>public void <B>setDistributionClassifier</B>(<A HREF="../../weka/classifiers/DistributionClassifier.html">DistributionClassifier</A>&nbsp;newClassifier)</PRE><DL><DD>Set the base classifier.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newClassifier</CODE> - the Classifier to use.</DL></DD></DL><HR><A NAME="getDistributionClassifier()"><!-- --></A><H3>getDistributionClassifier</H3><PRE>public <A HREF="../../weka/classifiers/DistributionClassifier.html">DistributionClassifier</A> <B>getDistributionClassifier</B>()</PRE><DL><DD>Get the classifier used as the classifier<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the classifier used as the classifier</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;argv)</PRE><DL><DD>Main method for testing this class.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>argv</CODE> - the options</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/classifiers/MetaCost.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../weka/classifiers/MultiScheme.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="MultiClassClassifier.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 + -