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

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

?? impurity.java

?? 數(shù)據(jù)挖掘classifiers算法
?? 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一区二区三区免费野_久草精品视频
韩国理伦片一区二区三区在线播放| 丝袜亚洲另类欧美| 成人激情综合网站| 中文字幕精品一区二区三区精品| 国产一区视频网站| 亚洲色图欧美激情| 日韩欧美一区二区在线视频| 久草在线在线精品观看| 国产嫩草影院久久久久| 色嗨嗨av一区二区三区| 男人操女人的视频在线观看欧美| 日韩欧美亚洲国产精品字幕久久久 | 久久99精品国产91久久来源| 久久精品亚洲麻豆av一区二区 | 国产精品资源站在线| 国产精品久久久久久久久久久免费看| 欧美视频三区在线播放| 久久99精品一区二区三区三区| 亚洲国产精品ⅴa在线观看| 欧美日韩在线观看一区二区| 久久成人羞羞网站| 亚洲成av人片一区二区三区 | 日韩欧美国产1| 91美女福利视频| 国产九色sp调教91| 九色porny丨国产精品| 亚洲综合一区在线| 亚洲日本在线视频观看| 精品久久一区二区三区| 欧美日韩一区小说| 欧美美女一区二区在线观看| 99免费精品视频| 成人美女视频在线观看18| 韩国一区二区三区| 国产在线精品一区二区不卡了| 丝袜美腿高跟呻吟高潮一区| 无吗不卡中文字幕| 天天操天天综合网| 久久99久久精品| 精品无码三级在线观看视频| 精品一区二区三区免费毛片爱| 日韩精品一级中文字幕精品视频免费观看| 亚洲伦理在线精品| 亚洲激情中文1区| 强制捆绑调教一区二区| 久久精品国产久精国产| 国产成人自拍高清视频在线免费播放| 国产在线播放一区| 99久久婷婷国产| 日韩欧美国产综合在线一区二区三区 | 国产日韩欧美激情| 亚洲乱码国产乱码精品精小说 | av影院午夜一区| 欧美久久久一区| 亚洲精品在线三区| 亚洲一区二区在线观看视频 | 奇米精品一区二区三区在线观看| 蜜桃视频一区二区| 高清不卡一区二区| 在线一区二区三区| 日韩一区二区麻豆国产| 国产日产欧产精品推荐色| 国产精品色在线| 青娱乐精品视频| 不卡的电影网站| 精品日韩99亚洲| 一区二区三区四区不卡视频| 极品少妇一区二区| 在线观看不卡一区| 国产精品麻豆99久久久久久| 亚洲午夜影视影院在线观看| 国产成人av电影在线| 欧美性大战xxxxx久久久| 国产日韩欧美精品电影三级在线| 亚洲午夜精品17c| 91丨九色porny丨蝌蚪| 久久久精品国产99久久精品芒果| 丝袜国产日韩另类美女| 欧美性videosxxxxx| 亚洲日本一区二区| av成人动漫在线观看| 欧美日韩在线直播| 亚洲色图一区二区| 蜜臀精品一区二区三区在线观看| 欧美日韩三级在线| 天堂一区二区在线免费观看| 欧美色区777第一页| 亚洲福利电影网| 7777精品伊人久久久大香线蕉的 | 成人18视频在线播放| 国产精品久久久久久久久搜平片| 久久福利视频一区二区| 欧美不卡一区二区三区四区| 麻豆freexxxx性91精品| 色婷婷久久99综合精品jk白丝| 亚洲日本中文字幕区| 欧美日韩成人一区| 日韩成人免费看| 久久综合色8888| 91香蕉视频mp4| 水野朝阳av一区二区三区| 色系网站成人免费| 九九精品一区二区| 亚洲国产另类av| 久久久九九九九| 欧美性大战久久久久久久| 久久精品99国产精品| 亚洲欧美日韩久久| 国产日本亚洲高清| 欧美一区二区三区在线视频| 波多野结衣中文字幕一区二区三区 | 日韩中文字幕91| 欧美一区二区三区日韩| 成年人国产精品| 韩国欧美国产1区| 无码av中文一区二区三区桃花岛| 国产精品视频一二三| 欧美成人乱码一区二区三区| 一本到三区不卡视频| 91在线看国产| 盗摄精品av一区二区三区| 麻豆精品久久久| 日韩电影免费在线看| 亚洲国产精品国自产拍av| 91精品国产综合久久小美女| 欧美日韩一本到| 不卡一区二区在线| 波多野结衣视频一区| eeuss鲁片一区二区三区在线观看| 另类小说综合欧美亚洲| 日本麻豆一区二区三区视频| 亚洲成人久久影院| 日韩精品欧美精品| 免费人成网站在线观看欧美高清| 中文字幕日韩一区| 亚洲三级小视频| 国产精品区一区二区三区| 国产欧美视频一区二区| 国产精品日韩精品欧美在线| 亚洲欧洲日韩av| 亚洲综合成人在线| 精品一区二区三区的国产在线播放| 激情伊人五月天久久综合| 99久久精品费精品国产一区二区| 91亚洲精华国产精华精华液| 91精品福利在线一区二区三区| 欧美日韩日日摸| 精品少妇一区二区三区| 亚洲精品第一国产综合野| 麻豆极品一区二区三区| 在线一区二区三区| 国产精品私人影院| 无吗不卡中文字幕| 99精品1区2区| 久久久精品天堂| 久久99精品久久久久久国产越南| eeuss影院一区二区三区| 精品精品国产高清一毛片一天堂| 亚洲天堂av一区| 成人午夜精品在线| 精品国产一区a| 免费看欧美美女黄的网站| 一本色道久久加勒比精品| 国产色91在线| 国产综合久久久久影院| 欧美日韩一区二区三区不卡| 日韩一区欧美小说| 色av成人天堂桃色av| 国产免费观看久久| 成人美女视频在线看| 欧美精品一区二区三区一线天视频 | 亚洲色欲色欲www在线观看| 成人开心网精品视频| 中文字幕av资源一区| 美女脱光内衣内裤视频久久网站 | 欧美一卡二卡三卡四卡| 亚洲欧美一区二区不卡| 一本大道久久a久久综合婷婷| 国产精品久久一卡二卡| 97se亚洲国产综合在线| 中文字幕日韩一区| 欧美精品乱码久久久久久 | 99久久99久久精品免费观看| 国产精品久久久久影院亚瑟| 免费成人av资源网| 日韩一区二区麻豆国产| 制服丝袜亚洲色图| 日韩黄色免费网站| 欧美撒尿777hd撒尿| 中文字幕成人在线观看| 欧美性大战久久| 婷婷亚洲久悠悠色悠在线播放| 成人一级黄色片| 亚洲国产aⅴ天堂久久| 久久伊人蜜桃av一区二区| 97久久超碰精品国产| 免费av网站大全久久| 亚洲精品老司机| 国产欧美日韩亚州综合 | 国产欧美一区二区在线|