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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? polykernel.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. *//* *    PolyKernel.java *    Copyright (C) 1999 University of Waikato, Hamilton, New Zealand * */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.7 $ */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();    result.enable(Capability.MISSING_CLASS_VALUES);        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;  }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产三区在线成人av| 欧美精品一区男女天堂| 国产自产视频一区二区三区| 亚洲精品国产精品乱码不99 | 中文字幕免费一区| 5858s免费视频成人| 91美女在线观看| 国产精品亚洲成人| 日韩黄色小视频| 有码一区二区三区| 中文字幕免费不卡| 久久夜色精品国产欧美乱极品| 在线视频中文字幕一区二区| 成人av资源在线| 国产精品18久久久| 韩国午夜理伦三级不卡影院| 香蕉久久夜色精品国产使用方法| 国产精品成人在线观看| 久久久久久久久岛国免费| 欧美一区二区成人| 欧美丝袜自拍制服另类| 97久久超碰精品国产| 懂色av中文字幕一区二区三区| 另类小说综合欧美亚洲| 亚洲国产精品久久艾草纯爱| 一区二区三区四区在线免费观看 | 国产亚洲综合性久久久影院| 欧美一二三区在线观看| 欧美精品免费视频| 欧美老女人第四色| 欧美视频第二页| 在线观看91视频| 91福利在线免费观看| 色综合视频在线观看| www.性欧美| aaa亚洲精品| 91最新地址在线播放| 91视视频在线观看入口直接观看www| 国产精品一区二区在线观看网站| 韩国欧美国产1区| 国产在线麻豆精品观看| 国产一区 二区 三区一级| 激情综合色丁香一区二区| 久久精品免费观看| 激情av综合网| 国产91精品露脸国语对白| 成人毛片在线观看| 99精品一区二区| 色一区在线观看| 在线亚洲一区观看| 欧美日韩不卡在线| 日韩欧美中文字幕制服| 精品久久久三级丝袜| wwww国产精品欧美| 国产精品午夜电影| 亚洲大片在线观看| 午夜私人影院久久久久| 奇米综合一区二区三区精品视频| 久久99精品久久久久久久久久久久| 经典三级视频一区| 成人黄色网址在线观看| 日本韩国欧美一区| 制服视频三区第一页精品| 欧美成人精品1314www| 国产亚洲综合av| 成人免费在线观看入口| 亚洲一区二区在线免费看| 婷婷开心激情综合| 久久99国产精品麻豆| 成人综合在线网站| 欧美在线视频不卡| 精品噜噜噜噜久久久久久久久试看| 国产午夜亚洲精品理论片色戒| 综合婷婷亚洲小说| 天天综合天天做天天综合| 国内精品在线播放| 色哟哟一区二区在线观看| 日韩欧美在线1卡| 国产精品久久久久影视| 午夜精品久久久久久久久久久| 精品在线一区二区三区| 99精品视频中文字幕| 欧美电影一区二区| 亚洲国产高清在线| 午夜免费欧美电影| 成人av网站在线观看| 欧美人与禽zozo性伦| 欧美激情中文字幕| 三级一区在线视频先锋| 成人动漫一区二区三区| 91精品欧美福利在线观看| 国产精品美女久久久久久久 | 欧美成人a∨高清免费观看| 欧美国产综合一区二区| 青青国产91久久久久久| 色先锋久久av资源部| 26uuu国产电影一区二区| 亚洲卡通欧美制服中文| 国产一区二区三区高清播放| 欧洲日韩一区二区三区| 亚洲国产精品传媒在线观看| 蜜桃一区二区三区四区| 日本韩国欧美一区| 国产精品久久久久久久午夜片| 蜜桃免费网站一区二区三区| 一本一本大道香蕉久在线精品| www激情久久| 麻豆精品精品国产自在97香蕉| 91国偷自产一区二区开放时间| 国产欧美日本一区视频| 成人污视频在线观看| 精品三级在线看| 天天色天天操综合| 日本精品一区二区三区高清 | 一区二区久久久久| 国产成人av电影在线观看| 欧美一区欧美二区| 亚洲影院久久精品| 91小视频免费看| 欧美国产日韩一二三区| 寂寞少妇一区二区三区| 欧美一级二级在线观看| 亚洲福利视频一区二区| 色婷婷精品久久二区二区蜜臀av | 亚洲免费av网站| 成人久久久精品乱码一区二区三区| 日韩欧美国产成人一区二区| 日韩一区精品视频| 欧美久久久久久久久中文字幕| 亚洲最色的网站| 在线视频亚洲一区| 亚洲在线观看免费视频| 欧洲精品一区二区| 亚洲成人激情av| 717成人午夜免费福利电影| 亚洲成人av一区二区| 欧美色成人综合| 天天做天天摸天天爽国产一区| 欧美色手机在线观看| 亚洲一区中文在线| 欧美日韩美女一区二区| 天天综合网天天综合色| 欧美一级在线免费| 蜜桃视频一区二区三区在线观看 | 一区二区三区免费网站| 91蜜桃在线观看| 亚洲国产wwwccc36天堂| 宅男在线国产精品| 精品一区二区免费| 国产人成一区二区三区影院| eeuss鲁片一区二区三区在线看| 国产精品久久777777| 色哟哟欧美精品| 日韩精品国产欧美| 精品成人私密视频| 日本高清无吗v一区| 亚洲国产视频网站| 欧美一级欧美三级在线观看| 狠狠色丁香婷综合久久| 中文字幕欧美日本乱码一线二线| 91欧美一区二区| 视频一区二区三区在线| 欧美精品一区男女天堂| www.成人在线| 石原莉奈在线亚洲三区| 久久久久国产成人精品亚洲午夜| av综合在线播放| 香蕉影视欧美成人| 久久久影院官网| 欧美影片第一页| 美女久久久精品| 国产精品久久久久毛片软件| 欧美伦理影视网| 国产91丝袜在线播放九色| 一区二区三区小说| 精品国产青草久久久久福利| 99久久免费视频.com| 日韩不卡一区二区三区| 国产色婷婷亚洲99精品小说| 精品视频一区二区不卡| 国产一区二区三区久久悠悠色av| 亚洲精品自拍动漫在线| 欧美v日韩v国产v| 色噜噜狠狠成人网p站| 精品在线亚洲视频| 亚洲午夜久久久久久久久电影网| 精品国产精品网麻豆系列| 色狠狠av一区二区三区| 国产伦精品一区二区三区免费| 一区二区成人在线视频| 久久先锋影音av鲁色资源| 欧美唯美清纯偷拍| 成人免费视频网站在线观看| 免费高清视频精品| 一区二区三区视频在线观看| 2021中文字幕一区亚洲| 欧美性生活久久| kk眼镜猥琐国模调教系列一区二区| 日韩中文字幕91| 亚洲尤物视频在线|