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

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

?? impurity.java

?? m5 code is used to bring data mining algorithms implementation
?? 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.trees.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.6 $ */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: System.err.println("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)System.err.println("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一级做a爰片久久| 精品国产1区2区3区| 99久久精品费精品国产一区二区| 亚洲一线二线三线视频| 精品99一区二区三区| 色婷婷综合视频在线观看| 奇米亚洲午夜久久精品| 日韩理论片在线| 欧美一区日本一区韩国一区| 不卡的av在线| 老司机精品视频线观看86| 亚洲天堂成人在线观看| 日韩欧美在线网站| 91在线视频观看| 精品在线一区二区三区| 亚洲午夜久久久| 欧美激情艳妇裸体舞| 欧美性猛交xxxx黑人交| 成人综合在线观看| 久久av资源网| 亚洲gay无套男同| 国产精品久久久99| 久久新电视剧免费观看| 欧美乱妇一区二区三区不卡视频| jlzzjlzz欧美大全| 国精产品一区一区三区mba视频| 一区二区三区日韩精品视频| 久久久不卡网国产精品一区| 制服丝袜亚洲色图| 欧美影院一区二区| 色综合天天综合给合国产| 久久激情综合网| 日日夜夜精品视频免费| 亚洲猫色日本管| 国产精品久久久久婷婷| 国产片一区二区三区| 日韩三级在线观看| 欧美一区二区精品在线| 欧美三级韩国三级日本三斤 | 久久成人综合网| 亚洲午夜激情av| 亚洲激情综合网| 国产精品久99| 亚洲欧美综合在线精品| 欧美国产欧美亚州国产日韩mv天天看完整| 91精选在线观看| 欧美精品丝袜中出| 欧美日本一区二区三区四区| 成人三级在线视频| 国产成人免费在线视频| 国产精品99久久久久久宅男| 国内外成人在线| 精品午夜久久福利影院| 久久er99精品| 韩国v欧美v日本v亚洲v| 性做久久久久久免费观看 | 欧美一区二区三区视频免费播放 | 亚洲激情自拍偷拍| 一区二区三区成人| 国产精品精品国产色婷婷| 久久久蜜臀国产一区二区| 欧美韩日一区二区三区四区| 中文在线资源观看网站视频免费不卡 | 久久影音资源网| 久久久久99精品一区| 国产视频不卡一区| 欧美激情一区二区三区| 亚洲欧美日韩一区二区| 亚洲国产美国国产综合一区二区| 亚洲一区二区三区中文字幕| 最新不卡av在线| 99久久777色| 久久国产免费看| 国产综合色精品一区二区三区| 亚洲va欧美va人人爽午夜| 一区二区在线看| 亚洲bt欧美bt精品| 亚洲高清中文字幕| 日韩av在线发布| 蜜桃av一区二区在线观看| 另类成人小视频在线| 麻豆精品一区二区| 日本一道高清亚洲日美韩| 亚洲综合激情另类小说区| 一区二区三区在线观看视频 | 欧美三区在线观看| 日韩美女一区二区三区| 国产偷国产偷亚洲高清人白洁| 中文字幕一区二区5566日韩| 亚洲 欧美综合在线网络| 国产精品一区二区三区乱码 | 日韩午夜精品视频| 久久综合久久鬼色中文字| 国产精品欧美久久久久一区二区 | 日韩免费看的电影| 亚洲国产岛国毛片在线| 亚洲国产精品一区二区久久 | 亚洲一区二三区| 亚洲综合久久av| 成人av片在线观看| 欧美日韩国产综合一区二区三区| 国产欧美一区二区在线| 亚洲免费在线电影| 久久国产成人午夜av影院| 一本到一区二区三区| 精品国产乱码久久久久久久久| 亚洲少妇屁股交4| 麻豆国产精品777777在线| av在线播放成人| 欧美一区三区四区| 一区二区三区精品久久久| 激情综合五月婷婷| 欧美日韩午夜影院| 国产精品伦理一区二区| 午夜精品福利一区二区三区蜜桃| 成人黄色电影在线| 欧美一区二区福利在线| 一区二区免费看| 国产盗摄女厕一区二区三区| 欧美私模裸体表演在线观看| 日韩一区在线看| 91美女片黄在线| 亚洲视频资源在线| 91丨九色丨蝌蚪富婆spa| 国产精品女主播av| 99综合影院在线| 国产精品久久久久久久裸模| 丰满白嫩尤物一区二区| 久久久久久电影| 国产乱子伦一区二区三区国色天香 | 国产精品一级在线| 国产日韩亚洲欧美综合| 大白屁股一区二区视频| 国产欧美精品一区二区三区四区| 国产精品一级片在线观看| 久久亚洲一级片| 成人综合婷婷国产精品久久免费| 国产精品天干天干在观线| 成人av片在线观看| 一区二区三区免费网站| 欧美性大战久久久久久久 | 国产99精品在线观看| 国产精品麻豆视频| 91久久精品国产91性色tv| 亚洲综合精品久久| 欧美一区二区免费| 国产乱一区二区| 国产精品国产三级国产普通话三级| 本田岬高潮一区二区三区| 自拍av一区二区三区| 欧美四级电影网| 毛片一区二区三区| 久久久久久夜精品精品免费| 北条麻妃国产九九精品视频| 亚洲免费av高清| 日韩亚洲欧美中文三级| 国产精品91一区二区| 亚洲三级电影网站| 欧美高清你懂得| 国产一区二区调教| 亚洲色图欧美激情| 在线成人小视频| 国产一区二区三区黄视频 | 国产精品久久毛片| 精品污污网站免费看| 黑人巨大精品欧美一区| 自拍视频在线观看一区二区| 9191成人精品久久| 成人污污视频在线观看| 亚洲成人免费电影| 国产欧美日韩不卡免费| 欧美日韩aaaaaa| 99久久婷婷国产| 免费观看成人鲁鲁鲁鲁鲁视频| 中文字幕不卡的av| 欧美日韩国产中文| 国产精品一区2区| 亚洲成人动漫在线免费观看| 久久蜜桃av一区精品变态类天堂| 在线观看一区日韩| 国产一区二区三区黄视频| 亚洲风情在线资源站| 国产精品丝袜在线| 欧美一级理论片| 日本二三区不卡| 国产精品一二三四五| 日韩在线a电影| 综合精品久久久| xf在线a精品一区二区视频网站| 色噜噜狠狠色综合中国| 国产精品一区二区三区乱码| 日韩精品视频网站| 依依成人精品视频| 国产欧美日韩三级| 日韩免费观看高清完整版在线观看| 一本久道久久综合中文字幕 | 日韩色视频在线观看| 91成人国产精品|