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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? plsclassifier.java

?? Weka
?? JAVA
字號(hào):
/* *    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. *//* * PLSClassifier.java * Copyright (C) 2006 University of Waikato, Hamilton, New Zealand */package weka.classifiers.functions;import weka.classifiers.Classifier;import weka.core.Capabilities;import weka.core.Instance;import weka.core.Instances;import weka.core.Option;import weka.core.OptionHandler;import weka.core.Utils;import weka.core.Capabilities.Capability;import weka.filters.Filter;import weka.filters.supervised.attribute.PLSFilter;import java.util.Enumeration;import java.util.Vector;/** <!-- globalinfo-start --> * A wrapper classifier for the PLSFilter, utilizing the PLSFilter's ability to perform predictions. * <p/> <!-- globalinfo-end --> *  <!-- options-start --> * Valid options are: <p/> *  * <pre> -filter &lt;filter specification&gt; *  The PLS filter to use. Full classname of filter to include,  followed by scheme options. *  (default: weka.filters.supervised.attribute.PLSFilter)</pre> *  * <pre> -D *  If set, classifier is run in debug mode and *  may output additional info to the console</pre> *  * <pre>  * Options specific to filter weka.filters.supervised.attribute.PLSFilter ('-filter'): * </pre> *  * <pre> -D *  Turns on output of debugging information.</pre> *  * <pre> -C &lt;num&gt; *  The number of components to compute. *  (default: 20)</pre> *  * <pre> -U *  Updates the class attribute as well. *  (default: off)</pre> *  * <pre> -M *  Turns replacing of missing values on. *  (default: off)</pre> *  * <pre> -A &lt;SIMPLS|PLS1&gt; *  The algorithm to use. *  (default: PLS1)</pre> *  * <pre> -P &lt;none|center|standardize&gt; *  The type of preprocessing that is applied to the data. *  (default: center)</pre> *  <!-- options-end --> * * @author  fracpete (fracpete at waikato dot ac dot nz) * @version $Revision: 1.3 $ */public class PLSClassifier  extends Classifier {    /** for serialization */  private static final long serialVersionUID = 4819775160590973256L;  /** the PLS filter */  protected PLSFilter m_Filter = new PLSFilter();  /** the actual filter to use */  protected PLSFilter m_ActualFilter = null;    /**   * Returns a string describing classifier   *    * @return a description suitable for displaying in the   *         explorer/experimenter gui   */  public String globalInfo() {    return         "A wrapper classifier for the PLSFilter, utilizing the PLSFilter's "      + "ability to perform predictions.";  }  /**   * Gets an enumeration describing the available options.   *   * @return an enumeration of all the available options.   */  public Enumeration listOptions(){    Vector        	result;    Enumeration   	en;    result = new Vector();    result.addElement(new Option(	"\tThe PLS filter to use. Full classname of filter to include, "	+ "\tfollowed by scheme options.\n"	+ "\t(default: weka.filters.supervised.attribute.PLSFilter)",	"filter", 1, "-filter <filter specification>"));    en = super.listOptions();    while (en.hasMoreElements())      result.addElement(en.nextElement());    if (getFilter() instanceof OptionHandler) {      result.addElement(new Option(	  "",	  "", 0, "\nOptions specific to filter "	  + getFilter().getClass().getName() + " ('-filter'):"));            en = ((OptionHandler) getFilter()).listOptions();      while (en.hasMoreElements())	result.addElement(en.nextElement());    }    return result.elements();  }    /**   * returns the options of the current setup   *   * @return		the current options   */  public String[] getOptions(){    int       	i;    Vector    	result;    String[]  	options;    result = new Vector();    result.add("-filter");    if (getFilter() instanceof OptionHandler)      result.add(  	    getFilter().getClass().getName() 	  + " " 	  + Utils.joinOptions(((OptionHandler) getFilter()).getOptions()));    else      result.add(	  getFilter().getClass().getName());    options = super.getOptions();    for (i = 0; i < options.length; i++)      result.add(options[i]);    return (String[]) result.toArray(new String[result.size()]);	    }  /**   * Parses the options for this object. <p/>   *   <!-- options-start -->   * Valid options are: <p/>   *    * <pre> -filter &lt;filter specification&gt;   *  The PLS filter to use. Full classname of filter to include,  followed by scheme options.   *  (default: weka.filters.supervised.attribute.PLSFilter)</pre>   *    * <pre> -D   *  If set, classifier is run in debug mode and   *  may output additional info to the console</pre>   *    * <pre>    * Options specific to filter weka.filters.supervised.attribute.PLSFilter ('-filter'):   * </pre>   *    * <pre> -D   *  Turns on output of debugging information.</pre>   *    * <pre> -C &lt;num&gt;   *  The number of components to compute.   *  (default: 20)</pre>   *    * <pre> -U   *  Updates the class attribute as well.   *  (default: off)</pre>   *    * <pre> -M   *  Turns replacing of missing values on.   *  (default: off)</pre>   *    * <pre> -A &lt;SIMPLS|PLS1&gt;   *  The algorithm to use.   *  (default: PLS1)</pre>   *    * <pre> -P &lt;none|center|standardize&gt;   *  The type of preprocessing that is applied to the data.   *  (default: center)</pre>   *    <!-- options-end -->   *   * @param options	the options to use   * @throws Exception	if setting of options fails   */  public void setOptions(String[] options) throws Exception {    String	tmpStr;    String[]	tmpOptions;        super.setOptions(options);        tmpStr     = Utils.getOption("filter", options);    tmpOptions = Utils.splitOptions(tmpStr);    if (tmpOptions.length != 0) {      tmpStr        = tmpOptions[0];      tmpOptions[0] = "";      setFilter((Filter) Utils.forName(Filter.class, tmpStr, tmpOptions));    }  }    /**   * Returns the tip text for this property   *    * @return 		tip text for this property suitable for   * 			displaying in the explorer/experimenter gui   */  public String filterTipText() {    return "The PLS filter to be used (only used for setup).";  }  /**   * Set the PLS filter (only used for setup).   *   * @param value	the kernel filter.   * @throws Exception	if not PLSFilter   */  public void setFilter(Filter value) throws Exception {    if (!(value instanceof PLSFilter))      throw new Exception("Filter has to be PLSFilter!");    else      m_Filter = (PLSFilter) value;  }  /**   * Get the PLS filter.   *   * @return 		the PLS filter   */  public Filter getFilter() {    return m_Filter;  }    /**   * Returns default capabilities of the classifier.   *   * @return		the capabilities of this classifier   */  public Capabilities getCapabilities() {    Capabilities result = getFilter().getCapabilities();    // class    result.enable(Capability.MISSING_CLASS_VALUES);    // other    result.setMinimumNumberInstances(1);        return result;  }  /**   * builds the classifier   *    * @param data        the training instances   * @throws Exception  if something goes wrong   */  public void buildClassifier(Instances data) throws Exception {    // can classifier handle the data?    getCapabilities().testWithFail(data);    // remove instances with missing class    data = new Instances(data);    data.deleteWithMissingClass();        // initialize filter    m_ActualFilter = (PLSFilter) Filter.makeCopy(m_Filter);    m_ActualFilter.setPerformPrediction(false);    m_ActualFilter.setInputFormat(data);    Filter.useFilter(data, m_ActualFilter);    m_ActualFilter.setPerformPrediction(true);  }  /**   * Classifies the given test instance. The instance has to belong to a   * dataset when it's being classified.   *   * @param instance 	the instance to be classified   * @return 		the predicted most likely class for the instance or    * 			Instance.missingValue() if no prediction is made   * @throws Exception 	if an error occurred during the prediction   */  public double classifyInstance(Instance instance) throws Exception {    double	result;    Instance	pred;        m_ActualFilter.input(instance);    m_ActualFilter.batchFinished();    pred   = m_ActualFilter.output();    result = pred.classValue();        return result;  }  /**   * returns a string representation of the classifier   *    * @return		a string representation of the classifier   */  public String toString() {    String	result;        result =   this.getClass().getName() + "\n"              + this.getClass().getName().replaceAll(".", "=") + "\n\n";    result += "# Components..........: " + m_Filter.getNumComponents() + "\n";    result += "Algorithm.............: " + m_Filter.getAlgorithm().getSelectedTag().getReadable() + "\n";    result += "Replace missing values: " + (m_Filter.getReplaceMissing() ? "yes" : "no") + "\n";    result += "Preprocessing.........: " + m_Filter.getPreprocessing().getSelectedTag().getReadable() + "\n";        return result;  }    /**   * Main method for running this classifier from commandline.   *    * @param args 	the options   */  public static void main(String[] args) {    runClassifier(new PLSClassifier(), args);  }}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩视频一区在线观看| 亚洲高清免费观看| 国产美女在线精品| 亚洲午夜久久久久中文字幕久| 日韩不卡在线观看日韩不卡视频| 青青国产91久久久久久| 蜜桃av一区二区| 国产一区二区导航在线播放| 成人免费视频caoporn| 欧美色大人视频| 日韩精品一区二区三区在线观看| 91黄色免费版| 欧美高清激情brazzers| 精品日韩成人av| 亚洲欧洲av在线| 亚洲美女偷拍久久| 日韩精品乱码av一区二区| 国产一区二区三区免费观看| 懂色av一区二区三区免费看| 91福利视频久久久久| 欧美视频一区二区在线观看| 亚洲欧洲成人自拍| 国内久久婷婷综合| 色综合久久久久综合体桃花网| 欧美日韩极品在线观看一区| 亚洲精品在线一区二区| 亚洲色图欧美激情| 国产一区二区三区香蕉| 97精品久久久午夜一区二区三区 | 国产在线国偷精品产拍免费yy| 天堂一区二区在线| 色综合天天综合狠狠| 国内精品不卡在线| 91丨porny丨在线| 51精品国自产在线| 中文字幕第一页久久| 国产在线国偷精品免费看| 欧美va在线播放| 九色综合国产一区二区三区| 欧美一级日韩免费不卡| 奇米888四色在线精品| 4hu四虎永久在线影院成人| 日韩一区精品视频| 精品久久久久av影院| 久久不见久久见免费视频1| 日韩欧美亚洲国产另类| 国内精品视频666| 国产欧美一区二区三区在线看蜜臀 | 欧美国产视频在线| 99riav久久精品riav| 亚洲欧美成aⅴ人在线观看| 欧美色网一区二区| 蜜臀av性久久久久蜜臀aⅴ四虎| 日韩小视频在线观看专区| 久久99最新地址| 国产精品三级视频| 日本韩国欧美一区二区三区| 日韩精品午夜视频| 久久午夜色播影院免费高清| 高清不卡一二三区| 亚洲妇熟xx妇色黄| 精品免费视频.| av资源站一区| 日韩专区中文字幕一区二区| 欧美一级欧美三级在线观看| 成人一区在线观看| 亚洲在线视频一区| 日韩欧美一二三| 色综合久久88色综合天天6| 日产国产高清一区二区三区| 欧美国产日韩亚洲一区| 欧美日韩亚洲不卡| 国产成人高清视频| 视频一区国产视频| 精品国产区一区| 色婷婷综合五月| 国产自产高清不卡| 亚洲一区二区在线观看视频| 亚洲精品一线二线三线无人区| 一本久久综合亚洲鲁鲁五月天| 免费成人在线视频观看| 一区二区三区四区不卡在线| 精品国产sm最大网站| 色综合av在线| 成人免费视频caoporn| 美女视频一区二区三区| 亚洲欧洲制服丝袜| 国产欧美日韩视频在线观看| 在线不卡一区二区| 91免费小视频| 丁香一区二区三区| 老司机午夜精品| 亚洲一区在线观看免费观看电影高清| 日韩一区二区三区在线| 91久久线看在观草草青青| 粉嫩绯色av一区二区在线观看| 日韩中文欧美在线| 一区二区三区中文字幕| 国产精品网站在线| 久久久久99精品一区| 欧美不卡一区二区三区四区| 欧美日韩国产精选| 欧美伊人精品成人久久综合97 | 精品一二线国产| 男人的天堂久久精品| 亚洲永久精品大片| 国产精品电影一区二区| 国产精品久久一级| 欧美激情一区在线| 国产精品美女久久久久久2018| 欧美大尺度电影在线| 91精品国产综合久久久久久| 欧美日韩和欧美的一区二区| 91成人免费在线| 欧美午夜免费电影| 欧美在线观看视频一区二区| 色呦呦国产精品| 在线观看免费视频综合| 91国偷自产一区二区三区成为亚洲经典 | 欧美日韩视频第一区| 色婷婷久久综合| 在线一区二区观看| 欧美精品在欧美一区二区少妇| 欧美色涩在线第一页| 91精品国产高清一区二区三区蜜臀| 欧美天堂亚洲电影院在线播放| 色婷婷激情久久| 51精品国自产在线| 日韩免费一区二区| 国产精品色哟哟网站| 中文字幕一区二区日韩精品绯色| 中文字幕一区二区三区不卡| 亚洲精品免费看| 亚洲h精品动漫在线观看| 日韩国产精品久久| 国产一区二区在线视频| 不卡一卡二卡三乱码免费网站| 一本色道久久加勒比精品| 欧美日韩欧美一区二区| 精品少妇一区二区三区日产乱码 | 成人av在线资源网站| 91片在线免费观看| 欧美猛男男办公室激情| 欧美成人一区二区| 国产精品久久三| 天堂成人国产精品一区| 国产一区福利在线| 91色乱码一区二区三区| 欧美福利视频导航| 国产精品美女久久久久久久久 | 成人av在线资源网站| 欧美日韩在线三级| 日韩一级在线观看| 国产精品久久久久久久久果冻传媒| 亚洲视频在线观看三级| 欧美a一区二区| 国产在线不卡一区| 在线精品观看国产| 精品国一区二区三区| 国产精品动漫网站| 国产一区二区三区黄视频 | 成人av免费在线播放| 欧美主播一区二区三区美女| 精品国产一区二区三区av性色 | 色综合久久久久综合体| 五月天激情综合| 99久久精品一区| 精品国产91亚洲一区二区三区婷婷| 国产精品免费丝袜| 麻豆91精品91久久久的内涵| 色综合久久天天| 国产精品免费免费| 久久91精品久久久久久秒播| 欧美亚洲综合在线| 国产精品久99| 国产精品自拍在线| 日韩一区二区三免费高清| 国产成人av影院| 日韩视频永久免费| 亚洲一区二区av电影| 99精品欧美一区二区三区小说| 亚洲精品一区二区三区99| 亚洲一区精品在线| 不卡视频免费播放| 久久久久久麻豆| 韩国三级在线一区| 日韩精品中文字幕一区二区三区| 亚洲综合丝袜美腿| 一本久道久久综合中文字幕| 国产精品拍天天在线| 国产精品一二一区| 精品成人一区二区| 成人黄色一级视频| 国产日韩精品一区二区浪潮av| 精品一区二区三区不卡 | 三级欧美在线一区| 欧美丝袜自拍制服另类| 一区二区三区 在线观看视频| 99综合影院在线| 中文字幕亚洲电影|