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

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

?? wrappersubseteval.java

?? 一個(gè)數(shù)據(jù)挖掘系統(tǒng)的源碼
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):

/**
 *
 *   AgentAcademy - an open source Data Mining framework for
 *   training intelligent agents
 *
 *   Copyright (C)   2001-2003 AA Consortium.
 *
 *   This library is open source software; you can redistribute it
 *   and/or modify it under the terms of the GNU Lesser General
 *   Public License as published by the Free Software Foundation;
 *   either version 2.0 of the License, or (at your option) any later
 *   version.
 *
 *   This library 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 Lesser General Public
 *   License along with this library; if not, write to the Free
 *   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *   MA  02111-1307 USA
 *
 */

package  org.agentacademy.modules.dataminer.attributeSelection;

import java.util.BitSet;
import java.util.Enumeration;
import java.util.Random;
import java.util.Vector;

import org.agentacademy.modules.dataminer.classifiers.ZeroR;
import org.agentacademy.modules.dataminer.classifiers.evaluation.Classifier;
import org.agentacademy.modules.dataminer.classifiers.evaluation.Evaluation;
import org.agentacademy.modules.dataminer.core.Instances;
import org.agentacademy.modules.dataminer.core.Option;
import org.agentacademy.modules.dataminer.core.OptionHandler;
import org.agentacademy.modules.dataminer.core.Utils;
import org.agentacademy.modules.dataminer.filters.AttributeFilter;
import org.agentacademy.modules.dataminer.filters.Filter;
import org.apache.log4j.Logger;

/**
 * Wrapper attribute subset evaluator. <p>
 * For more information see: <br>
 *
 * Kohavi, R., John G., Wrappers for Feature Subset Selection.
 * In <i>Artificial Intelligence journal</i>, special issue on relevance,
 * Vol. 97, Nos 1-2, pp.273-324. <p>
 *
 * Valid options are:<p>
 *
 * -B <base learner> <br>
 * Class name of base learner to use for accuracy estimation.
 * Place any classifier options last on the command line following a
 * "--". Eg  -B weka.classifiers.bayes.NaiveBayes ... -- -K <p>
 *
 * -F <num> <br>
 * Number of cross validation folds to use for estimating accuracy.
 * <default=5> <p>
 *
 * -T <num> <br>
 * Threshold by which to execute another cross validation (standard deviation
 * ---expressed as a percentage of the mean). <p>
 *
 * @author Mark Hall (mhall@cs.waikato.ac.nz)
 * @version $Revision: 1.2 $
 */
