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

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

?? impurity.java

?? :<<數(shù)據(jù)挖掘--實用機器學習技術(shù)及java實現(xiàn)>>一書的配套源程序
?? 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. *//* *    Impurity.java *    Copyright (C) 1999 Yong Wang * */package weka.classifiers.m5;import java.io.*;import java.util.*;import weka.core.*;/** * Class for handling the impurity values when spliting the instances * @author Yong Wang (yongwang@cs.waikato.ac.nz) * @version $Revision: 1.4 $ */public final class Impurity{  double n;                   // number of total instances   int attr;                   // splitting attribute   double nl;                  // number of instances in the left group   double nr;                  // number of instances in the right group   double sl;                  // sum of the left group    double sr;                  // sum of the right group   double s2l;                 // squared sum of the left group   double s2r;                 // squared sum of the right group   double sdl;                 // standard deviation of the left group   double sdr;                 // standard deviation of the right group   double vl;                  // variance of the left group   double vr;                  // variance of the right group   double sd;                  // overall standard deviation   double va;                  // overall variance   double impurity;            // impurity value;  int order;                  // order = 1, variance; order = 2, standard deviation; order = 3, the cubic root of the variance;                                // order = k, the k-th order root of the variance  /**   * Constructs an Impurity object containing the impurity values of partitioning the instances using an attribute   * @param partition the index of the last instance in the left subset   * @param attribute the attribute used in partitioning   * @param inst instances   * @param k the order of the impurity; =1, the variance; =2, the stardard deviation; =k, the k-th order root of the variance   */  public Impurity(int partition,int attribute,Instances inst,int k){    Values values = new Values(0,inst.numInstances()-1,inst.classIndex(),inst);    attr = attribute;    n   = inst.numInstances();    sd  = values.sd;     va  = values.va;    values = new Values(0,partition,inst.classIndex(),inst);    nl  = partition + 1;    sl  = values.sum;    s2l = values.sqrSum;    values = new Values(partition+1,inst.numInstances()-1,inst.classIndex(),inst);    nr  = inst.numInstances() - partition -1;    sr  = values.sum;    s2r = values.sqrSum;    order = k;    this.incremental(0,0);  }  /**   * Converts an Impurity object to a string   * @return the converted string   */  public final String  toString() {        StringBuffer text = new StringBuffer();        text.append("Print impurity values:\n");    text.append("    Number of total instances:\t" + n + "\n");    text.append("    Splitting attribute:\t\t" + attr + "\n");    text.append("    Number of the instances in the left:\t" + nl + "\n");    text.append("    Number of the instances in the right:\t" + nr + "\n");    text.append("    Sum of the left:\t\t\t" + sl + "\n");    text.append("    Sum of the right:\t\t\t" + sr + "\n");    text.append("    Squared sum of the left:\t\t" + s2l + "\n");     text.append("    Squared sum of the right:\t\t" + s2r + "\n");    text.append("    Standard deviation of the left:\t" + sdl + "\n");    text.append("    Standard deviation of the right:\t" + sdr + "\n");    text.append("    Variance of the left:\t\t" + vr + "\n");    text.append("    Variance of the right:\t\t" + vr + "\n");    text.append("    Overall standard deviation:\t\t" + sd + "\n");    text.append("    Overall variance:\t\t\t" + va + "\n");    text.append("    Impurity (order " + order + "):\t\t" + impurity + "\n");    return text.toString();  }    /**   * Incrementally computes the impurirty values   * @param value the incremental value    * @param type if type=1, value will be added to the left subset; type=-1, to the right subset; type=0, initializes   */  public final void  incremental(double value,int type){    double y=0.,yl=0.,yr=0.;    switch(type){    case 1:      nl += 1;      nr -= 1;      sl += value;      sr -= value;      s2l += value*value;      s2r -= value*value;      break;    case -1:      nl -= 1;      nr += 1;      sl -= value;      sr += value;      s2l -= value*value;      s2r += value*value;      break;    case 0:      break;    default: M5Utils.errorMsg("wrong type in Impurity.incremental().");    }    if(nl<=0.0){      vl=0.0;      sdl=0.0;    }    else {      vl = (nl*s2l-sl*sl)/((double)nl*((double)nl));      vl = Math.abs(vl);      sdl = Math.sqrt(vl);    }    if(nr<=0.0){      vr=0.0;      sdr=0.0;    }    else {      vr = (nr*s2r-sr*sr)/((double)nr*((double)nr));      vr = Math.abs(vr);      sdr = Math.sqrt(vr);    }    if(order <= 0)M5Utils.errorMsg("Impurity order less than zero in Impurity.incremental()");    else if(order == 1) {      y = va; yl = vl; yr = vr;    } else {      y  = Math.pow(va,1./order);      yl = Math.pow(vl,1./order);      yr = Math.pow(vr,1./order);    }    if(nl<=0.0 || nr<=0.0)      impurity = 0.0;    else {       impurity = y - ((double)nl/(double)n)*yl - ((double)nr/(double)n)*yr;    }  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
九九视频精品免费| 正在播放亚洲一区| a美女胸又www黄视频久久| 国产乱码精品1区2区3区| 国产一区二区三区免费看| 国产一区二区三区黄视频 | 91免费国产在线| 99久久99久久精品国产片果冻| 成人在线一区二区三区| 日本一区二区三区久久久久久久久不| 91精品久久久久久蜜臀| 亚洲欧美日韩人成在线播放| 日韩欧美你懂的| 欧美大片一区二区| 久久综合狠狠综合久久激情| 久久精品免费在线观看| 亚洲国产精品av| 亚洲蜜臀av乱码久久精品| 亚洲图片有声小说| 麻豆91免费观看| 国产精品主播直播| 91网站最新网址| 欧美日韩免费一区二区三区| 日韩欧美区一区二| 国产精品久久三| 亚洲高清免费在线| 国内精品写真在线观看| eeuss鲁片一区二区三区在线看| 97se狠狠狠综合亚洲狠狠| 欧美日本在线看| 91精品视频网| 国产精品免费丝袜| 亚洲午夜精品在线| 精彩视频一区二区三区| 91在线观看污| 欧美一区二区三区啪啪| 亚洲国产日韩精品| 欧美日韩在线不卡| 色综合天天综合狠狠| 欧美精品三级在线观看| 欧美mv日韩mv亚洲| 国产精品国产三级国产三级人妇| 精品一区二区三区在线观看| av激情综合网| 91精选在线观看| 中文字幕一区在线观看视频| 日韩和的一区二区| 成人免费高清在线| 欧美一区二区私人影院日本| 国产精品美女www爽爽爽| 三级影片在线观看欧美日韩一区二区| 国产精品亚洲专一区二区三区| 色综合久久九月婷婷色综合| 日韩视频一区二区在线观看| 亚洲美女在线国产| 国产美女一区二区三区| 欧美精品久久久久久久多人混战| 久久免费精品国产久精品久久久久| 亚洲黄色免费网站| 高清国产一区二区三区| 日韩一区二区在线看| 亚洲免费观看高清| 成人午夜视频在线观看| 国产一区二区精品久久99| 欧美精品免费视频| 国产九色精品成人porny | 色爱区综合激月婷婷| 精品国内片67194| 亚洲一区二区视频在线观看| 成年人午夜久久久| 精品国产一区二区三区久久影院 | 亚洲精品国产一区二区精华液| 久久精品国产999大香线蕉| 欧美三级日韩三级| 亚洲欧美激情视频在线观看一区二区三区| 久久成人免费网站| 91精品在线免费| 亚洲成人动漫一区| 在线欧美一区二区| 中文字幕一区视频| 懂色av一区二区三区蜜臀| 久久亚洲综合色| 老司机午夜精品99久久| 5月丁香婷婷综合| 亚洲国产精品麻豆| 国产亚洲精品7777| 久久99精品视频| 成人av午夜电影| 色婷婷综合五月| 欧美mv和日韩mv国产网站| 日本中文字幕一区二区有限公司| 91国偷自产一区二区开放时间| 国产精品国产三级国产| 成人h动漫精品一区二| 国产亚洲精品bt天堂精选| 国产伦精品一区二区三区在线观看| 日韩丝袜美女视频| 激情五月播播久久久精品| 日韩精品一区二区三区中文不卡| 日本美女一区二区三区视频| 欧美日韩激情一区| 日本免费在线视频不卡一不卡二| 欧美日韩国产bt| 秋霞影院一区二区| 日韩欧美一区二区视频| 久久成人免费网站| 久久毛片高清国产| 丁香亚洲综合激情啪啪综合| 国产精品久久久久久久久动漫| 成人av资源下载| 亚洲色图色小说| 欧美中文字幕一区二区三区 | 韩国v欧美v日本v亚洲v| 久久久久国产精品厨房| 国产黄人亚洲片| 亚洲天堂精品在线观看| 日韩精品一区二区三区视频播放 | 一区二区三区免费观看| bt7086福利一区国产| 日韩毛片精品高清免费| 欧美在线观看视频一区二区 | 国产iv一区二区三区| 国产清纯白嫩初高生在线观看91 | 99久久国产综合精品色伊| 中文字幕一区二区不卡| 91成人在线精品| 日本在线观看不卡视频| 2020日本不卡一区二区视频| 成人激情动漫在线观看| 亚洲女女做受ⅹxx高潮| 4438x成人网最大色成网站| 免费成人性网站| 国产精品水嫩水嫩| 欧美性大战久久| 国产曰批免费观看久久久| 1000精品久久久久久久久| 欧美精品日韩综合在线| 国产老肥熟一区二区三区| 成人欧美一区二区三区| 欧美精品色综合| 丁香婷婷综合激情五月色| 一二三四社区欧美黄| 精品国免费一区二区三区| 99久久精品国产毛片| 石原莉奈在线亚洲二区| 中文字幕欧美区| 欧美精品三级在线观看| 成人午夜av影视| 日日摸夜夜添夜夜添亚洲女人| 欧美激情在线观看视频免费| 一本久久综合亚洲鲁鲁五月天 | 亚洲精品国产一区二区精华液| 在线免费观看视频一区| 久久国产尿小便嘘嘘尿| 亚洲天堂免费在线观看视频| 日韩一本二本av| 色综合久久综合中文综合网| 久久精品999| 亚洲综合成人在线| 欧美国产综合色视频| 欧美日本不卡视频| av日韩在线网站| 国内精品伊人久久久久av一坑 | 99久久精品一区| 久久精品国产一区二区| 一区二区三区四区亚洲| 久久天堂av综合合色蜜桃网 | 亚洲午夜电影在线观看| 国产欧美日产一区| 日韩午夜av电影| 在线观看国产精品网站| 盗摄精品av一区二区三区| 日本不卡中文字幕| 亚洲一区中文日韩| 国产精品拍天天在线| 精品粉嫩超白一线天av| 欧美日韩性生活| 色综合天天综合网天天狠天天| 国产高清精品久久久久| 麻豆成人av在线| 日韩不卡一区二区三区| 一区二区三区色| 国产精品久久久久久户外露出| 精品国产3级a| 色综合天天做天天爱| 国产欧美日韩亚州综合 | 在线观看免费视频综合| 99在线精品视频| 福利电影一区二区| 国产精品一二三四| 精品一区二区成人精品| 免费久久99精品国产| 香蕉加勒比综合久久| 亚洲国产美女搞黄色| 亚洲免费电影在线| 亚洲激情av在线| 亚洲品质自拍视频| 亚洲激情在线播放| 一区二区三区成人| 亚洲一区二区三区四区五区中文|