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

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

?? impurity.java

?? wekaUT是 university texas austin 開發的基于weka的半指導學習(semi supervised learning)的分類器
?? 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.1.1.1 $ */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一区二区三区免费野_久草精品视频
国产精品香蕉一区二区三区| 555夜色666亚洲国产免| 欧洲视频一区二区| 欧美美女激情18p| 精品国产免费久久| 国产精品久久综合| 亚洲成av人影院在线观看网| 日本免费新一区视频| 国产成人免费视频网站| 欧美三级韩国三级日本三斤| 精品国产免费人成在线观看| 国产精品久久久久久户外露出| 亚洲精品视频在线观看免费| 久久99精品久久久久婷婷| 97久久精品人人做人人爽| 精品久久久久久亚洲综合网| 一区二区三区在线视频观看| 国产在线精品一区二区不卡了| 成人aa视频在线观看| 91精品在线免费| 亚洲精品免费一二三区| 国产米奇在线777精品观看| 欧美区视频在线观看| 亚洲综合视频在线| fc2成人免费人成在线观看播放| 在线播放日韩导航| 亚洲图片欧美综合| 在线免费视频一区二区| 亚洲欧洲精品天堂一级| 国产资源在线一区| 欧美一级精品大片| 日韩精品乱码免费| 欧美日韩精品一区二区三区四区| 亚洲人妖av一区二区| 91蜜桃在线免费视频| 国产精品传媒在线| 成人丝袜高跟foot| 最新国产の精品合集bt伙计| 99视频在线精品| 亚洲免费观看高清| 91福利视频在线| 一区二区在线看| 欧美精品三级日韩久久| 日韩av一级片| 337p日本欧洲亚洲大胆色噜噜| 看片的网站亚洲| 日本一区二区三区电影| 国产成人av影院| 亚洲欧美经典视频| 欧美久久久久久蜜桃| 精品一区二区三区日韩| 国产午夜精品理论片a级大结局| 国产成人综合视频| 亚洲免费在线播放| 欧美一区二区三区视频在线| 国产99久久精品| 亚洲精品视频在线| 欧美一区二区黄色| 99久久综合国产精品| 亚洲国产精品久久不卡毛片| 欧美va在线播放| 色偷偷一区二区三区| 久久99国产精品免费| 一区二区三区在线视频免费| 精品国产伦一区二区三区观看体验| 成人av在线资源网站| 日本在线播放一区二区三区| 国产精品久久久久久亚洲毛片| 在线电影一区二区三区| 99久久免费国产| 国产精品自拍一区| 午夜伦欧美伦电影理论片| 亚洲国产精品99久久久久久久久| 日韩精品一区二区三区视频播放 | 99国内精品久久| 日本不卡视频一二三区| 国产精品护士白丝一区av| 精品国产乱码91久久久久久网站| 欧洲生活片亚洲生活在线观看| 成人久久18免费网站麻豆 | 日本欧美在线观看| 亚洲高清久久久| 成人欧美一区二区三区| 中文字幕高清一区| 欧美国产一区二区在线观看 | 成人app下载| bt欧美亚洲午夜电影天堂| 国产一区二区久久| 国产一区欧美二区| 国产精品综合网| 国产乱码精品一区二区三区忘忧草| 午夜激情久久久| 欧美aⅴ一区二区三区视频| 亚洲成人一区二区在线观看| 午夜影院久久久| 日韩av高清在线观看| 日本欧美加勒比视频| 男人的天堂久久精品| 九色综合狠狠综合久久| 精品一区二区三区在线播放 | 欧美一区二区三区精品| 日韩视频一区二区三区在线播放 | 国产乱码字幕精品高清av| 国产伦理精品不卡| 91丝袜美女网| 欧美日本乱大交xxxxx| 日韩女优av电影| 国产精品国产精品国产专区不片| 亚洲欧美一区二区三区孕妇| 婷婷一区二区三区| 国产91精品精华液一区二区三区| 99久久综合精品| 91精品国产色综合久久| 亚洲国产高清不卡| aaa国产一区| 精品奇米国产一区二区三区| 久久久综合视频| 婷婷久久综合九色国产成人| 国产成人av电影在线| 欧美午夜精品一区| 国产目拍亚洲精品99久久精品| 亚洲欧美日韩国产手机在线| 久久精品国产色蜜蜜麻豆| 成人免费看视频| 久久色成人在线| 亚洲一区影音先锋| 成人网页在线观看| 欧美白人最猛性xxxxx69交| 夜夜精品视频一区二区| 国产精品一区久久久久| 欧美男生操女生| 一区二区三区免费看视频| 国产乱子伦一区二区三区国色天香| 欧美视频一区二区三区在线观看| 欧美精品一区二区三区高清aⅴ| 亚洲成人在线免费| 在线观看欧美精品| 亚洲综合久久久久| 国产亚洲精品中文字幕| 国产美女娇喘av呻吟久久| 日韩精品一区二区三区视频播放| 亚洲国产日韩综合久久精品| 97精品久久久午夜一区二区三区| 国产蜜臀97一区二区三区| 久久精品国产网站| 久久综合狠狠综合| 久久草av在线| 精品国产人成亚洲区| 国产一区二区调教| 久久久精品天堂| youjizz国产精品| 专区另类欧美日韩| 91福利国产精品| 亚洲一区视频在线| 日韩欧美一区二区三区在线| 老色鬼精品视频在线观看播放| 精品少妇一区二区三区在线播放| 精品在线播放免费| 国产色产综合色产在线视频 | 欧美一区二区三区四区五区 | 欧美高清视频www夜色资源网| 青青草91视频| 中文字幕免费观看一区| 色综合天天狠狠| 日韩黄色免费网站| 久久亚洲综合色| 色婷婷av一区二区| 捆绑调教一区二区三区| 欧美国产乱子伦| 欧美亚洲综合网| 国产一区在线观看视频| 亚洲午夜精品17c| ww亚洲ww在线观看国产| 91麻豆精东视频| 美美哒免费高清在线观看视频一区二区| 欧美电视剧免费全集观看| 日韩电影在线一区| 精品对白一区国产伦| 日韩欧美亚洲国产另类| 欧美一区二区大片| 欧美情侣在线播放| 日本高清免费不卡视频| 国产不卡在线视频| 九一久久久久久| 视频在线观看一区二区三区| 亚洲男人的天堂在线观看| 欧美激情中文字幕一区二区| 日韩女优av电影在线观看| 欧美日韩高清一区二区不卡| 色综合中文字幕| 91亚洲精品久久久蜜桃网站| 成人av在线影院| 91黄视频在线观看| 色婷婷国产精品| 欧美亚洲高清一区| 欧美日韩一区二区电影| 欧美三级韩国三级日本一级| 欧美午夜片在线观看| 制服丝袜成人动漫| 欧美成va人片在线观看|