📄 classifiersplitevaluator.html
字号:
<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="getClassForIRStatistics()"><!-- --></A><H3>getClassForIRStatistics</H3><PRE>public int <B>getClassForIRStatistics</B>()</PRE><DL><DD>Get the value of ClassForIRStatistics.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Value of ClassForIRStatistics.</DL></DD></DL><HR><A NAME="setClassForIRStatistics(int)"><!-- --></A><H3>setClassForIRStatistics</H3><PRE>public void <B>setClassForIRStatistics</B>(int v)</PRE><DL><DD>Set the value of ClassForIRStatistics.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - Value to assign to ClassForIRStatistics.</DL></DD></DL><HR><A NAME="getAttributeID()"><!-- --></A><H3>getAttributeID</H3><PRE>public int <B>getAttributeID</B>()</PRE><DL><DD>Get the index of Attibute Identifying the instances<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>index of outputed Attribute.</DL></DD></DL><HR><A NAME="setAttributeID(int)"><!-- --></A><H3>setAttributeID</H3><PRE>public void <B>setAttributeID</B>(int v)</PRE><DL><DD>Set the index of Attibute Identifying the instances<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - index the attribute to output</DL></DD></DL><HR><A NAME="getPredTargetColumn()"><!-- --></A><H3>getPredTargetColumn</H3><PRE>public boolean <B>getPredTargetColumn</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the prediction and target columns must be outputed.</DL></DD></DL><HR><A NAME="setPredTargetColumn(boolean)"><!-- --></A><H3>setPredTargetColumn</H3><PRE>public void <B>setPredTargetColumn</B>(boolean v)</PRE><DL><DD>Set the flag for prediction and target output.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - true if the 2 columns have to be outputed. false otherwise.</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/AveragingResultProducer.html" title="class in weka.experiment"><B>PREV CLASS</B></A> <A HREF="../../weka/experiment/CostSensitiveClassifierSplitEvaluator.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="ClassifierSplitEvaluator.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 + -