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

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

?? id3inducer.java

?? 用C編寫的數據挖掘的相關算法
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
               if (mutualInfoAboveMean || !foundScoreAboveMean) {
//                  MLJ.ASSERT(meanMutualInfo != Globals.UNDEFINED_REAL);
                  logOptions.LOG(3, ", and that "+split.score()+" > "+meanMutualInfo+'\n');
                  double score = split.score();
                  logOptions.LOG(3,"Testing attribute "+attrNum+" ("+schema.attr_name(attrNum)+"): "+'\n');
//                  logOptions.LOG(3,split);
//                  logOptions.LOG(3,"Comparing score ("+score+") against max score + eps ("+
//                     (maxScore+MLJ.realEpsilon())+")"+'\n');
                  if (score > maxScore + MLJ.realEpsilon ||
                     (!foundScoreAboveMean && mutualInfoAboveMean)) {
                     logOptions.LOG(2,"Chose attribute "+attrNum+'\n');
                     maxScore = score;
                     bestSplit[0] = split;
                     logOptions.LOG(3,"max score becomes "+maxScore+'\n');
                  }
                  if (mutualInfoAboveMean)
                     foundScoreAboveMean = true;
               } else{
                  logOptions.LOG(3,"...not above mean"+'\n');
               }
            }
         }
      }
   }

   /** Checks if all attributes are multi-valued. An attribute is multivalued if
    * an instance can have more than one value at one time. If the attribute
    * contains values that are neither real or nominal, an abort message is issued.
    * @return False if the values are real numbers or if the nominal values are
    * not multivalued. Otherwise True is returned.
    */
   public boolean all_attributes_multi_val() 
   {
      boolean multiVal = true;
      Schema schema = TS.get_schema();
      for (int attrNum = 0; attrNum < schema.num_attr() && multiVal; attrNum++){
         if (schema.attr_info(attrNum).can_cast_to_real())
            multiVal = false;
         else if (schema.attr_info(attrNum).can_cast_to_nominal())
            multiVal = multi_val_attribute(attrNum);
               else
                  MLJ.Abort();
      }
      return multiVal;
   }
   /** Compute the split information for a given attribute.
    * @param attrNum The index number of this attribute column.
    * @param split The attribute to be split on.
    */
   public void split_info(int attrNum, SplitAttr split)
   {
      split_info(attrNum, split, null);
   }

   /** Compute the split information for a given attribute.
    * @param attrNum     The index number of this attribute column.
    * @param split       The attribute to be split on.
    * @param realColumns The columns of values specified for each attribute over
    * all instances in a data set.
    */
   public void split_info(int attrNum, SplitAttr split,
		   RealAndLabelColumn[] realColumns) 
   {
      Schema schema = TS.get_schema();

      if (attrNum < 0 || attrNum > schema.num_attr())
         Error.fatalErr("ID3Inducer::split_info: attrNum " + attrNum +
            " not in range 0 to " + schema.num_attr());
   
      logOptions.LOG(2,"Testing attribute "+attrNum+" ("+TS.get_schema().attr_name(attrNum)+"): ");

   // split needs to know if the Minimum Description Length Adjustment
   //   for continuous attributes needs to be applied.
      split.set_penalize_by_mdl(get_cont_mdl_adjust());
      double minSplit = Entropy.min_split(instance_list(),
			     get_lower_bound_min_split_weight(),
			     get_upper_bound_min_split_weight(),
			     get_min_split_weight_percent());
      double nominalMinSplit = minSplit;
      if (get_nominal_lbound_only()) {
         nominalMinSplit = get_lower_bound_min_split_weight();
         if (nominalMinSplit < 1)
            Error.fatalErr("split_info:  lowerBoundMinSplit (" +
               nominalMinSplit+") must be at least one");
      }
      logOptions.LOG(4,"Min split: "+(int)minSplit+", nominal min split: "+(int)nominalMinSplit+'\n');

   // If the attribute is nominal and has more than one value, then use
   //   mutual_info or gain_ratio to determine the information gained by
   //   splitting on it.
      if (schema.attr_info(attrNum).can_cast_to_nominal()) {
         split.set_split_score_criterion(get_split_score_criterion());
         if (SplitAttr.ok_to_split(attrNum, TS.counters(), nominalMinSplit)) {
            split.make_nominal_split(instance_list(), attrNum);
            logOptions.LOG(2,"Criterion score for attribute "+attrNum+" is "+split.score()+'\n');
	 MLJ.ASSERT(split.score() >= 0, "ID3Inducer::split_info(): split.score() >= 0");
         }
      }
   // Otherwise the attribute should be real and real_mutual_info is used
   //   to determine the threshold which gives the maximum information
   //   gain when split on.
      else if (schema.attr_info(attrNum).can_cast_to_real()) {
      // Find the best threshold (in find_best_threshold(), invoked through
      //   make_real_split()) based on the default split criterion; then
      //   set the criterion back.
      // @@ This will be an option for reals.
         if (realColumns == null)
            Error.fatalErr("ID3Inducer::split_info: can't split on real attribute "+
               schema.attr_name(attrNum)+" -- realColumns is null");
         RealAndLabelColumn column = realColumns[attrNum];
         if (column == null)
            Error.fatalErr("ID3Inducer::split_info: can't split on real attribute "+
               schema.attr_name(attrNum)+" -- the given column is null");
         column.sort();

         split.set_split_score_criterion(SplitScore.defaultSplitScoreCriterion);
         split.set_penalize_by_mdl(false);
         split.make_real_split(column, attrNum, minSplit,
            get_smooth_inst(), get_smooth_factor());
         split.set_split_score_criterion(get_split_score_criterion());
         split.set_penalize_by_mdl(get_cont_mdl_adjust());
         if (split.exist_split()) {
            logOptions.LOG(2,"Threshold: "+split.threshold()+", criterion score: "+
               split.score()+", entropy: "+split.get_entropy()+'\n');
            MLJ.ASSERT(split.score() >= 0, "ID3Inducer::split_info(): split.score() >= 0");
         }
      } else
         MLJ.Abort();
      
      if (split.split_type() == SplitAttr.noReasonableSplit)
      	logOptions.LOG(2,"No reasonable split"+'\n');
   }

