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

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

?? rbfkernel.java

?? Weka
?? 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. *//* *    RBFKernel.java *    Copyright (C) 1999 University of Waikato, Hamilton, New Zealand *    Copyright (C) 2005 J. Lindgren * */package weka.classifiers.functions.supportVector;import weka.core.Capabilities;import weka.core.Capabilities.Capability;import weka.core.Instance;import weka.core.Instances;import weka.core.Option;import weka.core.Utils;import java.util.Enumeration;import java.util.Vector;/** <!-- globalinfo-start --> * The RBF kernel. K(x, y) = e^-(gamma * &lt;x-y, x-y&gt;^2) * <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> -G &lt;num&gt; *  The Gamma parameter. *  (default: 0.01)</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) * @author J. Lindgren (jtlindgr{at}cs.helsinki.fi) (RBF kernel) * @version $Revision: 1.9 $ */public class RBFKernel   extends CachedKernel {    /** for serialization */  static final long serialVersionUID = 5247117544316387852L;  /** The precalculated dotproducts of &lt;inst_i,inst_i&gt; */  protected double m_kernelPrecalc[];  /** Gamma for the RBF kernel. */  protected double m_gamma = 0.01;  /**   * default constructor - does nothing.   */  public RBFKernel() {    super();  }    /**   * Constructor. Initializes m_kernelPrecalc[].   *    * @param data	the data to use   * @param cacheSize	the size of the cache   * @param gamma	the bandwidth   * @throws Exception	if something goes wrong   */  public RBFKernel(Instances data, int cacheSize, double gamma)    throws Exception {    super();        setCacheSize(cacheSize);    setGamma(gamma);        buildKernel(data);  }    /**   * Returns a string describing the kernel   *    * @return a description suitable for displaying in the   *         explorer/experimenter gui   */  public String globalInfo() {    return         "The RBF kernel. K(x, y) = e^-(gamma * <x-y, x-y>^2)";  }    /**   * 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 Gamma parameter.\n"	+ "\t(default: 0.01)",	"G", 1, "-G <num>"));    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> -G &lt;num&gt;   *  The Gamma parameter.   *  (default: 0.01)</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('G', options);    if (tmpStr.length() != 0)      setGamma(Double.parseDouble(tmpStr));    else      setGamma(0.01);        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("-G");    result.add("" + getGamma());    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 {    if (id1 == id2) {      return 1.0;    } else {      double precalc1;      if (id1 == -1)        precalc1 = dotProd(inst1, inst1);      else        precalc1 = m_kernelPrecalc[id1];      Instance inst2 = m_data.instance(id2);      double result = Math.exp(m_gamma  			     * (2. * dotProd(inst1, inst2) - precalc1 - m_kernelPrecalc[id2]));            return result;    }  }      /**   * Sets the gamma value.   *    * @param value	the gamma value   */  public void setGamma(double value) {    m_gamma = value;  }    /**   * Gets the gamma value.   *    * @return		the gamma value   */  public double getGamma() {    return m_gamma;  }  /**   * Returns the tip text for this property   *    * @return 		tip text for this property suitable for   * 			displaying in the explorer/experimenter gui   */  public String gammaTipText() {    return "The Gamma value.";  }  /**   * initializes variables etc.   *    * @param data	the data to use   */  protected void initVars(Instances data) {    super.initVars(data);        m_kernelPrecalc = new double[data.numInstances()];  }  /**    * 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();    result.enable(Capability.MISSING_CLASS_VALUES);        return result;  }    /**   * builds the kernel with the given data. Initializes the kernel cache.    * The actual size of the cache in bytes is (64 * cacheSize).   *    * @param data	the data to base the kernel on   * @throws Exception	if something goes wrong   */  public void buildKernel(Instances data) throws Exception {    // does kernel handle the data?    if (!getChecksTurnedOff())      getCapabilities().testWithFail(data);        initVars(data);        for (int i = 0; i < data.numInstances(); i++)      m_kernelPrecalc[i] = dotProd(data.instance(i), data.instance(i));  }    /**   * returns a string representation for the Kernel   *    * @return 		a string representaiton of the kernel   */  public String toString() {    return "RBF kernel: K(x,y) = e^-(" + getGamma() + "* <x-y,x-y>^2)";  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品妹子av| 在线电影院国产精品| 国产色综合一区| 国产成人午夜视频| 国产视频一区二区在线| 成人午夜短视频| 亚洲视频一区二区在线观看| 在线亚洲精品福利网址导航| 亚洲成人激情自拍| 欧美大片一区二区| 国产成人久久精品77777最新版本| 久久久国际精品| 91在线视频观看| 五月综合激情日本mⅴ| 日韩你懂的在线观看| 成人黄页毛片网站| 一区二区三区在线不卡| 欧美一激情一区二区三区| 国产成人夜色高潮福利影视| 亚洲与欧洲av电影| 久久久久久久久久美女| 色综合久久88色综合天天免费| 亚洲www啪成人一区二区麻豆| 精品国产一区二区三区四区四| 成人精品高清在线| 天堂在线亚洲视频| 国产欧美在线观看一区| 色综合 综合色| 韩国av一区二区三区在线观看| 自拍av一区二区三区| 欧美精品一区二区三区高清aⅴ| 91社区在线播放| 久久草av在线| 亚洲人吸女人奶水| 精品国产乱码久久久久久1区2区| 99re视频这里只有精品| 精品亚洲aⅴ乱码一区二区三区| 亚洲精品免费电影| 久久久久久久久久久久电影| 欧美精品1区2区3区| 99re这里都是精品| 国产白丝精品91爽爽久久| 亚洲高清在线视频| 中文字幕亚洲不卡| 日韩一二三区视频| 欧美日韩在线播放| 97se亚洲国产综合在线| 国产精品资源在线看| 蜜桃视频一区二区三区| 亚洲国产裸拍裸体视频在线观看乱了 | 精品国产乱码久久久久久夜甘婷婷| 91老师国产黑色丝袜在线| 国产美女视频一区| 免费成人你懂的| 日本伊人午夜精品| 亚洲一区影音先锋| 玉米视频成人免费看| 国产精品不卡在线| 国产喂奶挤奶一区二区三区| 久久众筹精品私拍模特| 欧美久久久久久久久中文字幕| 色综合视频在线观看| 成人精品gif动图一区| 国产激情一区二区三区四区| 精品一区二区三区视频 | 蜜臂av日日欢夜夜爽一区| 亚洲少妇中出一区| 国产精品国产精品国产专区不蜜| 国产清纯白嫩初高生在线观看91| 欧美变态tickling挠脚心| 91精品国产91久久综合桃花| 欧美日韩一区视频| 8x福利精品第一导航| 欧美日韩国产小视频在线观看| 欧美亚洲动漫精品| 欧美日韩精品免费| 91精品国产91热久久久做人人| 69成人精品免费视频| 欧美一级在线观看| 欧美电影免费观看高清完整版在 | 国产三级欧美三级日产三级99| 精品国免费一区二区三区| 欧美一个色资源| 精品剧情v国产在线观看在线| 欧美一区二区三区在线视频 | 欧美亚洲日本国产| 精品视频在线免费观看| 欧美老肥妇做.爰bbww| 欧美久久久久久久久久| 日韩视频一区二区在线观看| 精品国产在天天线2019| 国产欧美一区二区精品性| 国产精品久久久久久久久动漫 | 极品瑜伽女神91| 国产自产2019最新不卡| 国产福利不卡视频| 91美女片黄在线观看91美女| 欧美日本在线观看| 精品久久久久久久久久久久久久久 | 成人av在线电影| 色婷婷综合五月| 7777精品久久久大香线蕉| 精品免费日韩av| 亚洲三级在线免费| 爽好多水快深点欧美视频| 激情成人午夜视频| 99精品视频中文字幕| 欧美日韩免费高清一区色橹橹| 日韩一区二区免费在线电影| 国产三级精品视频| 一区二区成人在线视频 | 国产欧美一二三区| 一区二区三区不卡视频| 美国十次了思思久久精品导航| 国产福利一区在线| 欧美日韩一二三区| 久久久久久久久久久黄色| 亚洲综合久久av| 韩国一区二区三区| 在线日韩av片| 日本一区二区三区dvd视频在线| 亚洲精品欧美激情| 国产一区视频在线看| 欧美色综合网站| 国产日韩视频一区二区三区| 一区二区三区欧美日| 精品亚洲成a人| 欧美自拍偷拍一区| 国产精品午夜在线观看| 首页亚洲欧美制服丝腿| av午夜精品一区二区三区| 欧美一卡二卡三卡四卡| 亚洲色欲色欲www| 国产高清成人在线| 日韩欧美成人一区二区| 亚洲激情图片qvod| 国产成人8x视频一区二区| 欧美精品乱人伦久久久久久| 最近日韩中文字幕| 韩国精品主播一区二区在线观看 | 精品捆绑美女sm三区| 亚洲综合丝袜美腿| 成人精品视频一区二区三区尤物| 欧美一区二区三区公司| 中文字幕一区视频| 国产69精品久久久久777| 精品少妇一区二区三区视频免付费 | 6080午夜不卡| 一区二区三区四区在线播放 | 3atv一区二区三区| 亚洲精品成人在线| 色综合一个色综合亚洲| 久久欧美中文字幕| 日韩av高清在线观看| 欧美三级在线播放| 亚洲一区二区欧美激情| 91高清在线观看| 亚洲免费电影在线| 色丁香久综合在线久综合在线观看| 国产日韩欧美一区二区三区乱码| 精品亚洲免费视频| 精品av久久707| 狠狠狠色丁香婷婷综合久久五月| 日韩三级在线免费观看| 久久精品噜噜噜成人av农村| 欧美一区二区三区性视频| 免费av成人在线| 777xxx欧美| 久久精品国产亚洲a| 精品国产亚洲在线| 国产在线观看一区二区| 久久久久久久久久久久久久久99 | 粉嫩在线一区二区三区视频| 久久美女高清视频| 国产乱妇无码大片在线观看| 国产精品天干天干在线综合| 成人一级片网址| 中文字幕在线一区二区三区| 91在线精品一区二区三区| 亚洲欧美自拍偷拍色图| 色婷婷香蕉在线一区二区| 一区二区三区蜜桃| 欧美三级一区二区| 美腿丝袜一区二区三区| 久久精品亚洲乱码伦伦中文 | 日本久久电影网| 亚洲第四色夜色| 欧美成人性福生活免费看| 国产黄色精品视频| 亚洲黄色免费网站| 日韩三级视频在线看| 国产河南妇女毛片精品久久久 | 国产亚洲精品aa午夜观看| 成人免费视频一区| 一区二区三区美女视频| 制服丝袜日韩国产| 国产一区二区精品在线观看| 亚洲色图清纯唯美| 欧美一二三四区在线| 国产成+人+日韩+欧美+亚洲|