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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? id3inducer.java

?? 此編碼是一個(gè)數(shù)據(jù)挖掘的決策樹(shù)各種算法。以作為入門(mén)提示
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
               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; }

}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
韩国欧美国产1区| 亚洲成人你懂的| 日韩成人一区二区| 91精品国产综合久久婷婷香蕉 | 欧美日韩一卡二卡| 亚洲午夜电影在线| 欧美精品在线一区二区| 久久99热这里只有精品| 国产清纯美女被跳蛋高潮一区二区久久w | 色哟哟一区二区在线观看| 一区二区三区在线高清| 91精品久久久久久久91蜜桃| 欧美日韩卡一卡二| 成人免费看黄yyy456| 亚洲视频综合在线| 欧美日韩国产天堂| 91麻豆精品国产91久久久久| 日韩一级欧美一级| 成人国产精品免费观看| 亚洲人成影院在线观看| 日韩欧美久久久| 91在线观看地址| 国产精品自产自拍| 三级成人在线视频| 亚洲视频在线一区二区| 一区二区在线观看av| 久久久久青草大香线综合精品| 99在线视频精品| 美国十次综合导航| 丝袜诱惑制服诱惑色一区在线观看 | 中文字幕一区二区三区不卡| 日韩一区二区免费在线观看| 久久综合久色欧美综合狠狠| 欧美日韩成人激情| 久久久久久久久久久久久夜| 1区2区3区国产精品| 日韩和欧美一区二区| 国产精品一区二区在线观看网站| 99久久久精品| 风间由美性色一区二区三区| 亚洲图片一区二区| 国产精品一区二区黑丝| 欧美在线观看视频一区二区| 色哟哟日韩精品| 精品国产一区二区在线观看| 日韩欧美一区电影| 亚洲欧美日韩小说| 国产一区二区三区不卡在线观看| 日本美女一区二区三区视频| a级精品国产片在线观看| 日韩天堂在线观看| 亚洲国产精品一区二区尤物区| 国产91在线看| 欧美mv日韩mv亚洲| 国产亚洲一本大道中文在线| 久久综合999| 丝袜a∨在线一区二区三区不卡| 国产成人欧美日韩在线电影| 粉嫩av一区二区三区粉嫩| 欧美高清一级片在线| 亚洲日本va在线观看| 国产综合色视频| 欧美va在线播放| 污片在线观看一区二区| 麻豆精品视频在线| 欧美日韩精品综合在线| 国产精品久久久99| 亚洲大片一区二区三区| 91视频91自| 亚洲欧美另类在线| av一区二区三区四区| 国产视频不卡一区| 国产成人免费av在线| 精品久久人人做人人爽| 美脚の诱脚舐め脚责91| 日韩欧美中文字幕一区| 蜜桃在线一区二区三区| 欧美一区二区三区公司| 中文字幕av一区二区三区| 一区二区欧美国产| 91精品91久久久中77777| 91精品国产综合久久精品app| 亚洲黄网站在线观看| 91免费版在线看| 亚洲成人免费观看| 69p69国产精品| 激情综合网激情| 在线观看www91| 亚洲国产va精品久久久不卡综合 | 亚洲天堂免费看| 在线观看日韩高清av| 亚洲成人一区二区在线观看| 欧美精品粉嫩高潮一区二区| 蜜臀a∨国产成人精品| 久久嫩草精品久久久精品一| 成人app下载| 亚洲曰韩产成在线| 国产福利不卡视频| 中文字幕一区二区三区不卡| 欧美性猛交xxxxxx富婆| 国产女同性恋一区二区| 91免费视频大全| 日韩国产欧美视频| 国产欧美一区二区三区网站| 色诱亚洲精品久久久久久| 午夜视黄欧洲亚洲| 久久综合丝袜日本网| 97se亚洲国产综合自在线观| 日韩影院免费视频| 国产欧美日韩中文久久| 欧美另类变人与禽xxxxx| 狠狠色伊人亚洲综合成人| 一区免费观看视频| 日韩美女天天操| 日本高清不卡aⅴ免费网站| 日韩电影免费一区| 亚洲精品视频在线观看免费| 555www色欧美视频| av中文字幕不卡| 久久精品国产999大香线蕉| 亚洲男人天堂av网| www精品美女久久久tv| 在线免费观看日韩欧美| 国产成人鲁色资源国产91色综 | 欧美精品一区二区在线观看| 91丨porny丨首页| 国产黄人亚洲片| 日韩激情一区二区| 一区二区三区中文字幕精品精品 | 91一区在线观看| 久久99国产精品尤物| 亚洲电影视频在线| 亚洲免费毛片网站| 国产精品免费视频网站| 成人激情动漫在线观看| 麻豆成人综合网| 爽好久久久欧美精品| 一区二区三区四区高清精品免费观看| 精品国产免费久久| 欧美一区二区三级| 欧美日免费三级在线| 91丨porny丨国产入口| 不卡的av中国片| 高清国产午夜精品久久久久久| 捆绑调教一区二区三区| 三级久久三级久久| 日韩高清不卡一区二区三区| 亚洲一二三四区| 亚洲一区av在线| 亚洲在线观看免费视频| 亚洲最大色网站| 亚洲综合999| 亚洲人亚洲人成电影网站色| 日韩欧美精品在线视频| 奇米精品一区二区三区在线观看 | 国产一区二区在线视频| 五月激情丁香一区二区三区| 亚洲乱码国产乱码精品精可以看| 亚洲婷婷综合色高清在线| 精品对白一区国产伦| 日韩免费高清视频| 91精品国产综合久久久久久漫画| 欧美大片日本大片免费观看| 欧美日韩免费观看一区二区三区| 色国产精品一区在线观看| jlzzjlzz亚洲日本少妇| 在线视频国内一区二区| av资源网一区| 色欧美乱欧美15图片| 99久久久精品免费观看国产蜜| 欧美午夜精品久久久久久超碰| 在线免费观看不卡av| 色天天综合久久久久综合片| 国产成人免费视频一区| 91黄色在线观看| 欧美日韩精品一区二区三区| 在线一区二区观看| 欧美日韩高清一区二区不卡| 欧美色涩在线第一页| 制服丝袜亚洲色图| 欧美成人一级视频| 亚洲欧美色综合| 五月天一区二区三区| 久久99精品一区二区三区| 一区二区三区蜜桃| 久草中文综合在线| 高清国产午夜精品久久久久久| 成人avav在线| 欧美日韩高清不卡| 一本色道久久综合亚洲精品按摩| 在线观看视频91| 精品少妇一区二区| 久久蜜桃一区二区| 亚洲v精品v日韩v欧美v专区| 美美哒免费高清在线观看视频一区二区 | 欧美变态tickling挠脚心| 亚洲国产精华液网站w| 一区2区3区在线看| 免费观看在线综合色| 成人免费观看男女羞羞视频|