📄 subspacecluster.html
字号:
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.datagenerators.clusterers.SubspaceCluster.CONTINUOUS">Constant Field Values</A></DL></DL><HR><A NAME="INTEGER"><!-- --></A><H3>INTEGER</H3><PRE>public static final int <B>INTEGER</B></PRE><DL><DD>cluster subtype: integer<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.datagenerators.clusterers.SubspaceCluster.INTEGER">Constant Field Values</A></DL></DL><HR><A NAME="TAGS_CLUSTERSUBTYPE"><!-- --></A><H3>TAGS_CLUSTERSUBTYPE</H3><PRE>public static final <A HREF="../../../weka/core/Tag.html" title="class in weka.core">Tag</A>[] <B>TAGS_CLUSTERSUBTYPE</B></PRE><DL><DD>the tags for the cluster types<P><DL></DL></DL><!-- ========= 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="SubspaceCluster()"><!-- --></A><H3>SubspaceCluster</H3><PRE>public <B>SubspaceCluster</B>()</PRE><DL><DD>initializes the generator, sets the number of clusters to 0, since user has to specify them explicitly<P></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="globalInfo()"><!-- --></A><H3>globalInfo</H3><PRE>public java.lang.String <B>globalInfo</B>()</PRE><DL><DD>Returns a string describing this data generator.<P><DD><DL><DT><B>Returns:</B><DD>a description of the data generator suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="listOptions()"><!-- --></A><H3>listOptions</H3><PRE>public java.util.Enumeration <B>listOptions</B>()</PRE><DL><DD>Returns an enumeration describing the available options.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/OptionHandler.html#listOptions()">listOptions</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/datagenerators/ClusterGenerator.html#listOptions()">listOptions</A></CODE> in class <CODE><A HREF="../../../weka/datagenerators/ClusterGenerator.html" title="class in weka.datagenerators">ClusterGenerator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of all the available options</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 list of options for this object. <p/> <!-- options-start --> Valid options are: <p/> <pre> -h Prints this help.</pre> <pre> -o <file> The name of the output file, otherwise the generated data is printed to stdout.</pre> <pre> -r <name> The name of the relation.</pre> <pre> -d Whether to print debug informations.</pre> <pre> -S The seed for random function (default 1)</pre> <pre> -a <num> The number of attributes (default 1).</pre> <pre> -c Class Flag, if set, the cluster is listed in extra attribute.</pre> <pre> -b <range> The indices for boolean attributes.</pre> <pre> -m <range> The indices for nominal attributes.</pre> <pre> -P <num> The noise rate in percent (default 0.0). Can be between 0% and 30%. (Remark: The original algorithm only allows noise up to 10%.)</pre> <pre> -C <cluster-definition> A cluster definition of class 'SubspaceClusterDefinition' (definition needs to be quoted to be recognized as a single argument).</pre> <pre> Options specific to weka.datagenerators.clusterers.SubspaceClusterDefinition: </pre> <pre> -A <range> Generates randomly distributed instances in the cluster.</pre> <pre> -U <range> Generates uniformly distributed instances in the cluster.</pre> <pre> -G <range> Generates gaussian distributed instances in the cluster.</pre> <pre> -D <num>,<num> The attribute min/max (-A and -U) or mean/stddev (-G) for the cluster.</pre> <pre> -N <num>..<num> The range of number of instances per cluster (default 1..50).</pre> <pre> -I Uses integer instead of continuous values (default continuous).</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/datagenerators/ClusterGenerator.html#setOptions(java.lang.String[])">setOptions</A></CODE> in class <CODE><A HREF="../../../weka/datagenerators/ClusterGenerator.html" title="class in weka.datagenerators">ClusterGenerator</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 datagenerator.<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/datagenerators/ClusterGenerator.html#getOptions()">getOptions</A></CODE> in class <CODE><A HREF="../../../weka/datagenerators/ClusterGenerator.html" title="class in weka.datagenerators">ClusterGenerator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of strings suitable for passing to setOptions<DT><B>See Also:</B><DD><A HREF="../../../weka/datagenerators/DataGenerator.html#removeBlacklist(java.lang.String[])"><CODE>DataGenerator.removeBlacklist(String[])</CODE></A></DL></DD></DL><HR><A NAME="setNumAttributes(int)"><!-- --></A><H3>setNumAttributes</H3><PRE>public void <B>setNumAttributes</B>(int numAttributes)</PRE><DL><DD>Sets the number of attributes the dataset should have.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/datagenerators/ClusterGenerator.html#setNumAttributes(int)">setNumAttributes</A></CODE> in class <CODE><A HREF="../../../weka/datagenerators/ClusterGenerator.html" title="class in weka.datagenerators">ClusterGenerator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>numAttributes</CODE> - the new number of attributes</DL></DD></DL><HR><A NAME="numAttributesTipText()"><!-- --></A><H3>numAttributesTipText</H3><PRE>public java.lang.String <B>numAttributesTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../weka/datagenerators/ClusterGenerator.html#numAttributesTipText()">numAttributesTipText</A></CODE> in class <CODE><A HREF="../../../weka/datagenerators/ClusterGenerator.html" title="class in weka.datagenerators">ClusterGenerator</A></CODE></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="getNoiseRate()"><!-- --></A><H3>getNoiseRate</H3><PRE>public double <B>getNoiseRate</B>()</PRE><DL><DD>Gets the percentage of noise set.<P><DD><DL><DT><B>Returns:</B><DD>the percentage of noise set</DL></DD></DL><HR><A NAME="setNoiseRate(double)"><!-- --></A><H3>setNoiseRate</H3><PRE>public void <B>setNoiseRate</B>(double newNoiseRate)</PRE><DL><DD>Sets the percentage of noise set.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newNoiseRate</CODE> - new percentage of noise</DL></DD></DL><HR><A NAME="noiseRateTipText()"><!-- --></A><H3>noiseRateTipText</H3><PRE>public java.lang.String <B>noiseRateTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><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="getClusterDefinitions()"><!-- --></A><H3>getClusterDefinitions</H3><PRE>public <A HREF="../../../weka/datagenerators/ClusterDefinition.html" title="class in weka.datagenerators">ClusterDefinition</A>[] <B>getClusterDefinitions</B>()</PRE><DL><DD>returns the currently set clusters<P><DD><DL><DT><B>Returns:</B><DD>the currently set clusters</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -