📄 regressionsplitevaluator.html
字号:
throws java.lang.Exception</PRE><DL><DD>Parses a given list of options. Valid options are:<p> -W classname <br> Specify the full class name of the classifier to evaluate. <p> All option after -- will be passed to the classifier.<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></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.<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></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of strings suitable for passing to setOptions</DL></DD></DL><HR><A NAME="setAdditionalMeasures(java.lang.String[])"><!-- --></A><H3>setAdditionalMeasures</H3><PRE>public void <B>setAdditionalMeasures</B>(java.lang.String[] additionalMeasures)</PRE><DL><DD>Set a list of method names for additional measures to look for in Classifiers. This could contain many measures (of which only a subset may be produceable by the current Classifier) if an experiment is the type that iterates over a set of properties.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/experiment/SplitEvaluator.html#setAdditionalMeasures(java.lang.String[])">setAdditionalMeasures</A></CODE> in interface <CODE><A HREF="../../weka/experiment/SplitEvaluator.html" title="interface in weka.experiment">SplitEvaluator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>additionalMeasures</CODE> - an array of method names.</DL></DD></DL><HR><A NAME="enumerateMeasures()"><!-- --></A><H3>enumerateMeasures</H3><PRE>public java.util.Enumeration <B>enumerateMeasures</B>()</PRE><DL><DD>Returns an enumeration of any additional measure names that might be in the classifier<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/AdditionalMeasureProducer.html#enumerateMeasures()">enumerateMeasures</A></CODE> in interface <CODE><A HREF="../../weka/core/AdditionalMeasureProducer.html" title="interface in weka.core">AdditionalMeasureProducer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of the measure names</DL></DD></DL><HR><A NAME="getMeasure(java.lang.String)"><!-- --></A><H3>getMeasure</H3><PRE>public double <B>getMeasure</B>(java.lang.String additionalMeasureName)</PRE><DL><DD>Returns the value of the named measure<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/AdditionalMeasureProducer.html#getMeasure(java.lang.String)">getMeasure</A></CODE> in interface <CODE><A HREF="../../weka/core/AdditionalMeasureProducer.html" title="interface in weka.core">AdditionalMeasureProducer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>additionalMeasureName</CODE> - the name of the measure to query for its value<DT><B>Returns:</B><DD>the value of the named measure<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the named measure is not supported</DL></DD></DL><HR><A NAME="getKeyTypes()"><!-- --></A><H3>getKeyTypes</H3><PRE>public java.lang.Object[] <B>getKeyTypes</B>()</PRE><DL><DD>Gets the data types of each of the key columns produced for a single run. The number of key fields must be constant for a given SplitEvaluator.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/experiment/SplitEvaluator.html#getKeyTypes()">getKeyTypes</A></CODE> in interface <CODE><A HREF="../../weka/experiment/SplitEvaluator.html" title="interface in weka.experiment">SplitEvaluator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array containing objects of the type of each key column. The objects should be Strings, or Doubles.</DL></DD></DL><HR><A NAME="getKeyNames()"><!-- --></A><H3>getKeyNames</H3><PRE>public java.lang.String[] <B>getKeyNames</B>()</PRE><DL><DD>Gets the names of each of the key columns produced for a single run. The number of key fields must be constant for a given SplitEvaluator.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/experiment/SplitEvaluator.html#getKeyNames()">getKeyNames</A></CODE> in interface <CODE><A HREF="../../weka/experiment/SplitEvaluator.html" title="interface in weka.experiment">SplitEvaluator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array containing the name of each key column</DL></DD></DL><HR><A NAME="getKey()"><!-- --></A><H3>getKey</H3><PRE>public java.lang.Object[] <B>getKey</B>()</PRE><DL><DD>Gets the key describing the current SplitEvaluator. For example This may contain the name of the classifier used for classifier predictive evaluation. The number of key fields must be constant for a given SplitEvaluator.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/experiment/SplitEvaluator.html#getKey()">getKey</A></CODE> in interface <CODE><A HREF="../../weka/experiment/SplitEvaluator.html" title="interface in weka.experiment">SplitEvaluator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of objects containing the key.</DL></DD></DL><HR><A NAME="getResultTypes()"><!-- --></A><H3>getResultTypes</H3><PRE>public java.lang.Object[] <B>getResultTypes</B>()</PRE><DL><DD>Gets the data types of each of the result columns produced for a single run. The number of result fields must be constant for a given SplitEvaluator.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/experiment/SplitEvaluator.html#getResultTypes()">getResultTypes</A></CODE> in interface <CODE><A HREF="../../weka/experiment/SplitEvaluator.html" title="interface in weka.experiment">SplitEvaluator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array containing objects of the type of each result column. The objects should be Strings, or Doubles.</DL></DD></DL><HR><A NAME="getResultNames()"><!-- --></A><H3>getResultNames</H3><PRE>public java.lang.String[] <B>getResultNames</B>()</PRE><DL><DD>Gets the names of each of the result columns produced for a single run. The number of result fields must be constant for a given SplitEvaluator.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/experiment/SplitEvaluator.html#getResultNames()">getResultNames</A></CODE> in interface <CODE><A HREF="../../weka/experiment/SplitEvaluator.html" title="interface in weka.experiment">SplitEvaluator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array containing the name of each result column</DL></DD></DL><HR><A NAME="getResult(weka.core.Instances, weka.core.Instances)"><!-- --></A><H3>getResult</H3><PRE>public java.lang.Object[] <B>getResult</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> train, <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> test) throws java.lang.Exception</PRE><DL><DD>Gets the results for the supplied train and test datasets. Now performs a deep copy of the classifier before it is built and evaluated (just in case the classifier is not initialized properly in buildClassifier()).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/experiment/SplitEvaluator.html#getResult(weka.core.Instances, weka.core.Instances)">getResult</A></CODE> in interface <CODE><A HREF="../../weka/experiment/SplitEvaluator.html" title="interface in weka.experiment">SplitEvaluator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>train</CODE> - the training Instances.<DD><CODE>test</CODE> - the testing Instances.<DT><B>Returns:</B><DD>the results stored in an array. The objects stored in the array may be Strings, Doubles, or null (for the missing value).<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if a problem occurs while getting the results</DL></DD></DL><HR><A NAME="classifierTipText()"><!-- --></A><H3>classifierTipText</H3><PRE>public java.lang.String <B>classifierTipText</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="getClassifier()"><!-- --></A><H3>getClassifier</H3><PRE>public <A HREF="../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</A> <B>getClassifier</B>()</PRE><DL><DD>Get the value of Classifier.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Value of Classifier.</DL></DD></DL><HR><A NAME="setClassifier(weka.classifiers.Classifier)"><!-- --></A><H3>setClassifier</H3><PRE>public void <B>setClassifier</B>(<A HREF="../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</A> newClassifier)</PRE><DL><DD>Sets the classifier.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newClassifier</CODE> - the new classifier to use.</DL></DD></DL><HR><A NAME="setClassifierName(java.lang.String)"><!-- --></A><H3>setClassifierName</H3><PRE>public void <B>setClassifierName</B>(java.lang.String newClassifierName) throws java.lang.Exception</PRE><DL><DD>Set the Classifier to use, given it's class name. A new classifier will be instantiated.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the class name is invalid.</DL></DD></DL><HR><A NAME="getRawResultOutput()"><!-- --></A><H3>getRawResultOutput</H3><PRE>public java.lang.String <B>getRawResultOutput</B>()</PRE><DL><DD>Gets the raw output from the classifier<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/experiment/SplitEvaluator.html#getRawResultOutput()">getRawResultOutput</A></CODE> in interface <CODE><A HREF="../../weka/experiment/SplitEvaluator.html" title="interface in weka.experiment">SplitEvaluator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the raw output from 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 text description of the split evaluator.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a text description of the split evaluator.</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=3 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="../../../Tutorial.pdf"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/index.html"><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/experiment/RandomSplitResultProducer.html" title="class in weka.experiment"><B>PREV CLASS</B></A> <A HREF="../../weka/experiment/RemoteEngine.html" title="class in weka.experiment"><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> <A HREF="RegressionSplitEvaluator.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 | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <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 + -