📄 xmeans.html
字号:
<PRE>public java.io.File <B>getDebugVectorsFile</B>()</PRE><DL><DD>Gets the file name for a file that has the random vectors stored. Only used for debugging purposes.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the file to read the vectors from</DL></DD></DL><HR><A NAME="initDebugVectorsInput()"><!-- --></A><H3>initDebugVectorsInput</H3><PRE>public void <B>initDebugVectorsInput</B>() throws java.lang.Exception</PRE><DL><DD>Initialises the debug vector input.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="getNextDebugVectorsInstance(weka.core.Instances)"><!-- --></A><H3>getNextDebugVectorsInstance</H3><PRE>public <A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> <B>getNextDebugVectorsInstance</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> model) throws java.lang.Exception</PRE><DL><DD>Read an instance from debug vectors file.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>model</CODE> - the data model for the instance<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="inputCenterFileTipText()"><!-- --></A><H3>inputCenterFileTipText</H3><PRE>public java.lang.String <B>inputCenterFileTipText</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="setInputCenterFile(java.io.File)"><!-- --></A><H3>setInputCenterFile</H3><PRE>public void <B>setInputCenterFile</B>(java.io.File value)</PRE><DL><DD>Sets the file to read the list of centers from.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the file to read centers from</DL></DD></DL><HR><A NAME="getInputCenterFile()"><!-- --></A><H3>getInputCenterFile</H3><PRE>public java.io.File <B>getInputCenterFile</B>()</PRE><DL><DD>Gets the file to read the list of centers from.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the file to read the centers from</DL></DD></DL><HR><A NAME="outputCenterFileTipText()"><!-- --></A><H3>outputCenterFileTipText</H3><PRE>public java.lang.String <B>outputCenterFileTipText</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="setOutputCenterFile(java.io.File)"><!-- --></A><H3>setOutputCenterFile</H3><PRE>public void <B>setOutputCenterFile</B>(java.io.File value)</PRE><DL><DD>Sets file to write the list of centers to.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - file to write centers to</DL></DD></DL><HR><A NAME="getOutputCenterFile()"><!-- --></A><H3>getOutputCenterFile</H3><PRE>public java.io.File <B>getOutputCenterFile</B>()</PRE><DL><DD>Gets the file to write the list of centers to.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>filename of the file to write centers to</DL></DD></DL><HR><A NAME="KDTreeTipText()"><!-- --></A><H3>KDTreeTipText</H3><PRE>public java.lang.String <B>KDTreeTipText</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="setKDTree(weka.core.KDTree)"><!-- --></A><H3>setKDTree</H3><PRE>public void <B>setKDTree</B>(<A HREF="../../weka/core/KDTree.html" title="class in weka.core">KDTree</A> k)</PRE><DL><DD>Sets the KDTree class.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>k</CODE> - a KDTree object with all options set</DL></DD></DL><HR><A NAME="getKDTree()"><!-- --></A><H3>getKDTree</H3><PRE>public <A HREF="../../weka/core/KDTree.html" title="class in weka.core">KDTree</A> <B>getKDTree</B>()</PRE><DL><DD>Gets the KDTree class.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the configured KDTree</DL></DD></DL><HR><A NAME="useKDTreeTipText()"><!-- --></A><H3>useKDTreeTipText</H3><PRE>public java.lang.String <B>useKDTreeTipText</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="setUseKDTree(boolean)"><!-- --></A><H3>setUseKDTree</H3><PRE>public void <B>setUseKDTree</B>(boolean value)</PRE><DL><DD>Sets whether to use the KDTree or not.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - if true the KDTree is used</DL></DD></DL><HR><A NAME="getUseKDTree()"><!-- --></A><H3>getUseKDTree</H3><PRE>public boolean <B>getUseKDTree</B>()</PRE><DL><DD>Gets whether the KDTree is used or not.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if KDTrees are used</DL></DD></DL><HR><A NAME="debugLevelTipText()"><!-- --></A><H3>debugLevelTipText</H3><PRE>public java.lang.String <B>debugLevelTipText</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="setDebugLevel(int)"><!-- --></A><H3>setDebugLevel</H3><PRE>public void <B>setDebugLevel</B>(int d)</PRE><DL><DD>Sets the debug level. debug level = 0, means no output<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>d</CODE> - debuglevel</DL></DD></DL><HR><A NAME="getDebugLevel()"><!-- --></A><H3>getDebugLevel</H3><PRE>public int <B>getDebugLevel</B>()</PRE><DL><DD>Gets the debug level.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>debug level</DL></DD></DL><HR><A NAME="setOptions(java.lang.String[])"><!-- --></A><H3>setOptions</H3><PRE>public void <B>setOptions</B>(java.lang.String[] options) throws java.lang.Exception</PRE><DL><DD>Parses a given list of options. <p/> <!-- options-start --> Valid options are: <p/> <pre> -I <num> maximum number of overall iterations (default 1).</pre> <pre> -M <num> maximum number of iterations in the kMeans loop in the Improve-Parameter part (default 1000).</pre> <pre> -J <num> maximum number of iterations in the kMeans loop for the splitted centroids in the Improve-Structure part (default 1000).</pre> <pre> -L <num> minimum number of clusters (default 2).</pre> <pre> -H <num> maximum number of clusters (default 4).</pre> <pre> -B <value> distance value for binary attributes (default 1.0).</pre> <pre> -K <KDTree class specification> Full class name of KDTree class to use, followed by scheme options. eg: "weka.core.KDTree -P" (default no KDTree class used).</pre> <pre> -C <value> cutoff factor, takes the given percentage of the splitted centroids if none of the children win (default 0.0).</pre> <pre> -D <distance function class specification> Full class name of Distance function class to use, followed by scheme options. (default weka.core.EuclideanDistance).</pre> <pre> -N <file name> file to read starting centers from (ARFF format).</pre> <pre> -O <file name> file to write centers to (ARFF format).</pre> <pre> -U <int> The debug level. (default 0)</pre> <pre> -Y <file name> The debug vectors file.</pre> <pre> -S <num> Random number seed. (default 10)</pre> <!-- options-end --><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><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/clusterers/RandomizableClusterer.html#setOptions(java.lang.String[])">setOptions</A></CODE> in class <CODE><A HREF="../../weka/clusterers/RandomizableClusterer.html" title="class in weka.clusterers">RandomizableClusterer</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 SimpleKMeans.<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><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/clusterers/RandomizableClusterer.html#getOptions()">getOptions</A></CODE> in class <CODE><A HREF="../../weka/clusterers/RandomizableClusterer.html" title="class in weka.clusterers">RandomizableClusterer</A></CODE></DL></DD><DD><DL
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -