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

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

?? id3inducer.java

?? java數據挖掘算法
?? 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一区二区三区免费野_久草精品视频
91麻豆swag| 久久色在线观看| 亚洲一区二区三区视频在线| 欧美又粗又大又爽| 久久久久久久久久久久久夜| 成人av一区二区三区| 亚洲男人都懂的| 欧美猛男gaygay网站| 亚洲一区二区三区激情| 亚洲男人的天堂av| 亚洲狼人国产精品| 久久久五月婷婷| 国产午夜精品一区二区| 日韩一区二区在线播放| 国产v日产∨综合v精品视频| 亚洲大片在线观看| 久久久综合精品| 久久精品水蜜桃av综合天堂| 国产三级精品三级在线专区| 欧美日韩视频在线观看一区二区三区| 国产精品99久久久久| 一区二区理论电影在线观看| 中文字幕欧美区| 日韩欧美国产麻豆| 欧美中文字幕亚洲一区二区va在线| 欧美综合色免费| 欧美一区二区三区四区视频| 一本久道久久综合中文字幕| 久久成人久久爱| 亚洲在线成人精品| 青青草精品视频| 亚洲麻豆国产自偷在线| 午夜精品一区在线观看| 一区二区三区高清| 免费人成在线不卡| 国产传媒久久文化传媒| 精久久久久久久久久久| 婷婷丁香久久五月婷婷| 久久精品国产免费看久久精品| 国产精品1区二区.| 欧美探花视频资源| www亚洲一区| 亚洲黄网站在线观看| 秋霞电影网一区二区| 成人黄色网址在线观看| 精品视频在线免费看| 久久久99久久| 亚洲最色的网站| 国内精品国产成人国产三级粉色| 麻豆成人久久精品二区三区红| 久久se这里有精品| 一本大道久久a久久综合婷婷| 7777精品伊人久久久大香线蕉超级流畅| 99精品国产一区二区三区不卡| 成人av片在线观看| 欧美群妇大交群中文字幕| 国产欧美精品区一区二区三区 | 91麻豆精品在线观看| 欧美卡1卡2卡| 国产精品高清亚洲| 国产精品三级视频| 亚洲同性同志一二三专区| 国产精品久久久久久久蜜臀| 日韩精品色哟哟| 国产一区二区三区观看| 国产精品888| 欧美一区二区福利视频| 亚洲色欲色欲www| 国产在线国偷精品免费看| 欧美亚洲国产bt| 国产精品不卡视频| 国产精品一区二区三区99| 欧美精品777| 亚洲人精品一区| 高清视频一区二区| 精品少妇一区二区三区在线播放 | 综合av第一页| 青青国产91久久久久久| 成人一区二区三区视频在线观看| 午夜精品一区在线观看| 丁香婷婷综合激情五月色| 欧美日韩国产系列| 日本一区二区视频在线| 日本亚洲免费观看| 亚洲va欧美va人人爽| 韩国在线一区二区| 91精品国产免费久久综合| 亚洲特级片在线| 激情av综合网| 欧美高清视频www夜色资源网| 中国色在线观看另类| 久久激情五月激情| 91色综合久久久久婷婷| 久久这里只有精品首页| 日韩国产欧美三级| 欧洲一区二区av| 国产精品久久久久久福利一牛影视| 麻豆精品新av中文字幕| 欧美日韩综合在线免费观看| 国产精品动漫网站| 免费在线成人网| 欧美一区中文字幕| 亚洲r级在线视频| 在线亚洲免费视频| 一区二区三区在线观看视频| 成人h动漫精品一区二区| 久久久综合精品| 激情深爱一区二区| 日本一区二区免费在线 | 视频一区视频二区中文字幕| 欧亚洲嫩模精品一区三区| 亚洲欧洲av一区二区三区久久| 国产一区二区剧情av在线| 久久伊人蜜桃av一区二区| 久久精品久久99精品久久| 日韩一区和二区| 蜜桃av一区二区在线观看| 在线91免费看| 免费看欧美女人艹b| 精品理论电影在线观看| 久久国产日韩欧美精品| 日韩欧美中文一区| 久久99最新地址| 26uuu色噜噜精品一区| 精品一区二区三区在线播放视频| 欧美三级电影网| 老司机午夜精品99久久| 久久这里只精品最新地址| 国产一区视频导航| 国产视频一区二区在线观看| 国产成人午夜高潮毛片| 国产精品网站一区| 精品一区二区三区免费观看| 中文字幕不卡一区| av激情综合网| 亚洲一区电影777| 91麻豆精品国产91久久久久久| 蜜桃视频在线观看一区| 精品乱码亚洲一区二区不卡| jizzjizzjizz欧美| 一区二区高清免费观看影视大全 | 一本到不卡免费一区二区| 一区二区三区成人| 日韩一区二区在线播放| 国产成人亚洲综合a∨婷婷图片| 国产精品免费丝袜| 欧美三级在线播放| 久久精品国产久精国产爱| 国产欧美va欧美不卡在线| 在线免费观看日韩欧美| 无码av中文一区二区三区桃花岛| 欧美日韩夫妻久久| 成人国产精品免费观看动漫| 亚洲综合在线观看视频| 欧美一区二区三区在| 国产成人免费在线| 亚洲愉拍自拍另类高清精品| 日韩欧美高清一区| 夫妻av一区二区| 日韩电影免费在线观看网站| 国产欧美视频在线观看| 在线免费不卡电影| 九九精品一区二区| 亚洲视频免费看| 欧美电影一区二区三区| 99在线精品观看| 日韩高清中文字幕一区| 国产日韩综合av| 欧美视频在线观看一区二区| 国产一区二区三区在线观看免费视频 | 亚洲一二三专区| 久久久美女毛片| 在线视频一区二区免费| 青青草伊人久久| 亚洲成人资源在线| 国产日产亚洲精品系列| 欧美日韩精品一区二区天天拍小说 | 欧美三级视频在线观看| 成人午夜视频在线| 日韩专区在线视频| 最新不卡av在线| 久久久久久久免费视频了| 欧美专区日韩专区| 成人午夜电影网站| 秋霞午夜鲁丝一区二区老狼| 一区二区三区四区乱视频| 国产亚洲欧洲997久久综合| 欧美区在线观看| 国产成人午夜视频| 国产九九视频一区二区三区| 天天亚洲美女在线视频| 自拍偷拍国产亚洲| 久久久久亚洲蜜桃| 91麻豆精品91久久久久同性| 色av成人天堂桃色av| 成人在线一区二区三区| 午夜精品久久久久久久| 亚洲精品写真福利| 国产精品三级视频| 久久久久久日产精品|