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

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

?? ranker.java

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

/**
 *   
 *   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.Enumeration;
import java.util.Vector;

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.Range;
import org.agentacademy.modules.dataminer.core.Utils;

/** 
 * Class for ranking the attributes evaluated by a AttributeEvaluator
 *
 * Valid options are: <p>
 *
 * -P <start set> <br>
 * Specify a starting set of attributes. Eg 1,4,7-9. <p>
 *
 * -T <threshold> <br>
 * Specify a threshold by which the AttributeSelection module can. <br>
 * discard attributes. <p>
 *
 * @author Mark Hall (mhall@cs.waikato.ac.nz)
 * @version $Revision: 1.2 $
 */
public class Ranker extends ASSearch 
  implements RankedOutputSearch, StartSetHandler, OptionHandler {

  /** Holds the starting set as an array of attributes */
  private int[] m_starting;

  /** Holds the start set for the search as a range */
  private Range m_startRange;

  /** Holds the ordered list of attributes */
  private int[] m_attributeList;

  /** Holds the list of attribute merit scores */
  private double[] m_attributeMerit;

  /** Data has class attribute---if unsupervised evaluator then no class */
  private boolean m_hasClass;

  /** Class index of the data if supervised evaluator */
  private int m_classIndex;

  /** The number of attribtes */
  private int m_numAttribs;

  /** 
   * A threshold by which to discard attributes---used by the
   * AttributeSelection module
   */
  private double m_threshold;

  /** The number of attributes to select. -1 indicates that all attributes
      are to be retained. Has precedence over m_threshold */
  private int m_numToSelect = -1;

  /** Used to compute the number to select */
  private int m_calculatedNumToSelect = -1;

  /**
   * Returns a string describing this search method
   * @return a description of the search suitable for
   * displaying in the explorer/experimenter gui
   */
  public String globalInfo() {
    return "Ranker : \n\nRanks attributes by their individual evaluations. "
      +"Use in conjunction with attribute evaluators (ReliefF, GainRatio, "
      +"Entropy etc).\n";
  }

  /**
   * Constructor
   */
  public Ranker () {
    resetOptions();
  }

  /**
   * Returns the tip text for this property
   * @return tip text for this property suitable for
   * displaying in the explorer/experimenter gui
   */
  public String numToSelectTipText() {
    return "Specify the number of attributes to retain. The default value "
      +"(-1) indicates that all attributes are to be retained. Use either "
      +"this option or a threshold to reduce the attribute set.";
  }

  /**
   * Specify the number of attributes to select from the ranked list. -1
   * indicates that all attributes are to be retained.
   * @param n the number of attributes to retain
   */
  public void setNumToSelect(int n) {
    m_numToSelect = n;
  }

  /**
   * Gets the number of attributes to be retained.
   * @return the number of attributes to retain
   */
  public int getNumToSelect() {
    return m_numToSelect;
  }

  /**
   * Gets the calculated number to select. This might be computed
   * from a threshold, or if < 0 is set as the number to select then
   * it is set to the number of attributes in the (transformed) data.
   * @return the calculated number of attributes to select
   */
  public int getCalculatedNumToSelect() {
    if (m_numToSelect >= 0) {
      m_calculatedNumToSelect = m_numToSelect;
    }
    return m_calculatedNumToSelect;
  }

  /**
   * 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 "Set threshold by which attributes can be discarded. Default value "
      + "results in no attributes being discarded. Use either this option or "
      +"numToSelect to reduce the attribute set.";
  }

  /**
   * Set the threshold by which the AttributeSelection module can discard
   * attributes.
   * @param threshold the threshold.
   */
  public void setThreshold(double threshold) {
    m_threshold = threshold;
  }

  /**
   * Returns the threshold so that the AttributeSelection module can
   * discard attributes from the ranking.
   */
  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 generateRankingTipText() {
    return "A constant option. Ranker is only capable of generating "
      +" attribute rankings.";
  }

  /**
   * This is a dummy set method---Ranker is ONLY capable of producing
   * a ranked list of attributes for attribute evaluators.
   * @param doRank this parameter is N/A and is ignored
   */
  public void setGenerateRanking(boolean doRank) {
    
  }

  /**
   * This is a dummy method. Ranker can ONLY be used with attribute
   * evaluators and as such can only produce a ranked list of attributes
   * @return true all the time.
   */
  public boolean getGenerateRanking() {
    return true;
  }

  /**
   * Returns the tip text for this property
   * @return tip text for this property suitable for
   * displaying in the explorer/experimenter gui
   */
  public String startSetTipText() {
    return "Specify a set of attributes to ignore. "
      +" When generating the ranking, Ranker will not evaluate the attributes "
      +" in this list. "
      +"This is specified as a comma " 
      +"seperated list off attribute indexes starting at 1. It can include "
      +"ranges. Eg. 1,2,5-9,17.";
  }

  /**
   * Sets a starting set of attributes for the search. It is the
   * search method's responsibility to report this start set (if any)
   * in its toString() method.
   * @param startSet a string containing a list of attributes (and or ranges),
   * eg. 1,2,6,10-15.
   * @exception Exception if start set can't be set.
   */
  public void setStartSet (String startSet) throws Exception {
    m_startRange.setRanges(startSet);
  }

  /**
   * Returns a list of attributes (and or attribute ranges) as a String
   * @return a list of attributes (and or attribute ranges)
   */
  public String getStartSet () {
    return m_startRange.getRanges();
  }

  /**
   * Returns an enumeration describing the available options.
   * @return an enumeration of all the available options.
   **/
  public Enumeration listOptions () {
    Vector newVector = new Vector(3);

    newVector
      .addElement(new Option("\tSpecify a starting set of attributes." 
			     + "\n\tEg. 1,3,5-7."
			     +"\t\nAny starting attributes specified are"
			     +"\t\nignored during the ranking."
			     ,"P",1
			     , "-P <start set>"));
    newVector
      .addElement(new Option("\tSpecify a theshold by which attributes" 
			     + "\tmay be discarded from the ranking.","T",1
			     , "-T <threshold>"));

    newVector
      .addElement(new Option("\tSpecify number of attributes to select" 
			     ,"N",1
			     , "-N <num to select>"));

    return newVector.elements();

  }
  
  /**
   * Parses a given list of options.
   *
   * Valid options are: <p>
   *
   * -P <start set> <br>
   * Specify a starting set of attributes. Eg 1,4,7-9. <p>
   *
   * -T <threshold> <br>
   * Specify a threshold by which the AttributeSelection module can <br>
   * discard attributes. <p>
   *
   * -N <number to retain> <br>
   * Specify the number of attributes to retain. Overides any threshold. <br>
   * <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('P', options);
    if (optionString.length() != 0) {
      setStartSet(optionString);
    }

    optionString = Utils.getOption('T', options);
    if (optionString.length() != 0) {
      Double temp;
      temp = Double.valueOf(optionString);
      setThreshold(temp.doubleValue());
    }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美丝袜自拍制服另类| 国产精品亚洲第一区在线暖暖韩国| 在线观看亚洲精品| 午夜久久久久久久久| 精品国产污网站| 成人激情开心网| 亚洲bdsm女犯bdsm网站| 久久久国产精品不卡| 欧美在线综合视频| 狠狠色丁香久久婷婷综合_中 | 国产精品1区2区| 亚洲激情男女视频| 日韩精品中文字幕在线不卡尤物 | 国产精品91xxx| 亚洲一区二区在线播放相泽| 精品国产一区二区三区不卡| 欧美网站大全在线观看| 激情五月激情综合网| 亚洲精品国产高清久久伦理二区| 欧美私模裸体表演在线观看| 美女在线一区二区| 一区二区三区精品| 国产欧美精品区一区二区三区| 欧美伊人久久久久久午夜久久久久| 狠狠狠色丁香婷婷综合激情| 亚洲国产cao| 欧美国产日韩精品免费观看| 日韩女优视频免费观看| 在线观看av一区二区| 免费不卡在线观看| 亚洲伊人色欲综合网| 国产精品久久久久精k8| 久久嫩草精品久久久精品| 6080国产精品一区二区| 成人av影视在线观看| 国产综合一区二区| 五月综合激情网| 国产精品乱码妇女bbbb| 精品免费99久久| 欧美三级在线视频| 91色在线porny| 成人午夜激情在线| 国产乱码精品一品二品| 乱一区二区av| 日韩精品三区四区| 丝袜诱惑制服诱惑色一区在线观看 | 日产国产欧美视频一区精品 | 亚洲欧美综合网| 欧美激情中文字幕一区二区| 日韩欧美综合在线| 日本韩国一区二区三区视频| 成人91在线观看| 国产麻豆精品一区二区| 亚洲成av人影院在线观看网| 亚洲欧洲成人av每日更新| 国产三级精品三级| 国产丝袜在线精品| 欧美国产日产图区| 国产精品国产三级国产aⅴ无密码| 国产欧美精品区一区二区三区| 日韩欧美国产系列| 日韩欧美你懂的| 欧美性videosxxxxx| 欧美无砖专区一中文字| 色猫猫国产区一区二在线视频| 91欧美激情一区二区三区成人| 成人av在线网站| 一本大道av伊人久久综合| 91久久线看在观草草青青| 欧洲av一区二区嗯嗯嗯啊| 欧美三级在线视频| 日韩欧美卡一卡二| 国产女人水真多18毛片18精品视频| 国产亚洲va综合人人澡精品 | 678五月天丁香亚洲综合网| 日韩一级欧美一级| 91福利国产成人精品照片| 91搞黄在线观看| 69堂国产成人免费视频| 久久一留热品黄| 国产精品久久网站| 亚洲高清视频的网址| 国内外成人在线视频| 成人午夜碰碰视频| 欧美日韩三级在线| 欧美一级视频精品观看| 精品成人一区二区| 中国色在线观看另类| 一区二区三区日韩欧美| 日韩激情av在线| 亚洲成人中文在线| 捆绑紧缚一区二区三区视频| 亚洲欧美激情小说另类| 日韩精品三区四区| 成人动漫一区二区在线| 欧美日韩夫妻久久| 国产视频一区不卡| 亚洲乱码中文字幕| 韩国女主播一区二区三区| 91在线免费看| 精品国产区一区| 欧美日韩国产精品成人| 久久久久久久久久电影| 亚洲www啪成人一区二区麻豆| 日韩av不卡一区二区| 成人综合婷婷国产精品久久 | 成人免费观看av| 欧美色手机在线观看| 欧美大黄免费观看| 一色桃子久久精品亚洲| 一区二区三区波多野结衣在线观看| 麻豆久久久久久久| 91黄视频在线| 国产欧美日韩不卡免费| 日本不卡在线视频| 91美女福利视频| 久久网站热最新地址| 五月天激情综合| 成人av资源在线| 精品国产91亚洲一区二区三区婷婷| 亚洲欧美一区二区三区孕妇| 九九精品一区二区| 欧美性极品少妇| 亚洲婷婷国产精品电影人久久| 蜜臀精品一区二区三区在线观看| 色综合天天狠狠| 日韩欧美在线一区二区三区| 亚洲黄网站在线观看| 久久国产乱子精品免费女| 欧美亚洲禁片免费| 中文字幕一区在线| www国产亚洲精品久久麻豆| 亚洲欧洲日韩综合一区二区| 精东粉嫩av免费一区二区三区 | 色欧美片视频在线观看在线视频| 久久精品在这里| 午夜精品久久久久久久久久 | 免费人成网站在线观看欧美高清| 一本大道久久a久久综合| 国产欧美综合在线| 亚洲成人综合视频| 色哟哟亚洲精品| 国产视频一区二区三区在线观看 | 欧美一级二级三级乱码| 亚洲午夜精品网| 亚洲一区在线观看免费观看电影高清| 亚洲第一精品在线| 色综合久久六月婷婷中文字幕| 国产精品视频观看| 国产aⅴ综合色| 欧美精品一区视频| 精品一区二区三区免费| 色成年激情久久综合| 国产精品不卡在线| 91日韩在线专区| 亚洲综合色丁香婷婷六月图片| 99精品国产视频| 亚洲美女电影在线| 欧美综合一区二区三区| 三级不卡在线观看| 欧美一区二区成人6969| 日韩电影在线观看电影| 欧美成人精品1314www| 精品一区二区三区在线播放 | 亚洲一区二区三区四区在线观看 | 日本丶国产丶欧美色综合| 一区二区三区在线视频观看| 一本色道亚洲精品aⅴ| 亚洲日本一区二区三区| 91福利精品视频| 午夜不卡在线视频| 久久日韩精品一区二区五区| 国产精品69毛片高清亚洲| 国产精品久久久久久久久免费相片 | 日韩精品一区二区三区在线观看 | 精品一区二区三区免费观看| 国产精品私人影院| 99精品热视频| 免费日韩伦理电影| 国产亚洲一区二区三区| 欧美色窝79yyyycom| 蜜臀av性久久久久蜜臀aⅴ流畅| 国产精品少妇自拍| 在线精品视频一区二区三四 | 天天av天天翘天天综合网 | 日韩美女精品在线| 欧美视频中文字幕| 国产成人精品免费一区二区| 亚洲四区在线观看| 日韩欧美第一区| 94色蜜桃网一区二区三区| 麻豆精品在线视频| 国产精品久线在线观看| 91精品免费在线观看| 国产不卡在线视频| 亚瑟在线精品视频| 欧美激情综合在线| 精品精品欲导航| 91国偷自产一区二区使用方法| 国产美女精品一区二区三区|