osdl.html

来自「weka是机器学习和数据挖掘领域最有影响力的开源项目之一」· HTML 代码 · 共 437 行 · 第 1/2 页

HTML
437
字号
<P><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Field Summary</B></FONT></TH></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_weka.classifiers.misc.monotone.OSDLCore"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Fields inherited from class weka.classifiers.misc.monotone.<A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html" title="class in weka.classifiers.misc.monotone">OSDLCore</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#CT_MAXPROB">CT_MAXPROB</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#CT_MEDIAN">CT_MEDIAN</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#CT_MEDIAN_REAL">CT_MEDIAN_REAL</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#CT_REGRESSION">CT_REGRESSION</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#CT_WEIGHTED_SUM">CT_WEIGHTED_SUM</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#TAGS_CLASSIFICATIONTYPES">TAGS_CLASSIFICATIONTYPES</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../weka/classifiers/misc/OSDL.html#OSDL()">OSDL</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/classifiers/misc/OSDL.html#distributionForInstance(weka.core.Instance)">distributionForInstance</A></B>(<A HREF="../../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;instance)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use <code> classifyInstance </code> from <code> OSDLCore </code> and assign probability one to the chosen label.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../weka/classifiers/misc/OSDL.html#main(java.lang.String[])">main</A></B>(java.lang.String[]&nbsp;args)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Main method for testing this class and for using it from the command line.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_weka.classifiers.misc.monotone.OSDLCore"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class weka.classifiers.misc.monotone.<A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html" title="class in weka.classifiers.misc.monotone">OSDLCore</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#balancedTipText()">balancedTipText</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#buildClassifier(weka.core.Instances)">buildClassifier</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#classificationTypeTipText()">classificationTypeTipText</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#classifyInstance(weka.core.Instance)">classifyInstance</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#crossValidate()">crossValidate</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#crossValidate(double, double, int, int)">crossValidate</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#crossValidate(double, double, int, int, double[], weka.classifiers.misc.monotone.NominalLossFunction)">crossValidate</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#cumulativeDistributionForInstance(weka.core.Instance)">cumulativeDistributionForInstance</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#getBalanced()">getBalanced</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#getCapabilities()">getCapabilities</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#getClassificationType()">getClassificationType</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#getInterpolationParameter()">getInterpolationParameter</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#getInterpolationParameterLowerBound()">getInterpolationParameterLowerBound</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#getInterpolationParameterUpperBound()">getInterpolationParameterUpperBound</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#getLowerBound()">getLowerBound</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#getNumberOfPartsForInterpolationParameter()">getNumberOfPartsForInterpolationParameter</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#getNumInstances()">getNumInstances</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#getOptions()">getOptions</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#getTechnicalInformation()">getTechnicalInformation</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#getTuneInterpolationParameter()">getTuneInterpolationParameter</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#getUpperBound()">getUpperBound</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#getWeighted()">getWeighted</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#globalInfo()">globalInfo</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#interpolationParameterLowerBoundTipText()">interpolationParameterLowerBoundTipText</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#interpolationParameterTipText()">interpolationParameterTipText</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#interpolationParameterUpperBoundTipText()">interpolationParameterUpperBoundTipText</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#listOptions()">listOptions</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#numberOfPartsForInterpolationParameterTipText()">numberOfPartsForInterpolationParameterTipText</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#setBalanced(boolean)">setBalanced</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#setClassificationType(weka.core.SelectedTag)">setClassificationType</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#setInterpolationParameter(double)">setInterpolationParameter</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#setInterpolationParameterBounds(double, double)">setInterpolationParameterBounds</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#setInterpolationParameterLowerBound(double)">setInterpolationParameterLowerBound</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#setInterpolationParameterUpperBound(double)">setInterpolationParameterUpperBound</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#setNumberOfPartsForInterpolationParameter(int)">setNumberOfPartsForInterpolationParameter</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#setOptions(java.lang.String[])">setOptions</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#setTuneInterpolationParameter(boolean)">setTuneInterpolationParameter</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#setWeighted(boolean)">setWeighted</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#toString()">toString</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#tuneInterpolationParameter()">tuneInterpolationParameter</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#tuneInterpolationParameter(double, double, int, int)">tuneInterpolationParameter</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#tuneInterpolationParameterTipText()">tuneInterpolationParameterTipText</A>, <A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#weightedTipText()">weightedTipText</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_weka.classifiers.Classifier"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class weka.classifiers.<A HREF="../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../weka/classifiers/Classifier.html#debugTipText()">debugTipText</A>, <A HREF="../../../weka/classifiers/Classifier.html#forName(java.lang.String, java.lang.String[])">forName</A>, <A HREF="../../../weka/classifiers/Classifier.html#getDebug()">getDebug</A>, <A HREF="../../../weka/classifiers/Classifier.html#makeCopies(weka.classifiers.Classifier, int)">makeCopies</A>, <A HREF="../../../weka/classifiers/Classifier.html#makeCopy(weka.classifiers.Classifier)">makeCopy</A>, <A HREF="../../../weka/classifiers/Classifier.html#setDebug(boolean)">setDebug</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="OSDL()"><!-- --></A><H3>OSDL</H3><PRE>public <B>OSDL</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="distributionForInstance(weka.core.Instance)"><!-- --></A><H3>distributionForInstance</H3><PRE>public double[] <B>distributionForInstance</B>(<A HREF="../../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;instance)</PRE><DL><DD>Use <code> classifyInstance </code> from <code> OSDLCore </code> and assign probability one to the chosen label. The implementation is heavily based on the same method in  the <code> Classifier </code> class.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html#distributionForInstance(weka.core.Instance)">distributionForInstance</A></CODE> in class <CODE><A HREF="../../../weka/classifiers/misc/monotone/OSDLCore.html" title="class in weka.classifiers.misc.monotone">OSDLCore</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance to be classified<DT><B>Returns:</B><DD>an array containing a single '1' on the index that <code> classifyInstance </code> returns.</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 and for using it from the command line.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - array of options for both the classifier <code> OSDL </code> and for <code> evaluateModel </code></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>&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> <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>&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/misc/OLM.html" title="class in weka.classifiers.misc"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../weka/classifiers/misc/VFI.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/OSDL.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="OSDL.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_weka.classifiers.misc.monotone.OSDLCore">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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + =
减小字号Ctrl + -
显示快捷键?