//   public void set_unknown_edges(){ }

//   public void display_struct(){ }

//Additions by JL

//   private NO_DEFAULT_OPS(ID3Inducer);

   /** Create an Inducer for recursive calls. Since TDDTInducer is an abstract
    * class, it can't do the recursive call.
    * @param descr   The description of the new subinducer.
    * @param aCgraph A previously defined Cgraph for the inducer.
    * @return The new sub-ID3Inducer created.
    */
   public TDDTInducer create_subinducer(String descr, CGraph aCgraph) 
   {
      ID3Inducer inducer = new ID3Inducer(descr, aCgraph);
      inducer.copy_options(this);
      inducer.set_level(get_level() + 1);
      return inducer;
   }

   /** Build categorizer for the given attribute. The specified SplitAttr is
    * assumed to be valid.
    * @param split    The attribute to be split on.
    * @param catNames The category names that an instance may be categorized
    * under.
    * @return The NodeCategorizer containing a categorizer that splits on this
    * attribute.
    */
   public NodeCategorizer split_to_cat(SplitAttr split,
					 LinkedList catNames) 
   {
      int attrNum = split.get_attr_num();
      Schema schema = TS.get_schema();

//   MLJ.ASSERT(split.split_type() != SplitAttr::noReasonableSplit);
//   MLJ.ASSERT(attrNum >= 0);
//   MLJ.ASSERT(split.score() >= 0);
   
   // Else, build the categorizer
      String attrName = schema.attr_info(attrNum).name();
      if (get_debug()) {
         attrName = attrName+" (#=" + TS.num_instances()+
            "\\nENT="+ split.get_entropy()+
            "\\nMI=" + split.get_mutual_info(false, false)+
            "\\nGAIN=" + split.get_gain_ratio(false);
         if (split.get_penalize_by_mdl())
            attrName =attrName+"\\nMDL penalty=" + split.penalty();
         attrName =attrName+"\\nSCORE=" + split.score() + ")";
      }

      if (schema.attr_info(attrNum).can_cast_to_nominal()) {
//         MLJ.ASSERT(split.split_type() == SplitAttr::nominalSplit);
         NominalAttrInfo nai = schema.attr_info(attrNum).cast_to_nominal();
         int size = nai.num_values() + 1; // +1 for unknown
//         catNames = new String[size];//(Globals.UNKNOWN_CATEGORY_VAL, size);
         catNames.add(Globals.UNKNOWN_CATEGORY_VAL,"?");
         int cat = Globals.FIRST_CATEGORY_VAL;
         for (int i = 1; i < size; i++, cat++)
            catNames.add(cat,nai.get_value(i));

//UNKNOWN_NOMINAL_VAL is now 0 instead of -1. As a result, the 
//original input value for get_value would have been out of bounds 
//for the number of values. - JL
//            catNames.add(cat,nai.get_value(i + Globals.UNKNOWN_NOMINAL_VAL));
      
         return new AttrCategorizer(schema, attrNum, attrName);
      }
      else if (schema.attr_info(attrNum).can_cast_to_real()) {
         if (split.split_type() == SplitAttr.realThresholdSplit) {
            logOptions.LOG(5, split.threshold()+""+'\n');	 
            ThresholdCategorizer cat = new
            ThresholdCategorizer(schema, attrNum, split.threshold(),
               attrName);
		String[] categories = cat.real_edge_strings();
            for(int z = 0; z < categories.length; z++)
			catNames.add(z,categories[z]);
            return cat;
         } else {
            Error.fatalErr("ID3Inducer::split_to_cat: bad split type for "+
               "continuous attribute "+attrNum);
            return null;
         }
      } else {
         Error.fatalErr("ID3Inducer::split_to_cat: unrecognized attribute type"+
            " for attribute "+attrNum);
         return null;
      }
   }

   /** Returns the reference to the copy of ID3Inducer with the same settings.
    * @return A reference to an ID3Inducer.
    */
   public Inducer copy() 
   {
      Inducer ind = new ID3Inducer(this);
      return ind;
   }

   /** Returns the class id of this of this inducer.
    * @deprecated This method should be replaced with Java's instanceof operator.
    * @return Integer assigned to this inducer.
    */
   public int class_id(){ return ID3_INDUCER; }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成a人亚洲精品| 91精品国产入口| 国产成人av一区| 激情av综合网| 激情图片小说一区| 国产一区二区在线免费观看| 国模套图日韩精品一区二区| 久久激情五月婷婷| 激情另类小说区图片区视频区| 精品一区二区三区av| 国产在线播放一区二区三区| 国产高清不卡二三区| 日韩码欧中文字| 亚洲美女屁股眼交| 天天射综合影视| 久久99热这里只有精品| 狠狠色狠狠色合久久伊人| 国产精品亚洲成人| 99久久精品国产精品久久| 色婷婷综合中文久久一本| 欧美裸体bbwbbwbbw| 日韩一区二区电影在线| 久久久国产一区二区三区四区小说 | 国产日韩欧美电影| 中文av字幕一区| 亚洲日本一区二区三区| 偷窥国产亚洲免费视频| 狠狠色狠狠色综合| av午夜一区麻豆| 欧美电影在线免费观看| 久久一区二区三区四区| 国产精品毛片a∨一区二区三区| 亚洲三级电影网站| 日日夜夜精品视频天天综合网| 紧缚捆绑精品一区二区| 加勒比av一区二区| 色综合天天做天天爱| 91精品国产一区二区| 国产视频一区在线播放| 一区二区三区四区在线播放| 日本少妇一区二区| 国产电影一区在线| 99re这里只有精品首页| 欧美综合天天夜夜久久| 欧美男生操女生| 精品国产欧美一区二区| 久久久精品综合| 久久亚洲精华国产精华液 | 欧美少妇一区二区| 欧美在线观看视频一区二区三区| 欧美另类高清zo欧美| 精品日产卡一卡二卡麻豆| 国产日韩欧美激情| 亚洲精品免费电影| 麻豆精品一区二区三区| 国产一区二区剧情av在线| 色94色欧美sute亚洲线路一ni | 国产精品美女一区二区三区| 亚洲妇熟xx妇色黄| 成人精品高清在线| 日韩视频中午一区| 亚洲人成小说网站色在线 | 欧美人动与zoxxxx乱| 国产亚洲午夜高清国产拍精品| 一区2区3区在线看| 国产成人精品影院| 日韩欧美精品在线视频| 亚洲韩国精品一区| av不卡一区二区三区| 精品日韩在线观看| 午夜久久电影网| 91麻豆swag| 国产欧美一区二区三区鸳鸯浴| 婷婷中文字幕一区三区| 91久久精品日日躁夜夜躁欧美| 国产日韩欧美不卡| 极品瑜伽女神91| 欧美一区二区三区视频免费| 亚洲黄色av一区| 波多野结衣亚洲一区| 精品99999| 蜜桃视频在线一区| 7777精品伊人久久久大香线蕉超级流畅 | 青青青爽久久午夜综合久久午夜| 色综合久久久网| 国产精品国产成人国产三级| 国产一区二区三区最好精华液| 777久久久精品| 亚洲v日本v欧美v久久精品| 91网页版在线| 国产精品国产三级国产普通话蜜臀| av日韩在线网站| 久久久久青草大香线综合精品| 日本不卡的三区四区五区| 欧美日韩一区二区三区在线| 亚洲摸摸操操av| 一本久道久久综合中文字幕| 国产精品免费aⅴ片在线观看| 国产精品69毛片高清亚洲| 精品少妇一区二区三区视频免付费| 蜜臀av性久久久久av蜜臀妖精| 欧美一级午夜免费电影| 免费成人结看片| 日韩欧美一二区| 精品一区二区综合| 久久久亚洲国产美女国产盗摄| 韩国在线一区二区| 久久九九久精品国产免费直播| 国产在线视频一区二区| 亚洲精品一区二区三区在线观看| 久久精品国产亚洲一区二区三区| 欧美一卡二卡三卡四卡| 日韩1区2区3区| 精品成人一区二区| 国产精品中文字幕欧美| 国产亚洲女人久久久久毛片| 高清不卡在线观看av| 国产精品免费视频观看| 91麻豆自制传媒国产之光| 亚洲欧美另类综合偷拍| 欧美日韩久久久| 免费观看一级特黄欧美大片| 精品日本一线二线三线不卡| 国产精品资源在线观看| 国产精品色哟哟| 在线观看亚洲精品| 免费一级欧美片在线观看| 久久综合九色综合97婷婷女人| 国产乱子轮精品视频| 国产精品久久综合| 在线看一区二区| 久久精品999| 国产精品视频免费| 在线观看国产一区二区| 全国精品久久少妇| 国产日韩精品久久久| 91色视频在线| 日韩福利电影在线观看| 久久久99精品久久| 欧美在线制服丝袜| 精品一二线国产| 中文字幕日韩欧美一区二区三区| 欧美视频一区在线| 国产精品羞羞答答xxdd| 自拍偷拍亚洲综合| 日韩一区二区三区视频在线| 国产精品99久久久久久宅男| 伊人婷婷欧美激情| 日韩精品综合一本久道在线视频| 粉嫩av一区二区三区粉嫩| 亚洲午夜精品在线| 久久久精品黄色| 欧美日韩精品欧美日韩精品一| 国产精品一区免费在线观看| 夜夜爽夜夜爽精品视频| 久久人人97超碰com| 欧美午夜精品一区二区蜜桃| 国产一区在线视频| 亚洲国产精品久久艾草纯爱| 久久久精品蜜桃| 91精品国产福利在线观看 | 国产欧美一区二区三区网站| 欧美日韩亚洲综合一区| 国产成人av电影免费在线观看| 亚洲成a人片在线观看中文| 国产精品入口麻豆九色| 欧美一级欧美三级在线观看| av男人天堂一区| 韩国欧美一区二区| 一区二区免费在线播放| 久久久久久免费| 91精品国产一区二区| 在线一区二区三区四区| 成人性生交大片| 久久99久久久久| 亚洲午夜久久久久久久久电影网 | 精品理论电影在线| 欧美日韩免费一区二区三区视频| 成人午夜大片免费观看| 精品一区二区三区视频在线观看| 亚洲精品日日夜夜| 国产精品久久久久久久久动漫| 日韩免费高清视频| 91精品国产色综合久久ai换脸| 一本久道久久综合中文字幕| 成人少妇影院yyyy| 国产综合色产在线精品| 日本欧美一区二区| 亚洲午夜精品一区二区三区他趣| 综合激情网...| 欧美高清在线一区二区| 亚洲日本丝袜连裤袜办公室| 日本一区二区三区四区| 久久天堂av综合合色蜜桃网| 3d动漫精品啪啪1区2区免费| 欧美性高清videossexo| 91精品1区2区| 一本在线高清不卡dvd| 91色在线porny| 色视频成人在线观看免|