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

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

?? agrawal.java

?? Weka
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* *    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. *//* * Agrawal.java * Copyright (C) 2005 University of Waikato, Hamilton, New Zealand * */package weka.datagenerators.classifiers.classification;import weka.core.Attribute;import weka.core.FastVector;import weka.core.Instance;import weka.core.Instances;import weka.core.Option;import weka.core.SelectedTag;import weka.core.Tag;import weka.core.TechnicalInformation;import weka.core.TechnicalInformationHandler;import weka.core.Utils;import weka.core.TechnicalInformation.Field;import weka.core.TechnicalInformation.Type;import weka.datagenerators.ClassificationGenerator;import java.util.Enumeration;import java.util.Random;import java.util.Vector;/** <!-- globalinfo-start --> * Generates a people database and is based on the paper by Agrawal et al.:<br/> * R. Agrawal, T. Imielinski, A. Swami (1993). Database Mining: A Performance Perspective. IEEE Transactions on Knowledge and Data Engineering. 5(6):914-925. URL http://www.almaden.ibm.com/software/quest/Publications/ByDate.html. * <p/> <!-- globalinfo-end --> * <!-- technical-bibtex-start --> * BibTeX: * <pre> * &#64;article{Agrawal1993, *    author = {R. Agrawal and T. Imielinski and A. Swami}, *    journal = {IEEE Transactions on Knowledge and Data Engineering}, *    note = {Special issue on Learning and Discovery in Knowledge-Based Databases}, *    number = {6}, *    pages = {914-925}, *    title = {Database Mining: A Performance Perspective}, *    volume = {5}, *    year = {1993}, *    URL = {http://www.almaden.ibm.com/software/quest/Publications/ByDate.html}, *    PDF = {http://www.almaden.ibm.com/software/quest/Publications/papers/tkde93.pdf} * } * </pre> * <p/> <!-- technical-bibtex-end --> * <!-- options-start --> * Valid options are: <p/> *  * <pre> -h *  Prints this help.</pre> *  * <pre> -o &lt;file&gt; *  The name of the output file, otherwise the generated data is *  printed to stdout.</pre> *  * <pre> -r &lt;name&gt; *  The name of the relation.</pre> *  * <pre> -d *  Whether to print debug informations.</pre> *  * <pre> -S *  The seed for random function (default 1)</pre> *  * <pre> -n &lt;num&gt; *  The number of examples to generate (default 100)</pre> *  * <pre> -F &lt;num&gt; *  The function to use for generating the data. (default 1)</pre> *  * <pre> -B *  Whether to balance the class.</pre> *  * <pre> -P &lt;num&gt; *  The perturbation factor. (default 0.05)</pre> *  <!-- options-end --> * * @author Richard Kirkby (rkirkby at cs dot waikato dot ac dot nz) * @author FracPete (fracpete at waikato dot ac dot nz) * @version $Revision: 1.5 $ */public class Agrawal  extends ClassificationGenerator  implements TechnicalInformationHandler {    /** for serialization */  static final long serialVersionUID = 2254651939636143025L;    /**   * the interface for the class functions   */  protected interface ClassFunction {    /**     * returns a class value based on the given inputs     * @param salary the salary     * @param commission the commission     * @param age the age     * @param elevel the education level     * @param car      * @param zipcode the zip code     * @param hvalue     * @param hyears     * @param loan     */    public long determineClass(double salary, double commission, int age,        int elevel, int car, int zipcode, double hvalue, int hyears,        double loan);  }  /**    * built in functions are based on the paper (page 924),   * which turn out to be functions pred20 thru pred29 in the public c code   */  protected static ClassFunction[] builtInFunctions = {    // function 1    new ClassFunction() {      public long determineClass(double salary, double commission,          int age, int elevel, int car, int zipcode,          double hvalue, int hyears, double loan) {        if (age < 40 || 60 <= age)          return 0;        else          return 1;      }    },    // function 2    new ClassFunction() {      public long determineClass(double salary, double commission,          int age, int elevel, int car, int zipcode,          double hvalue, int hyears, double loan) {        if (age < 40)          if (50000 <= salary && salary <= 100000)            return 0;          else            return 1;        else if (age < 60) // && age >= 40          if (75000 <= salary && salary <= 125000)            return 0;          else            return 1;        else // age >= 60          if (25000 <= salary && salary <= 75000)            return 0;          else            return 1;      }    },    // function 3    new ClassFunction() {      public long determineClass(double salary, double commission,          int age, int elevel, int car, int zipcode,          double hvalue, int hyears, double loan) {        if (age < 40)          if (elevel == 0 || elevel == 1)            return 0;          else            return 1;        else if (age < 60) // && age >= 40          if (elevel == 1 || elevel == 2 || elevel == 3)            return 0;          else            return 1;        else // age >= 60          if (elevel == 2 || elevel == 3 || elevel == 4)            return 0;          else            return 1;      }    },    // function 4    new ClassFunction() {      public long determineClass(double salary, double commission,          int age, int elevel, int car, int zipcode,          double hvalue, int hyears, double loan) {        if (age < 40)          if (elevel == 0 || elevel == 1)            if (25000 <= salary && salary <= 75000)              return 0;            else              return 1;          else if (50000 <= salary && salary <= 100000)            return 0;          else            return 1;        else if (age < 60) // && age >= 40          if (elevel == 1 || elevel == 2 || elevel == 3)            if (50000 <= salary && salary <= 100000)              return 0;            else              return 1;          else if (75000 <= salary && salary <= 125000)            return 0;          else            return 1;        else // age >= 60          if (elevel == 2 || elevel == 3 || elevel == 4)            if (50000 <= salary && salary <= 100000)              return 0;            else              return 1;          else if (25000 <= salary && salary <= 75000)            return 0;          else            return 1;      }    },    // function 5    new ClassFunction() {      public long determineClass(double salary, double commission,          int age, int elevel, int car, int zipcode,          double hvalue, int hyears, double loan) {        if (age < 40)          if (50000 <= salary && salary <= 100000)            if (100000 <= loan && loan <= 300000)              return 0;            else              return 1;          else if (200000 <= loan && loan <= 400000)            return 0;          else            return 1;        else if (age < 60) // && age >= 40          if (75000 <= salary && salary <= 125000)            if (200000 <= loan && loan <= 400000)              return 0;            else              return 1;          else if (300000 <= loan && loan <= 500000)            return 0;          else            return 1;        else // age >= 60          if (25000 <= salary && salary <= 75000)            if (300000 <= loan && loan <= 500000)              return 0;            else              return 1;          else if (100000 <= loan && loan <= 300000)            return 0;          else            return 1;      }    },    // function 6    new ClassFunction() {      public long determineClass(double salary, double commission,          int age, int elevel, int car, int zipcode,          double hvalue, int hyears, double loan) {        double totalSalary = salary + commission;        if (age < 40)          if (50000 <= totalSalary && totalSalary <= 100000)            return 0;          else            return 1;        else if (age < 60) // && age >= 40          if (75000 <= totalSalary && totalSalary <= 125000)            return 0;          else            return 1;        else // age >= 60          if (25000 <= totalSalary && totalSalary <= 75000)            return 0;          else            return 1;      }    },    // function 7    new ClassFunction() {      public long determineClass(double salary, double commission,          int age, int elevel, int car, int zipcode,          double hvalue, int hyears, double loan) {        double disposable = (2.0 * (salary + commission) / 3.0            - loan / 5.0 - 20000.0);        return disposable > 0 ? 0 : 1;      }    },    // function 8    new ClassFunction() {      public long determineClass(double salary, double commission,          int age, int elevel, int car, int zipcode,          double hvalue, int hyears, double loan) {        double disposable = (2.0 * (salary + commission) / 3.0            - 5000.0 * (double) elevel - 20000.0);        return disposable > 0 ? 0 : 1;      }    },    // function 9    new ClassFunction() {      public long determineClass(double salary, double commission,          int age, int elevel, int car, int zipcode,          double hvalue, int hyears, double loan) {        double disposable = (2.0 * (salary + commission) / 3.0            - 5000.0 * (double) elevel - loan / 5.0 - 10000.0);        return disposable > 0 ? 0 : 1;      }    },    // function 10    new ClassFunction() {      public long determineClass(double salary, double commission,          int age, int elevel, int car, int zipcode,          double hvalue, int hyears, double loan) {        double equity = 0.0;        if (hyears >= 20)          equity = hvalue * ((double) hyears - 20.0) / 10.0;        double disposable = (2.0 * (salary + commission) / 3.0            - 5000.0 * (double) elevel + equity / 5.0 - 10000.0);        return disposable > 0 ? 0 : 1;      }    }   };  /** function 1 */  public final static int FUNCTION_1 = 1;  /** function 2 */  public final static int FUNCTION_2 = 2;  /** function 3 */  public final static int FUNCTION_3 = 3;  /** function 4 */  public final static int FUNCTION_4 = 4;  /** function 5 */  public final static int FUNCTION_5 = 5;  /** function 6 */  public final static int FUNCTION_6 = 6;  /** function 7 */  public final static int FUNCTION_7 = 7;  /** function 8 */  public final static int FUNCTION_8 = 8;  /** function 9 */  public final static int FUNCTION_9 = 9;  /** function 10 */  public final static int FUNCTION_10 = 10;  /** the funtion tags */  public static final Tag[] FUNCTION_TAGS = {    new Tag(FUNCTION_1,  "Function 1"),    new Tag(FUNCTION_2,  "Function 2"),    new Tag(FUNCTION_3,  "Function 3"),    new Tag(FUNCTION_4,  "Function 4"),    new Tag(FUNCTION_5,  "Function 5"),    new Tag(FUNCTION_6,  "Function 6"),    new Tag(FUNCTION_7,  "Function 7"),    new Tag(FUNCTION_8,  "Function 8"),    new Tag(FUNCTION_9,  "Function 9"),    new Tag(FUNCTION_10, "Function 10"),  };    /** the function to use for generating the data */  protected int m_Function;  /** whether to balance the class */  protected boolean m_BalanceClass;  /** the perturabation fraction */  protected double m_PerturbationFraction;    /** used for balancing the class */  protected boolean m_nextClassShouldBeZero;  /** the last class label that was generated */  protected double m_lastLabel;    /**   * initializes the generator with default values   */  public Agrawal() {    super();    setFunction(defaultFunction());    setBalanceClass(defaultBalanceClass());    setPerturbationFraction(defaultPerturbationFraction());  }  /**   * Returns a string describing this data generator.   *   * @return a description of the data generator suitable for   * displaying in the explorer/experimenter gui   */  public String globalInfo() {    return          "Generates a people database and is based on the paper by Agrawal "       + "et al.:\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, "R. Agrawal and T. Imielinski and A. Swami");    result.setValue(Field.YEAR, "1993");    result.setValue(Field.TITLE, "Database Mining: A Performance Perspective");    result.setValue(Field.JOURNAL, "IEEE Transactions on Knowledge and Data Engineering");    result.setValue(Field.VOLUME, "5");    result.setValue(Field.NUMBER, "6");    result.setValue(Field.PAGES, "914-925");    result.setValue(Field.NOTE, "Special issue on Learning and Discovery in Knowledge-Based Databases");    result.setValue(Field.URL, "http://www.almaden.ibm.com/software/quest/Publications/ByDate.html");    result.setValue(Field.PDF, "http://www.almaden.ibm.com/software/quest/Publications/papers/tkde93.pdf");        return result;  } /**   * Returns an enumeration describing the available options.   *   * @return an enumeration of all the available options   */  public Enumeration listOptions() {    Vector result = enumToVector(super.listOptions());    result.add(new Option(              "\tThe function to use for generating the data. (default "               + defaultFunction().getSelectedTag().getID() + ")",              "F", 1, "-F <num>"));    result.add(new Option(              "\tWhether to balance the class.",              "B", 0, "-B"));    result.add(new Option(              "\tThe perturbation factor. (default "               + defaultPerturbationFraction() + ")",              "P", 1, "-P <num>"));    return result.elements();  }  /**   * Parses a list of options for this object. <p/>   *   <!-- options-start -->   * Valid options are: <p/>   * 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产一区二区三区av性色 | 欧美日韩免费观看一区二区三区| 91福利在线免费观看| 欧美一卡二卡在线观看| 国产精品不卡在线观看| 久久精品国产秦先生| 在线免费亚洲电影| 中文字幕欧美日本乱码一线二线| 日韩高清一级片| 91丨porny丨户外露出| 久久先锋影音av| 日韩二区三区四区| 欧美日韩精品欧美日韩精品一综合| 国产亚洲欧美中文| 精品在线一区二区三区| 欧美性色黄大片| 亚洲人成电影网站色mp4| 国产在线日韩欧美| 日韩片之四级片| 日韩精品高清不卡| 制服视频三区第一页精品| 一区二区三区免费在线观看| 99麻豆久久久国产精品免费优播| 久久亚洲一级片| 日韩精品视频网| 在线不卡中文字幕| 日韩电影免费在线观看网站| 欧美日韩精品一区二区天天拍小说| 一区二区三区中文字幕电影| 99久久精品费精品国产一区二区| 日本一区二区免费在线| 国产成人亚洲精品狼色在线| 久久欧美一区二区| 国产aⅴ综合色| 中文在线免费一区三区高中清不卡| 国产乱码精品一区二区三区忘忧草| 91精品婷婷国产综合久久性色 | 成人免费三级在线| 国产精品不卡在线观看| 一道本成人在线| 亚洲一区二区三区视频在线播放| 在线观看亚洲精品| 天天免费综合色| 亚洲精品一区二区三区福利 | 欧美图区在线视频| 亚洲不卡av一区二区三区| 欧美高清性hdvideosex| 九色综合国产一区二区三区| wwwwxxxxx欧美| 99精品一区二区三区| 亚洲综合一区二区精品导航| 欧美精选午夜久久久乱码6080| 石原莉奈一区二区三区在线观看| 日韩一级大片在线观看| 国产乱人伦偷精品视频免下载| 国产精品亲子伦对白| 一本色道久久综合精品竹菊| 日韩精品乱码免费| 欧美激情综合五月色丁香 | 成人一区在线看| 亚洲品质自拍视频| 欧美一区二视频| 国产成人综合精品三级| 亚洲欧美一区二区三区国产精品 | 五月天欧美精品| 久久久久高清精品| 欧美在线不卡一区| 国产成人无遮挡在线视频| 亚洲一区在线电影| 久久色在线视频| 欧美三级一区二区| 国产成人aaa| 亚洲成人一区在线| 亚洲国产电影在线观看| 欧美一区二区免费视频| 成人av在线播放网址| 日韩精品一区第一页| 国产精品视频一二三| 91精品国产一区二区三区蜜臀| 成人国产精品免费观看动漫| 视频一区二区欧美| 亚洲人被黑人高潮完整版| 久久久久久久久免费| 欧美日韩国产系列| 色综合久久中文字幕综合网| 国产精品夜夜爽| 蜜桃av一区二区| 亚洲一区二区三区在线播放| 日本一区二区电影| 日韩一区二区三区av| 欧美亚洲精品一区| 99视频国产精品| 高清国产一区二区| 国产呦萝稀缺另类资源| 首页亚洲欧美制服丝腿| 亚洲制服丝袜在线| 亚洲免费资源在线播放| 国产欧美日韩麻豆91| 精品久久久久久久久久久久久久久| 色琪琪一区二区三区亚洲区| 成人午夜私人影院| 国产成人啪免费观看软件| 韩国精品一区二区| 久久99久久精品| 日本不卡在线视频| 日韩av中文字幕一区二区| 亚洲国产日韩a在线播放性色| 亚洲免费av观看| 亚洲欧美日韩电影| 亚洲六月丁香色婷婷综合久久 | 亚洲免费观看视频| 日韩美女久久久| 国产精品三级视频| 国产午夜精品福利| 欧美激情一区在线观看| 国产午夜精品一区二区三区视频| 久久婷婷国产综合精品青草| 2021中文字幕一区亚洲| 久久在线免费观看| 欧美韩国日本不卡| 国产精品久久久久四虎| 亚洲图片激情小说| 亚洲一区影音先锋| 日韩国产成人精品| 黑人巨大精品欧美一区| 国产成人激情av| 97精品视频在线观看自产线路二| 色婷婷综合久久久久中文| 欧美无乱码久久久免费午夜一区| 在线不卡中文字幕播放| 精品美女在线播放| 国产精品沙发午睡系列990531| 亚洲欧洲精品一区二区三区| 亚洲综合在线第一页| 日本视频中文字幕一区二区三区| 久久精品国产秦先生| 成人性生交大片免费看中文网站| 99久久国产综合精品麻豆| 欧美日韩一区二区三区在线| 日韩欧美国产一区二区三区| 久久亚洲一区二区三区四区| 中文字幕日韩欧美一区二区三区| 亚洲综合无码一区二区| 久久国内精品自在自线400部| 高清日韩电视剧大全免费| 欧美在线观看你懂的| 亚洲精品在线网站| 成人免费在线视频| 男男gaygay亚洲| 99国产精品久久久久久久久久| 欧美三级电影网| 国产欧美一区二区精品性| 一区二区三区欧美日韩| 国产伦精品一区二区三区在线观看 | 99国内精品久久| 日韩欧美国产电影| 一区二区三区欧美日| 国产在线不卡一区| 欧美性videosxxxxx| 欧美国产精品一区| 美女免费视频一区| 91日韩在线专区| 久久夜色精品国产欧美乱极品| 一区二区三区欧美视频| 国产成人精品午夜视频免费| 欧美一级片在线观看| 亚洲在线免费播放| 成人一区二区视频| 亚洲精品一区二区三区99| 天天亚洲美女在线视频| 91网站在线观看视频| 国产亚洲成av人在线观看导航| 日本欧美久久久久免费播放网| 99国产精品国产精品毛片| 国产日韩av一区二区| 日韩精品成人一区二区在线| 色婷婷狠狠综合| 日韩理论片在线| 不卡一区中文字幕| 国产午夜精品一区二区| 久久国产尿小便嘘嘘| 欧美日韩黄色影视| 亚洲精选视频免费看| av电影一区二区| 国产亚洲精品久| 国产一区二区三区日韩| 日韩精品专区在线| 日本va欧美va精品| 欧美一级理论片| 六月丁香婷婷色狠狠久久| 在线播放视频一区| 首页国产欧美日韩丝袜| 3d成人h动漫网站入口| 亚洲狠狠爱一区二区三区| 欧美午夜精品久久久| 亚洲一区二区三区四区不卡| 欧美日韩在线观看一区二区| 亚洲一区免费观看| 欧美日韩午夜在线视频| 亚洲成人综合在线|