public class WrapperSubsetEval
  extends SubsetEvaluator
  implements OptionHandler
{

 public static Logger                log = Logger.getLogger(WrapperSubsetEval.class);
  /** training instances */
  private Instances m_trainInstances;
  /** class index */
  private int m_classIndex;
  /** number of attributes in the training data */
  private int m_numAttribs;
  /** number of instances in the training data */
  private int m_numInstances;
  /** holds an evaluation object */
  private Evaluation m_Evaluation;
  /** holds the base classifier object */
  private Classifier m_BaseClassifier;
  /** number of folds to use for cross validation */
  private int m_folds;
  /** random number seed */
  private int m_seed;
  /**
   * the threshold by which to do further cross validations when
   * estimating the accuracy of a subset
   */
  private double m_threshold;

  /**
   * Returns a string describing this attribute evaluator
   * @return a description of the evaluator suitable for
   * displaying in the explorer/experimenter gui
   */
  public String globalInfo() {
    return "WrapperSubsetEval:\n\n"
      +"Evaluates attribute sets by using a learning scheme. Cross "
      +"validation is used to estimate the accuracy of the learning "
      +"scheme for a set of attributes.\n";
  }

  /**
   * Constructor. Calls restOptions to set default options
   **/
  public WrapperSubsetEval () {
    resetOptions();
  }


  /**
   * Returns an enumeration describing the available options.
   * @return an enumeration of all the available options.
   **/
  public Enumeration listOptions () {
    Vector newVector = new Vector(4);
    newVector.addElement(new Option("\tclass name of base learner to use for"
				    + "\n\taccuracy estimation. Place any"
				    + "\n\tclassifier options LAST on the"
				    + "\n\tcommand line following a \"--\"."
				    + "\n\teg. -B weka.classifiers.bayes.NaiveBayes ... "
				    + "-- -K", "B", 1, "-B <base learner>"));
    newVector.addElement(new Option("\tnumber of cross validation folds to "
				    + "use\n\tfor estimating accuracy."
				    + "\n\t(default=5)", "F", 1, "-F <num>"));
    newVector.addElement(new Option("\tSeed for cross validation accuracy "
				    +"\n\testimation."
				    +"\n\t(default = 1)", "S", 1,"-S <seed>"));
    newVector.addElement(new Option("\tthreshold by which to execute "
				    + "another cross validation"
				    + "\n\t(standard deviation---"
				    + "expressed as a percentage of the "
				    + "mean).\n\t(default=0.01(1%))"
				    , "T", 1, "-T <num>"));

    if ((m_BaseClassifier != null) &&
	(m_BaseClassifier instanceof OptionHandler)) {
      newVector.addElement(new Option("", "", 0, "\nOptions specific to"
				      + "scheme "
				      + m_BaseClassifier.getClass().getName()
				      + ":"));
      Enumeration enum = ((OptionHandler)m_BaseClassifier).listOptions();

      while (enum.hasMoreElements()) {
        newVector.addElement(enum.nextElement());
      }
    }

    return  newVector.elements();
  }


  /**
   * Parses a given list of options.
   *
   * Valid options are:<p>
   *
   * -B <base learner> <br>
   * Class name of base learner to use for accuracy estimation.
   * Place any classifier options last on the command line following a
   * "--". Eg  -B weka.classifiers.bayes.NaiveBayes ... -- -K <p>
   *
   * -F <num> <br>
   * Number of cross validation folds to use for estimating accuracy.
   * <default=5> <p>
   *
   * -T <num> <br>
   * Threshold by which to execute another cross validation (standard deviation
   * ---expressed as a percentage of the mean). <p>
   *
   * @param options the list of options as an array of strings
   * @exception Exception if an option is not supported
   *
   **/
  public void setOptions (String[] options)
    throws Exception
  {
    String optionString;
    resetOptions();
    optionString = Utils.getOption('B', options);

    if (optionString.length() == 0) {
      throw  new Exception("A learning scheme must be specified with"
			   + "-B option");
    }

    setClassifier(Classifier.forName(optionString,
				     Utils.partitionOptions(options)));
    optionString = Utils.getOption('F', options);

    if (optionString.length() != 0) {
      setFolds(Integer.parseInt(optionString));
    }

    optionString = Utils.getOption('S', options);
    if (optionString.length() != 0) {
      setSeed(Integer.parseInt(optionString));
    }

    //       optionString = Utils.getOption('S',options);
    //       if (optionString.length() != 0)
    //         {
    //  	 seed = Integer.parseInt(optionString);
    //         }
    optionString = Utils.getOption('T', options);

    if (optionString.length() != 0) {
      Double temp;
      temp = Double.valueOf(optionString);
      setThreshold(temp.doubleValue());
    }
  }

  /**
   * Returns the tip text for this property
   * @return tip text for this property suitable for
   * displaying in the explorer/experimenter gui
   */
  public String thresholdTipText() {
    return "Repeat xval if stdev of mean exceeds this value.";
  }

  /**
   * Set the value of the threshold for repeating cross validation
   *
   * @param t the value of the threshold
   */
  public void setThreshold (double t) {
    m_threshold = t;
  }


  /**
   * Get the value of the threshold
   *
   * @return the threshold as a double
   */
  public double getThreshold () {
    return  m_threshold;
  }

  /**
   * Returns the tip text for this property
   * @return tip text for this property suitable for
   * displaying in the explorer/experimenter gui
   */
  public String foldsTipText() {
    return "Number of xval folds to use when estimating subset accuracy.";
  }

  /**
   * Set the number of folds to use for accuracy estimation
   *
   * @param f the number of folds
   */
  public void setFolds (int f) {
    m_folds = f;
  }


  /**
   * Get the number of folds used for accuracy estimation
   *
   * @return the number of folds
   */
  public int getFolds () {
    return  m_folds;
  }

  /**
   * Returns the tip text for this property
   * @return tip text for this property suitable for
   * displaying in the explorer/experimenter gui
   */
  public String seedTipText() {
    return "Seed to use for randomly generating xval splits.";
  }

  /**

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合久久久久| 成人短视频下载 | 精品成a人在线观看| 成人综合激情网| 亚洲一区二区美女| 国产丝袜欧美中文另类| 欧美三日本三级三级在线播放| 国产一区二区成人久久免费影院 | 成人免费看片app下载| 丝袜亚洲另类丝袜在线| 亚洲欧美怡红院| 久久久无码精品亚洲日韩按摩| 欧美在线free| 99久久99久久免费精品蜜臀| 紧缚捆绑精品一区二区| 午夜精品视频一区| 亚洲精品高清视频在线观看| 国产欧美精品一区aⅴ影院| 日韩区在线观看| 欧美视频中文一区二区三区在线观看| 高清成人免费视频| 国产一区二区三区日韩| 免费精品视频最新在线| 五月天激情综合网| 亚洲国产成人av好男人在线观看| 亚洲欧美在线观看| 国产精品久久久久久妇女6080| 久久久久9999亚洲精品| 欧美精品一区二区三区蜜桃| 欧美一卡在线观看| 91精品国产高清一区二区三区蜜臀 | 91精品国产综合久久久久久漫画| 色系网站成人免费| 99精品欧美一区二区三区小说| 国产成人丝袜美腿| 国产精品乡下勾搭老头1| 国产在线播精品第三| 精品在线免费观看| 精品一区二区久久久| 九九在线精品视频| 国产精品一区二区三区网站| 国内精品第一页| 久久99精品国产麻豆婷婷| 蜜臀av性久久久久蜜臀av麻豆| 青娱乐精品在线视频| 免费观看日韩电影| 国模无码大尺度一区二区三区 | 欧美专区在线观看一区| 欧洲一区二区三区免费视频| 欧美色欧美亚洲另类二区| 欧美日韩色一区| 欧美久久久久中文字幕| 制服丝袜成人动漫| 欧美成人a∨高清免费观看| 精品国精品国产尤物美女| 久久久美女艺术照精彩视频福利播放| 国产三级精品三级在线专区| 国产精品国产成人国产三级| 亚洲人成网站在线| 亚洲成av人片在线观看无码| 天堂在线一区二区| 激情六月婷婷久久| 成人动漫一区二区三区| 色综合天天做天天爱| 7777精品伊人久久久大香线蕉经典版下载| 欧美一区二区免费观在线| 2021中文字幕一区亚洲| 自拍av一区二区三区| 亚洲成av人片在www色猫咪| 久久精品国产精品亚洲综合| 粉嫩av一区二区三区| 色婷婷国产精品久久包臀 | 2023国产一二三区日本精品2022| 中文字幕av一区二区三区免费看 | 一本久久a久久精品亚洲| 欧美色倩网站大全免费| 欧美精品一区二区三区蜜桃视频 | 成人黄色国产精品网站大全在线免费观看| 99精品欧美一区二区三区小说| 欧美三级资源在线| 久久影院午夜论| 亚洲影院理伦片| 激情图区综合网| 欧美在线一二三| 久久午夜电影网| 亚洲成人资源在线| 国产成人精品免费| 在线电影欧美成精品| 欧美激情一区二区三区不卡| 五月激情综合色| 成人av电影在线播放| 3d成人h动漫网站入口| 欧美国产一区视频在线观看| 亚洲一区二区不卡免费| 国产激情一区二区三区桃花岛亚洲| 91久久精品一区二区二区| 精品国产乱子伦一区| 亚洲精品成人精品456| 国产一区在线不卡| 欧美日韩国产天堂| 亚洲男女一区二区三区| 国产伦精品一区二区三区视频青涩| 在线亚洲人成电影网站色www| 久久久久久夜精品精品免费| 亚洲综合在线电影| 丁香一区二区三区| 日韩美女视频在线| 亚洲国产综合色| 北条麻妃国产九九精品视频| 精品精品国产高清a毛片牛牛| 亚洲综合在线视频| av在线不卡电影| www国产亚洲精品久久麻豆| 视频一区二区国产| 在线观看日韩高清av| 国产精品久久三区| 国产河南妇女毛片精品久久久| 日韩午夜电影在线观看| 亚洲一区二区美女| 在线观看亚洲专区| 亚洲视频在线一区二区| 懂色av一区二区三区蜜臀 | 久久精品在线免费观看| 日本视频在线一区| 欧美日韩高清一区二区不卡| 一区二区三区在线观看动漫| 成人av手机在线观看| 亚洲国产精品传媒在线观看| 国产精品综合一区二区三区| 日韩欧美电影一区| 麻豆精品国产传媒mv男同| 777a∨成人精品桃花网| 日韩av中文字幕一区二区| 3d成人动漫网站| 日韩激情中文字幕| 51午夜精品国产| 日韩电影在线免费观看| 4438x亚洲最大成人网| 日韩—二三区免费观看av| 91精品在线观看入口| 日韩av电影免费观看高清完整版在线观看| 欧美日韩一区二区三区免费看| 亚洲影视在线观看| 欧美日韩国产精选| 午夜久久久久久久久| 日韩一区二区三区视频在线观看| 免费在线看成人av| 久久综合九色综合欧美亚洲| 国产精品性做久久久久久| 国产精品久久久久久亚洲毛片| 91视频.com| 亚洲大片免费看| 日韩三级高清在线| 国产成人激情av| 亚洲欧美一区二区三区极速播放| 一本一道久久a久久精品综合蜜臀| 亚洲精品成人在线| 日韩欧美一区二区免费| 国产精品影视天天线| 中文字幕一区免费在线观看| 色综合久久综合网欧美综合网| 亚洲永久免费av| 日韩欧美亚洲国产精品字幕久久久| 国产在线播精品第三| 亚洲色图.com| 91精品国产综合久久精品性色| 精品一区二区三区在线观看| 国产清纯在线一区二区www| 色婷婷久久99综合精品jk白丝 | 日韩成人dvd| 国产拍揄自揄精品视频麻豆| 91极品美女在线| 另类小说图片综合网| 中文字幕第一页久久| 精品视频123区在线观看| 精油按摩中文字幕久久| 中文字幕一区二区三区四区| 欧美乱妇23p| 国产激情精品久久久第一区二区| 亚洲精品成人在线| 久久人人97超碰com| 91麻豆.com| 黄色成人免费在线| 一区二区三区视频在线观看| 日韩欧美一级精品久久| www.亚洲国产| 美女视频一区二区| 亚洲欧美日韩系列| 久久中文娱乐网| 欧美日韩精品系列| 成人av在线网| 免费高清不卡av| 怡红院av一区二区三区| 久久新电视剧免费观看| 欧美三级在线视频| 99国产精品国产精品毛片| 久久成人久久爱| 性感美女久久精品| 17c精品麻豆一区二区免费| 久久日韩精品一区二区五区|