⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stringkernel.html

📁 weka是机器学习和数据挖掘领域最有影响力的开源项目之一
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<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="StringKernel()"><!-- --></A><H3>StringKernel</H3><PRE>public <B>StringKernel</B>()</PRE><DL><DD>default constructor<P></DL><HR><A NAME="StringKernel(weka.core.Instances, int, int, double, boolean)"><!-- --></A><H3>StringKernel</H3><PRE>public <B>StringKernel</B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;data,                    int&nbsp;cacheSize,                    int&nbsp;subsequenceLength,                    double&nbsp;lambda,                    boolean&nbsp;debug)             throws java.lang.Exception</PRE><DL><DD>creates a new StringKernel object. Initializes the kernel cache and the 'lambda cache', i.e. the precalculated powers of lambda from lambda^2 to lambda^MAX_POWER_OF_LAMBDA<P><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset to use<DD><CODE>cacheSize</CODE> - the size of the cache<DD><CODE>subsequenceLength</CODE> - the subsequence length<DD><CODE>lambda</CODE> - the lambda value<DD><CODE>debug</CODE> - whether to output debug information<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></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 the kernel<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/classifiers/functions/supportVector/Kernel.html#globalInfo()">globalInfo</A></CODE> in class <CODE><A HREF="../../../../weka/classifiers/functions/supportVector/Kernel.html" title="class in weka.classifiers.functions.supportVector">Kernel</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a description suitable for displaying in the         explorer/experimenter gui</DL></DD></DL><HR><A NAME="getTechnicalInformation()"><!-- --></A><H3>getTechnicalInformation</H3><PRE>public <A HREF="../../../../weka/core/TechnicalInformation.html" title="class in weka.core">TechnicalInformation</A> <B>getTechnicalInformation</B>()</PRE><DL><DD>Returns an instance of a TechnicalInformation object, containing  detailed information about the technical background of this class, e.g., paper reference or book this class is based on.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/TechnicalInformationHandler.html#getTechnicalInformation()">getTechnicalInformation</A></CODE> in interface <CODE><A HREF="../../../../weka/core/TechnicalInformationHandler.html" title="interface in weka.core">TechnicalInformationHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the technical information about this class</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/classifiers/functions/supportVector/Kernel.html#listOptions()">listOptions</A></CODE> in class <CODE><A HREF="../../../../weka/classifiers/functions/supportVector/Kernel.html" title="class in weka.classifiers.functions.supportVector">Kernel</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[]&nbsp;options)                throws java.lang.Exception</PRE><DL><DD>Parses a given list of options. <p/>    <!-- options-start --> Valid options are: <p/>  <pre> -D  Enables debugging output (if available) to be printed.  (default: off)</pre>  <pre> -no-checks  Turns off all checks - use with caution!  (default: checks on)</pre>  <pre> -P &lt;0|1&gt;  The pruning method to use:  0 = No pruning  1 = Lambda pruning  (default: 0)</pre>  <pre> -C &lt;num&gt;  The size of the cache (a prime number).  (default: 250007)</pre>  <pre> -IC &lt;num&gt;  The size of the internal cache (a prime number).  (default: 200003)</pre>  <pre> -L &lt;num&gt;  The lambda constant. Penalizes non-continuous subsequence  matches. Must be in (0,1).  (default: 0.5)</pre>  <pre> -ssl &lt;num&gt;  The length of the subsequence.  (default: 3)</pre>  <pre> -ssl-max &lt;num&gt;  The maximum length of the subsequence.  (default: 9)</pre>  <pre> -N  Use normalization.  (default: no)</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/classifiers/functions/supportVector/Kernel.html#setOptions(java.lang.String[])">setOptions</A></CODE> in class <CODE><A HREF="../../../../weka/classifiers/functions/supportVector/Kernel.html" title="class in weka.classifiers.functions.supportVector">Kernel</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 Kernel.<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/classifiers/functions/supportVector/Kernel.html#getOptions()">getOptions</A></CODE> in class <CODE><A HREF="../../../../weka/classifiers/functions/supportVector/Kernel.html" title="class in weka.classifiers.functions.supportVector">Kernel</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="pruningMethodTipText()"><!-- --></A><H3>pruningMethodTipText</H3><PRE>public java.lang.String <B>pruningMethodTipText</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="setPruningMethod(weka.core.SelectedTag)"><!-- --></A><H3>setPruningMethod</H3><PRE>public void <B>setPruningMethod</B>(<A HREF="../../../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A>&nbsp;value)</PRE><DL><DD>Sets the method used to for pruning.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the pruning method to use.</DL></DD></DL><HR><A NAME="getPruningMethod()"><!-- --></A><H3>getPruningMethod</H3><PRE>public <A HREF="../../../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A> <B>getPruningMethod</B>()</PRE><DL><DD>Gets the method used for pruning.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the pruning method to use.</DL></DD></DL><HR><A NAME="setCacheSize(int)"><!-- --></A><H3>setCacheSize</H3><PRE>public void <B>setCacheSize</B>(int&nbsp;value)</PRE><DL><DD>Sets the size of the cache to use (a prime number)<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the size of the cache</DL></DD></DL><HR><A NAME="getCacheSize()"><!-- --></A><H3>getCacheSize</H3><PRE>public int <B>getCacheSize</B>()</PRE><DL><DD>Gets the size of the cache<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the cache size</DL></DD></DL><HR><A NAME="cacheSizeTipText()"><!-- --></A><H3>cacheSizeTipText</H3><PRE>public java.lang.String <B>cacheSizeTipText</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="setInternalCacheSize(int)"><!-- --></A><H3>setInternalCacheSize</H3><PRE>public void <B>setInternalCacheSize</B>(int&nbsp;value)</PRE><DL><DD>sets the size of the internal cache for intermediate results. Memory consumption is about 16x this amount in bytes. Only use when lambda pruning is switched off.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the size of the internal cache</DL></DD></DL><HR><A NAME="getInternalCacheSize()"><!-- --></A><H3>getInternalCacheSize</H3><PRE>public int <B>getInternalCacheSize</B>()</PRE><DL><DD>Gets the size of the internal cache<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the cache size</DL></DD></DL><HR><A NAME="internalCacheSizeTipText()"><!-- --></A><H3>internalCacheSizeTipText</H3><PRE>public java.lang.String <B>internalCacheSizeTipText</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="setSubsequenceLength(int)"><!-- --></A><H3>setSubsequenceLength</H3><PRE>public void <B>setSubsequenceLength</B>(int&nbsp;value)</PRE><DL><DD>Sets the length of the subsequence.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the length</DL></DD></DL><HR><A NAME="getSubsequenceLength()"><!-- --></A><H3>getSubsequenceLength</H3><PRE>public int <B>getSubsequenceLength</B>()</PRE><DL><DD>Returns the length of the subsequence<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the length</DL></DD></DL><HR><A NAME="subsequenceLengthTipText()"><!-- --></A><H3>subsequenceLengthTipText</H3><PRE>public java.lang.String <B>subsequenceLengthTipText</B>()</PRE><DL><DD>Returns the tip text for this property<P><DD><DL></DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -