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

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

?? puk.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. *//* *    Puk.java *    Copyright (C) 2007 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.TechnicalInformation;import weka.core.TechnicalInformationHandler;import weka.core.Utils;import weka.core.Capabilities.Capability;import weka.core.TechnicalInformation.Field;import weka.core.TechnicalInformation.Type;import java.util.Enumeration;import java.util.Vector;/** <!-- globalinfo-start --> * The Pearson VII function-based universal kernel.<br/> * <br/> * For more information see:<br/> * <br/> * B. Uestuen, W.J. Melssen, L.M.C. Buydens (2006). Facilitating the application of Support Vector Regression by using a universal Pearson VII function based kernel. Chemometrics and Intelligent Laboratory Systems. 81:29-40. * <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), 0 for full cache and  *  -1 to turn it off. *  (default: 250007)</pre> *  * <pre> -O &lt;num&gt; *  The Omega parameter. *  (default: 1.0)</pre> *  * <pre> -S &lt;num&gt; *  The Sigma parameter. *  (default: 1.0)</pre> *  <!-- options-end --> * * @author Bernhard Pfahringer (bernhard@cs.waikato.ac.nz) * @version $Revision: 1.3 $ */public class Puk   extends CachedKernel  implements TechnicalInformationHandler {    /** for serialization */  private static final long serialVersionUID = 1682161522559978851L;  /** The precalculated dotproducts of &lt;inst_i,inst_i&gt; */  protected double m_kernelPrecalc[];  /** Omega for the Puk kernel. */  protected double m_omega = 1.0;  /** Sigma for the Puk kernel. */  protected double m_sigma = 1.0;  /** Cached factor for the Puk kernel. */  protected double m_factor = 1.0;  /**   * default constructor - does nothing.   */  public Puk() {    super();  }    /**   * Constructor. Initializes m_kernelPrecalc[].   *    * @param data	the data to use   * @param cacheSize	the size of the cache   * @param omega	the exponent   * @param sigma	the bandwidth   * @throws Exception	if something goes wrong   */  public Puk(Instances data, int cacheSize, double omega, double sigma)    throws Exception {    super();        setCacheSize(cacheSize);    setOmega(omega);    setSigma(sigma);        buildKernel(data);  }    /**   * Returns a string describing the kernel   *    * @return a description suitable for displaying in the   *         explorer/experimenter gui   */  public String globalInfo() {    return         "The Pearson VII function-based universal kernel.\n\n"      + "For more information see:\n\n"      + getTechnicalInformation().toString();  }  /**   * 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.   *    * @return the technical information about this class   */  public TechnicalInformation getTechnicalInformation() {    TechnicalInformation 	result;        result = new TechnicalInformation(Type.ARTICLE);    result.setValue(Field.AUTHOR, "B. Uestuen and W.J. Melssen and L.M.C. Buydens");    result.setValue(Field.YEAR, "2006");    result.setValue(Field.TITLE, "Facilitating the application of Support Vector Regression by using a universal Pearson VII function based kernel");    result.setValue(Field.JOURNAL, "Chemometrics and Intelligent Laboratory Systems");    result.setValue(Field.VOLUME, "81");    result.setValue(Field.PAGES, "29-40");    result.setValue(Field.PDF, "http://www.cac.science.ru.nl/research/publications/PDFs/ustun2006.pdf");    return result;  }    /**   * 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 Omega parameter.\n"	+ "\t(default: 1.0)",	"O", 1, "-O <num>"));    result.addElement(new Option(	"\tThe Sigma parameter.\n"	+ "\t(default: 1.0)",	"S", 1, "-S <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), 0 for full cache and    *  -1 to turn it off.   *  (default: 250007)</pre>   *    * <pre> -O &lt;num&gt;   *  The Omega parameter.   *  (default: 1.0)</pre>   *    * <pre> -S &lt;num&gt;   *  The Sigma parameter.   *  (default: 1.0)</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('O', options);    if (tmpStr.length() != 0)      setOmega(Double.parseDouble(tmpStr));    else      setOmega(1.0);        tmpStr = Utils.getOption('S', options);    if (tmpStr.length() != 0)      setSigma(Double.parseDouble(tmpStr));    else      setSigma(1.0);        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("-O");    result.add("" + getOmega());    result.add("-S");    result.add("" + getSigma());    return (String[]) result.toArray(new String[result.size()]);	    }  /**   * returns the dot product   *    * @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 squaredDifference = -2.0 * dotProd(inst1, inst2) + precalc1 + m_kernelPrecalc[id2];      double intermediate = m_factor * Math.sqrt(squaredDifference);      double result = 1.0 / Math.pow(1.0 + intermediate * intermediate, getOmega());      return result;    }  }      /**   * Sets the omega value.   *    * @param value	the omega value   */  public void setOmega(double value) {    m_omega  = value;    m_factor = computeFactor(m_omega, m_sigma);  }    /**   * Gets the omega value.   *    * @return		the omega value   */  public double getOmega() {    return m_omega;  }  /**   * Returns the tip text for this property   *    * @return 		tip text for this property suitable for   * 			displaying in the explorer/experimenter gui   */  public String omegaTipText() {    return "The Omega value.";  }  /**   * Sets the sigma value.   *    * @param value	the sigma value   */  public void setSigma(double value) {    m_sigma  = value;    m_factor = computeFactor(m_omega, m_sigma);  }    /**   * Gets the sigma value.   *    * @return		the sigma value   */  public double getSigma() {    return m_sigma;  }  /**   * Returns the tip text for this property   *    * @return 		tip text for this property suitable for   * 			displaying in the explorer/experimenter gui   */  public String sigmaTipText() {    return "The Sigma value.";  }  /**   * computes the factor for curve-fitting (see equation (13) in paper)   *    * @param omega	the omega to use   * @param sigma	the sigma to use   * @return		the factor for curve-fitting   */  protected double computeFactor(double omega, double sigma) {    double root = Math.sqrt(Math.pow(2.0, 1.0 / omega) - 1);    return 2.0 * root / sigma;  }  /**   * initializes variables etc.   *    * @param data	the data to use   */  protected void initVars(Instances data) {    super.initVars(data);        m_factor        = computeFactor(m_omega, m_sigma);    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 "Puk kernel";  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国内精品视频| 亚洲成人精品在线观看| 精品久久久久久久人人人人传媒| 91一区二区三区在线观看| 国产精品18久久久久| 韩日av一区二区| 精品一区二区三区影院在线午夜| 久久精品国产在热久久| 麻豆一区二区99久久久久| 强制捆绑调教一区二区| 久久国产视频网| 国产乱码一区二区三区| 成人午夜精品一区二区三区| 成人黄色大片在线观看| 91免费观看在线| 在线亚洲欧美专区二区| 91精品国产日韩91久久久久久| 69久久夜色精品国产69蝌蚪网| 日韩欧美国产综合一区| 精品国产区一区| 欧美激情一区二区三区全黄| 亚洲免费高清视频在线| 亚洲1区2区3区4区| 美国欧美日韩国产在线播放| 国产在线国偷精品免费看| 成人激情黄色小说| 欧美影片第一页| 欧美成人欧美edvon| 亚洲特级片在线| 久久精品99久久久| 99精品欧美一区| 欧美成人猛片aaaaaaa| 中文字幕一区二| 久久国产精品露脸对白| 色综合激情久久| 久久亚洲精品小早川怜子| 亚洲精品高清在线| 激情亚洲综合在线| 日本丶国产丶欧美色综合| 日韩欧美在线综合网| 一色桃子久久精品亚洲| 美女在线观看视频一区二区| av激情成人网| 精品欧美一区二区在线观看| 亚洲免费在线视频| 国产一区二区三区| 欧美人妖巨大在线| 中文字幕亚洲一区二区av在线| 日本在线观看不卡视频| 91在线免费视频观看| 精品日韩在线观看| 婷婷综合在线观看| 在线免费视频一区二区| 日本一二三四高清不卡| 国产一区二区成人久久免费影院 | 精品一区二区三区欧美| 91黄色激情网站| 国产日韩欧美综合一区| 韩国欧美国产1区| 欧美一二区视频| 亚洲已满18点击进入久久| 91蜜桃免费观看视频| 久久精品夜色噜噜亚洲aⅴ| 日韩国产精品91| 欧美日韩一区成人| 亚洲成人黄色影院| 欧美午夜片在线看| 一区二区三区免费在线观看| 99九九99九九九视频精品| 国产精品免费视频网站| 粉嫩av一区二区三区| 国产精品污污网站在线观看| 成人性色生活片| 中文字幕av一区二区三区| 成人性生交大片免费看视频在线 | 成人晚上爱看视频| 国产欧美精品区一区二区三区 | 欧美激情在线一区二区| 成人丝袜视频网| 日韩一区有码在线| 日本韩国欧美在线| 亚洲一区二区三区四区中文字幕| 在线观看视频91| 五月婷婷综合网| 日韩美女在线视频| 国产精品综合一区二区三区| 久久久不卡网国产精品一区| 丁香六月综合激情| 亚洲视频你懂的| 欧美日本免费一区二区三区| 免费成人在线网站| 欧美成人女星排行榜| 粉嫩高潮美女一区二区三区| 最新热久久免费视频| 91官网在线免费观看| 日本人妖一区二区| 国产女人aaa级久久久级| 91在线免费视频观看| 日韩av电影免费观看高清完整版 | 美腿丝袜一区二区三区| 久久女同互慰一区二区三区| 成人网男人的天堂| 天天综合网 天天综合色| 亚洲精品一区二区三区99| 99热在这里有精品免费| 亚洲mv大片欧洲mv大片精品| 精品国免费一区二区三区| 99久久99久久免费精品蜜臀| 日韩福利电影在线| 国产欧美日韩另类一区| 欧美色区777第一页| 国产一区91精品张津瑜| 一区二区三区蜜桃网| 2020国产精品自拍| 色噜噜久久综合| 国产麻豆视频一区二区| 亚洲影院在线观看| 中文字幕国产一区| 欧美一级欧美一级在线播放| 不卡一区在线观看| 久久99久久久久| 亚洲午夜久久久久| 国产精品美女久久久久av爽李琼 | 91麻豆国产福利在线观看| 欧美aaaaaa午夜精品| 亚洲黄色av一区| 国产视频一区不卡| 欧美精品久久99久久在免费线 | 精品国产乱码久久久久久老虎| 91丨国产丨九色丨pron| 国产精品伊人色| 久久精品国产一区二区| 亚洲一区二区三区四区的| 中文字幕免费观看一区| 久久午夜免费电影| 日韩一区二区影院| 欧美乱妇一区二区三区不卡视频| 色欲综合视频天天天| 国产99久久精品| 国产一区二区在线看| 日韩av一区二区在线影视| 樱花草国产18久久久久| 国产三级欧美三级日产三级99| 日韩欧美视频一区| 欧美乱妇23p| 7777精品伊人久久久大香线蕉最新版| youjizz国产精品| 成人黄色片在线观看| av成人动漫在线观看| 成人高清视频在线观看| 国产精品91一区二区| 国内精品国产成人国产三级粉色 | 夜色激情一区二区| 亚洲欧美日韩一区二区三区在线观看| 国产目拍亚洲精品99久久精品| 精品少妇一区二区三区免费观看 | aaa欧美大片| 91在线一区二区| 欧美日韩免费高清一区色橹橹| 欧美色男人天堂| 91精品在线一区二区| 日韩亚洲欧美在线| 久久丝袜美腿综合| 欧美国产激情一区二区三区蜜月| 国产精品美女视频| 亚洲资源在线观看| 日韩在线卡一卡二| 久久国产精品99久久人人澡| 国产一区二区三区在线看麻豆| 国产99久久精品| 在线观看视频一区二区欧美日韩| 欧美久久久久久久久久| 精品剧情v国产在线观看在线| 亚洲精品在线观看视频| 国产精品久久久久精k8| 亚洲精品综合在线| 亚洲成人av一区二区三区| 精品一区二区三区香蕉蜜桃| 国产成人综合自拍| 99国产精品久久久久| 日韩一区二区三区视频在线观看| 久久精品视频免费| 亚洲午夜国产一区99re久久| 日本中文字幕一区二区有限公司| 国产成人自拍高清视频在线免费播放| 91在线视频观看| 精品国产一区二区三区四区四| 国产精品家庭影院| 免费在线看成人av| 91丨porny丨户外露出| 91精品国产福利| 最新国产精品久久精品| 蜜桃久久久久久| 91麻豆国产福利精品| 精品成人在线观看| 亚洲成人你懂的| 波多野结衣一区二区三区| 日韩欧美视频在线| 亚洲精品福利视频网站| 丰满少妇在线播放bd日韩电影|