亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? polykernel.java

?? 一個小型的數據挖掘器應用軟件,綜合數據挖掘的各種功能
?? JAVA
字號:
/* *    This program is free software; you can redistribute it and/or modify *    it under the terms of the GNU General Public License as published by *    the Free Software Foundation; either version 2 of the License, or *    (at your option) any later version. * *    This program is distributed in the hope that it will be useful, *    but WITHOUT ANY WARRANTY; without even the implied warranty of *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *    GNU General Public License for more details. * *    You should have received a copy of the GNU General Public License *    along with this program; if not, write to the Free Software *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *//* *    PolyKernel.java *    Copyright (C) 1999 Eibe Frank * */package weka.classifiers.functions.supportVector;import weka.core.Capabilities;import weka.core.Instance;import weka.core.Instances;import weka.core.Option;import weka.core.Utils;import weka.core.Capabilities.Capability;import java.util.Enumeration;import java.util.Vector;/** <!-- globalinfo-start --> * The polynomial kernel : K(x, y) = &lt;x, y&gt;^p or K(x, y) = (&lt;x, y&gt;+1)^p * <p/> <!-- globalinfo-end --> *  <!-- 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> -C &lt;num&gt; *  The size of the cache (a prime number). *  (default: 250007)</pre> *  * <pre> -E &lt;num&gt; *  The Exponent to use. *  (default: 1.0)</pre> *  * <pre> -L *  Use lower-order terms. *  (default: no)</pre> *  <!-- options-end --> * * @author Eibe Frank (eibe@cs.waikato.ac.nz) * @author Shane Legg (shane@intelligenesis.net) (sparse vector code) * @author Stuart Inglis (stuart@reeltwo.com) (sparse vector code) * @version $Revision: 1.5 $ */public class PolyKernel   extends CachedKernel {  /** for serialization */  static final long serialVersionUID = -321831645846363201L;    /** Use lower-order terms? */  protected boolean m_lowerOrder = false;  /** The exponent for the polynomial kernel. */  protected double m_exponent = 1.0;  /**   * default constructor - does nothing.   */  public PolyKernel() {    super();  }    /**   * Creates a new <code>PolyKernel</code> instance.   *    * @param data	the training dataset used.   * @param cacheSize	the size of the cache (a prime number)   * @param exponent	the exponent to use   * @param lowerOrder	whether to use lower-order terms   * @throws Exception	if something goes wrong   */  public PolyKernel(Instances data, int cacheSize, double exponent,		    boolean lowerOrder) throws Exception {		    super();        setCacheSize(cacheSize);    setExponent(exponent);    setUseLowerOrder(lowerOrder);    buildKernel(data);  }    /**   * Returns a string describing the kernel   *    * @return a description suitable for displaying in the   *         explorer/experimenter gui   */  public String globalInfo() {    return         "The polynomial kernel : K(x, y) = <x, y>^p or K(x, y) = (<x, y>+1)^p";  }    /**   * Returns an enumeration describing the available options.   *   * @return 		an enumeration of all the available options.   */  public Enumeration listOptions() {    Vector		result;    Enumeration		en;        result = new Vector();    en = super.listOptions();    while (en.hasMoreElements())      result.addElement(en.nextElement());    result.addElement(new Option(	"\tThe Exponent to use.\n"	+ "\t(default: 1.0)",	"E", 1, "-E <num>"));    result.addElement(new Option(	"\tUse lower-order terms.\n"	+ "\t(default: no)",	"L", 0, "-L"));    return result.elements();  }  /**   * 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> -C &lt;num&gt;   *  The size of the cache (a prime number).   *  (default: 250007)</pre>   *    * <pre> -E &lt;num&gt;   *  The Exponent to use.   *  (default: 1.0)</pre>   *    * <pre> -L   *  Use lower-order terms.   *  (default: no)</pre>   *    <!-- options-end -->   *    * @param options 	the list of options as an array of strings   * @throws Exception 	if an option is not supported   */  public void setOptions(String[] options) throws Exception {    String	tmpStr;        tmpStr = Utils.getOption('E', options);    if (tmpStr.length() != 0)      setExponent(Double.parseDouble(tmpStr));    else      setExponent(1.0);    setUseLowerOrder(Utils.getFlag('L', options));        super.setOptions(options);  }  /**   * Gets the current settings of the Kernel.   *   * @return an array of strings suitable for passing to setOptions   */  public String[] getOptions() {    int       i;    Vector    result;    String[]  options;    result = new Vector();    options = super.getOptions();    for (i = 0; i < options.length; i++)      result.add(options[i]);    result.add("-E");    result.add("" + getExponent());    if (getUseLowerOrder())      result.add("-L");    return (String[]) result.toArray(new String[result.size()]);	    }  /**   *    * @param id1   	the index of instance 1   * @param id2		the index of instance 2   * @param inst1	the instance 1 object   * @return 		the dot product   * @throws Exception 	if something goes wrong   */  protected double evaluate(int id1, int id2, Instance inst1)    throws Exception {		    double result;    if (id1 == id2) {      result = dotProd(inst1, inst1);    } else {      result = dotProd(inst1, m_data.instance(id2));    }    // Use lower order terms?    if (m_lowerOrder) {      result += 1.0;    }    if (m_exponent != 1.0) {      result = Math.pow(result, m_exponent);    }    return result;  }  /**    * Returns the Capabilities of this kernel.   *   * @return            the capabilities of this object   * @see               Capabilities   */  public Capabilities getCapabilities() {    Capabilities result = super.getCapabilities();        result.enable(Capability.NUMERIC_ATTRIBUTES);    result.enableAllClasses();        return result;  }    /**   * Sets the exponent value.   *    * @param value	the exponent value   */  public void setExponent(double value) {    m_exponent = value;  }    /**   * Gets the exponent value.   *    * @return		the exponent value   */  public double getExponent() {    return m_exponent;  }  /**   * Returns the tip text for this property   *    * @return 		tip text for this property suitable for   * 			displaying in the explorer/experimenter gui   */  public String exponentTipText() {    return "The exponent value.";  }    /**   * Sets whether to use lower-order terms.   *    * @param value	true if lower-order terms will be used   */  public void setUseLowerOrder(boolean value) {    m_lowerOrder = value;  }    /**   * Gets whether lower-order terms are used.   *    * @return		true if lower-order terms are used   */  public boolean getUseLowerOrder() {    return m_lowerOrder;  }  /**   * Returns the tip text for this property   *    * @return 		tip text for this property suitable for   * 			displaying in the explorer/experimenter gui   */  public String useLowerOrderTipText() {    return "Whether to use lower-order terms.";  }    /**   * returns a string representation for the Kernel   *    * @return 		a string representaiton of the kernel   */  public String toString() {    String	result;        if (getExponent() == 1.0) {      result = "Linear Kernel: K(x,y) = <x,y>";    }    else {      if (getUseLowerOrder())	result = "Poly Kernel with lower order: K(x,y) = (<x,y> + 1)^" + getExponent();      else	result = "Poly Kernel: K(x,y) = <x,y>^" + getExponent();    }        return result;  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人亚洲精品狼色在线| 在线观看亚洲a| 色婷婷狠狠综合| 欧美一级精品大片| 亚洲精品五月天| 高清在线观看日韩| 日韩写真欧美这视频| 一区二区在线看| 成人免费毛片嘿嘿连载视频| 欧美成人精品3d动漫h| 亚洲最新视频在线播放| 成人av在线一区二区| 26uuu色噜噜精品一区| 日韩成人精品在线| 欧美亚洲动漫制服丝袜| 亚洲欧洲日韩女同| 成人免费精品视频| 亚洲国产精品99久久久久久久久| 久久国产日韩欧美精品| 欧美精品日日鲁夜夜添| 亚洲制服丝袜av| 91福利区一区二区三区| 亚洲裸体xxx| 91浏览器打开| 亚洲欧美视频在线观看视频| 成av人片一区二区| 国产精品热久久久久夜色精品三区 | 欧美日韩在线亚洲一区蜜芽| 国产精品私人影院| 不卡电影一区二区三区| 日本一区二区三区四区| 国产一区视频在线看| 日韩欧美成人一区二区| 六月丁香综合在线视频| 日韩欧美国产一区二区在线播放| 五月婷婷欧美视频| 欧美一区二视频| 青青草国产成人av片免费| 欧美一区二区视频网站| 秋霞电影网一区二区| 欧美第一区第二区| 国产在线观看免费一区| 久久久久久久性| av电影天堂一区二区在线| 国产精品不卡在线观看| 97se亚洲国产综合自在线 | 亚洲一区二区三区爽爽爽爽爽| 一本久久综合亚洲鲁鲁五月天 | 精品国产凹凸成av人网站| 麻豆91免费观看| 精品毛片乱码1区2区3区| 精品在线你懂的| 欧美国产激情一区二区三区蜜月| 成人美女在线观看| 亚洲一区在线电影| 日韩欧美国产一区二区三区 | 午夜精品福利久久久| 欧美久久婷婷综合色| 免费一级欧美片在线观看| xf在线a精品一区二区视频网站| 成人免费视频国产在线观看| 夜夜嗨av一区二区三区中文字幕 | 成人亚洲一区二区一| 亚洲激情av在线| 日韩一区二区三| 成人看片黄a免费看在线| 亚洲精品中文在线| 欧美成人精品1314www| 成人网在线播放| 婷婷激情综合网| 国产精品丝袜一区| 日韩免费看的电影| 99久久er热在这里只有精品66| 一级做a爱片久久| 国产亚洲制服色| 欧美无砖专区一中文字| 久久99精品网久久| 一区二区欧美在线观看| 精品国产一区二区三区四区四 | 国产精品卡一卡二卡三| 欧美精品亚洲一区二区在线播放| 国产精华液一区二区三区| 亚洲一二三四久久| 中文字幕不卡在线播放| 欧美乱妇一区二区三区不卡视频 | 久久精品国产一区二区| 玉米视频成人免费看| 中文字幕不卡一区| 精品剧情v国产在线观看在线| 欧洲一区二区av| 成人三级伦理片| 国产精品亚洲成人| 日本三级韩国三级欧美三级| 亚洲人成小说网站色在线| 久久精品亚洲精品国产欧美| 欧美久久一二区| 欧美日韩黄色一区二区| 色综合天天综合网国产成人综合天| 国产一区二区三区av电影| 日韩国产在线观看一区| 亚洲成人av免费| 亚洲国产一区在线观看| 国产精品国产三级国产aⅴ入口| 欧美精品一区二区三区久久久| 4438x亚洲最大成人网| 色婷婷国产精品综合在线观看| 成人久久久精品乱码一区二区三区 | 成人av在线网| 成人h动漫精品| 99久久99久久精品国产片果冻| 国产91精品入口| 成人永久免费视频| 成人开心网精品视频| 成人激情小说乱人伦| 国产成人小视频| 成人av在线网| 91久久免费观看| 欧美色中文字幕| 欧美日韩高清不卡| 91精品国产一区二区三区| 欧美一区二区三区在线看| 日韩欧美国产一区二区三区| 欧美一级xxx| 亚洲精品一区二区在线观看| 久久综合久久综合久久| 国产网站一区二区| 中文字幕一区二区在线播放| 中文字幕一区日韩精品欧美| 亚洲精品综合在线| 亚洲大片精品永久免费| 日本欧美久久久久免费播放网| 蜜桃视频免费观看一区| 精品影视av免费| 成人免费va视频| 欧美久久久久久久久| 精品对白一区国产伦| 欧美激情一区三区| 亚洲小少妇裸体bbw| 美女视频第一区二区三区免费观看网站| 久久66热re国产| 91日韩一区二区三区| 欧美日韩中文一区| 国产亚洲精品超碰| 亚洲人成网站在线| 六月丁香婷婷色狠狠久久| 成人综合日日夜夜| 欧美日韩成人综合| 久久精品欧美一区二区三区不卡 | 久久久久国产精品人| 亚洲视频一区二区在线| 日本vs亚洲vs韩国一区三区二区 | 欧美一区二区久久| 欧美高清在线一区二区| 亚洲成av人片一区二区| 国产·精品毛片| 欧美三级电影一区| 久久久久久久久99精品| 性做久久久久久免费观看欧美| 国产精品99久久久久久久女警| 欧美日精品一区视频| 日本一区二区三区视频视频| 性久久久久久久久| 99久久伊人久久99| 日韩精品一区二| 一区二区三区av电影 | 欧美日韩一级二级三级| 久久九九全国免费| 日韩精品一卡二卡三卡四卡无卡| 成人性生交大片免费看视频在线 | 美女视频一区在线观看| 在线观看日产精品| 中文字幕av不卡| 国产一区二区在线影院| 欧美日韩国产综合一区二区| 中文字幕欧美日韩一区| 久久精品久久久精品美女| 色www精品视频在线观看| 国产女主播一区| 国产真实精品久久二三区| 欧美精品精品一区| 亚洲午夜在线视频| 91丨九色丨蝌蚪富婆spa| 国产婷婷一区二区| 国产真实精品久久二三区| 欧美日本一道本| 亚洲最大成人综合| 91看片淫黄大片一级在线观看| 久久影音资源网| 久久爱www久久做| 日韩欧美国产一区二区在线播放 | 国产成人免费视频| 久久综合成人精品亚洲另类欧美| 日本成人中文字幕| 91麻豆精品国产综合久久久久久| 亚洲自拍欧美精品| 欧美年轻男男videosbes| 亚洲午夜视频在线观看| 欧洲一区在线观看| 亚洲成人1区2区| 日韩一区二区在线观看视频播放|