📄 experiment.html
字号:
<A NAME="m_ClassFirst"><!-- --></A><H3>m_ClassFirst</H3><PRE>protected boolean <B>m_ClassFirst</B></PRE><DL><DD>True if the class attribute is the first attribute for alldatasets involved in this experiment.</DL><HR><A NAME="m_AdvanceDataSetFirst"><!-- --></A><H3>m_AdvanceDataSetFirst</H3><PRE>protected boolean <B>m_AdvanceDataSetFirst</B></PRE><DL><DD>If true an experiment will advance the current data set beforany custom itererator</DL><HR><A NAME="m_RunNumber"><!-- --></A><H3>m_RunNumber</H3><PRE>protected transient int <B>m_RunNumber</B></PRE><DL><DD>The current run number when the experiment is running</DL><HR><A NAME="m_DatasetNumber"><!-- --></A><H3>m_DatasetNumber</H3><PRE>protected transient int <B>m_DatasetNumber</B></PRE><DL><DD>The current dataset number when the experiment is running</DL><HR><A NAME="m_PropertyNumber"><!-- --></A><H3>m_PropertyNumber</H3><PRE>protected transient int <B>m_PropertyNumber</B></PRE><DL><DD>The current custom property value index when the experiment is running</DL><HR><A NAME="m_Finished"><!-- --></A><H3>m_Finished</H3><PRE>protected transient boolean <B>m_Finished</B></PRE><DL><DD>True if the experiment has finished running</DL><HR><A NAME="m_CurrentInstances"><!-- --></A><H3>m_CurrentInstances</H3><PRE>protected transient <A HREF="../../weka/core/Instances.html">Instances</A> <B>m_CurrentInstances</B></PRE><DL><DD>The dataset currently being used</DL><HR><A NAME="m_CurrentProperty"><!-- --></A><H3>m_CurrentProperty</H3><PRE>protected transient int <B>m_CurrentProperty</B></PRE><DL><DD>The custom property value that has actually been set</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="Experiment()"><!-- --></A><H3>Experiment</H3><PRE>public <B>Experiment</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="classFirst(boolean)"><!-- --></A><H3>classFirst</H3><PRE>public void <B>classFirst</B>(boolean flag)</PRE><DL><DD>Sets whether the first attribute is treated as the class for all datasets involved in the experiment. This information is not output with the result of the experiments!<DD><DL></DL></DD></DL><HR><A NAME="getAdvanceDataSetFirst()"><!-- --></A><H3>getAdvanceDataSetFirst</H3><PRE>public boolean <B>getAdvanceDataSetFirst</B>()</PRE><DL><DD>Get the value of m_DataSetFirstFirst.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Value of m_DataSetFirstFirst.</DL></DD></DL><HR><A NAME="setAdvanceDataSetFirst(boolean)"><!-- --></A><H3>setAdvanceDataSetFirst</H3><PRE>public void <B>setAdvanceDataSetFirst</B>(boolean newAdvanceDataSetFirst)</PRE><DL><DD>Set the value of m_AdvanceDataSetFirst.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newm_AdvanceDataSetFirst</CODE> - Value to assign to m_AdvanceRunFirst.</DL></DD></DL><HR><A NAME="getUsePropertyIterator()"><!-- --></A><H3>getUsePropertyIterator</H3><PRE>public boolean <B>getUsePropertyIterator</B>()</PRE><DL><DD>Gets whether the custom property iterator should be used.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if so</DL></DD></DL><HR><A NAME="setUsePropertyIterator(boolean)"><!-- --></A><H3>setUsePropertyIterator</H3><PRE>public void <B>setUsePropertyIterator</B>(boolean newUsePropertyIterator)</PRE><DL><DD>Sets whether the custom property iterator should be used.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newUsePropertyIterator</CODE> - true if so</DL></DD></DL><HR><A NAME="getPropertyPath()"><!-- --></A><H3>getPropertyPath</H3><PRE>public <A HREF="../../weka/experiment/PropertyNode.html">PropertyNode</A>[] <B>getPropertyPath</B>()</PRE><DL><DD>Gets the path of properties taken to get to the custom property to iterate over.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of PropertyNodes</DL></DD></DL><HR><A NAME="setPropertyPath(weka.experiment.PropertyNode[])"><!-- --></A><H3>setPropertyPath</H3><PRE>public void <B>setPropertyPath</B>(<A HREF="../../weka/experiment/PropertyNode.html">PropertyNode</A>[] newPropertyPath)</PRE><DL><DD>Sets the path of properties taken to get to the custom property to iterate over.<DD><DL></DL></DD></DL><HR><A NAME="setPropertyArray(java.lang.Object)"><!-- --></A><H3>setPropertyArray</H3><PRE>public void <B>setPropertyArray</B>(java.lang.Object newPropArray)</PRE><DL><DD>Sets the array of values to set the custom property to.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newPropArray</CODE> - a value of type Object which should be an array of the appropriate values.</DL></DD></DL><HR><A NAME="getPropertyArray()"><!-- --></A><H3>getPropertyArray</H3><PRE>public java.lang.Object <B>getPropertyArray</B>()</PRE><DL><DD>Gets the array of values to set the custom property to.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a value of type Object which should be an array of the appropriate values.</DL></DD></DL><HR><A NAME="getPropertyArrayLength()"><!-- --></A><H3>getPropertyArrayLength</H3><PRE>public int <B>getPropertyArrayLength</B>()</PRE><DL><DD>Gets the number of custom iterator values that have been defined for the experiment.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of custom property iterator values.</DL></DD></DL><HR><A NAME="getPropertyArrayValue(int)"><!-- --></A><H3>getPropertyArrayValue</H3><PRE>public java.lang.Object <B>getPropertyArrayValue</B>(int index)</PRE><DL><DD>Gets a specified value from the custom property iterator array.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the value wanted<DT><B>Returns:</B><DD>the property array value</DL></DD></DL><HR><A NAME="getCurrentRunNumber()"><!-- --></A><H3>getCurrentRunNumber</H3><PRE>public int <B>getCurrentRunNumber</B>()</PRE><DL><DD>When an experiment is running, this returns the current run number.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current run number.</DL></DD></DL><HR><A NAME="getCurrentDatasetNumber()"><!-- --></A><H3>getCurrentDatasetNumber</H3><PRE>public int <B>getCurrentDatasetNumber</B>()</PRE><DL><DD>When an experiment is running, this returns the current dataset number.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current dataset number.</DL></DD></DL><HR><A NAME="getCurrentPropertyNumber()"><!-- --></A><H3>getCurrentPropertyNumber</H3><PRE>public int <B>getCurrentPropertyNumber</B>()</PRE><DL><DD>When an experiment is running, this returns the index of the current custom property value.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the index of the current custom property value.</DL></DD></DL><HR><A NAME="initialize()"><!-- --></A><H3>initialize</H3><PRE>public void <B>initialize</B>() throws java.lang.Exception</PRE><DL><DD>Prepares an experiment for running, initializing current iterator settings.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs</DL></DD></DL><HR><A NAME="setProperty(int, java.lang.Object)"><!-- --></A><H3>setProperty</H3><PRE>protected void <B>setProperty</B>(int propertyDepth, java.lang.Object origValue) throws java.lang.Exception</PRE><DL><DD>Recursively sets the custom property value, by setting all values along the property path.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>propertyDepth</CODE> - the current position along the property path<DD><CODE>origValue</CODE> - the value to set the property to<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs</DL></DD></DL><HR><A NAME="hasMoreIterations()"><!-- --></A><H3>hasMoreIterations</H3><PRE>public boolean <B>hasMoreIterations</B>()</PRE><DL><DD>Returns true if there are more iterations to carry out in the experiment.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if so</DL></DD></DL><HR><A NAME="nextIteration()"><!-- --></A><H3>nextIteration</H3><PRE>public void <B>nextIteration</B>() throws java.lang.Exception</PRE><DL><DD>Carries out the next iteration of the experiment.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an error occurs</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -