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

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

?? leafcategorizer.java

?? ID3 分類決策數(shù)java代碼 需要ID3java代碼公用包
?? JAVA
字號:
package id3;
import java.lang.*;
import java.util.*;
import java.io.*;
import shared.*;
import shared.Error;

/** NodeCategorizer for categorizers that don't need to ask other
 * categorizers for help scoring (i.e. leaves in the decision process). Since
 * any categorizer can sit at a leaf in a decision tree / graph, this class
 * serves as a wrapper for any Categorizer that doesn't care about whether or
 * not it sits in a graph. This class is a pure wrapper to the inner
 * categorizer. That is, it doesn't maintain any information at all except for
 * the reference to the wrapped categorizer. The OK function should check that
 * none of the local variables ever change from their dummy variables.
 * @author James Louis 08/21/2001 Ported to Java.
 * @author Clay Kunz 08/13/97 Initial revision (.h,.c)
 */
public class LeafCategorizer extends NodeCategorizer
{
    /** Attributes for this Categorizer.
     */
   private static LinkedList dummyAttr = new LinkedList();
   /** Schema for the attributes and labels of this Categorizer.
    */
   private static Schema dummySchema = new Schema(dummyAttr);
   /** Description of this Categorizer.
    */
   private static String dummyDescription = "Leaf"; // can't be empty
   /** The Categorizer stored in this LeafCategorizer object.
    */
   private Categorizer categorizer;

   /** Constructor.
    * @param aCategorizer The Categorizer that will be stored in this LeafCategorizer.
    */
   public LeafCategorizer(Categorizer aCategorizer)
   {
     super(check_num_categories(aCategorizer), dummyDescription, dummySchema);
     categorizer = aCategorizer;
     aCategorizer = null;
   }

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

   /** Returns the number of categories in the given LeafCategorizer object.
    * @return Always 1.
    * @param cat The Categorizer for which the number of categories is requested.
    */
   private static int check_num_categories(Categorizer cat)
   {
      if (cat == null)
         Error.fatalErr("LeafCategorizer::LeafCategorizer: the given categorizer was "+
            "NULL");

      return 1;
   }

   /** Returns the category for the given Instance. Leaf categorizers have no
    * children, so this function aborts.
    * @return Always returns the category "bad branch" with the category number 0.
    * @param inst	The instance to be checked.
    */
   public AugCategory branch(Instance inst)
   {
      Error.fatalErr("LeafCategorizer::branch: leaf categorizers have no children");
      return new AugCategory(0, "bad branch");
   }

   /** Returns the Categorizer stored in this LeafCategorizer.
    * @return The Categorizer stored in this LeafCategorizer.
    */
   public Categorizer get_categorizer(){ return categorizer; }

   /** Clone function.
    * @return The clone of this object.
    */
   public Object clone()
   {
      return super.clone();
   }

   /** Sets which attributes have been used for the attributes in the
    * Categorizer stored in this LeafCategorizer.
    * @param used The attributes used. TRUE indicates that attribute is used, FALSE otherwise.
    */
   public void set_used_attr(boolean[] used)
   { categorizer.set_used_attr(used); }

   /** Displays the structure of the Categorizer stored in this LeafCategorizer.
    * @param stream The BufferedWriter to which this LeafCategorizer will be displayed.
    * @param pref The preferences for display.
    */
   public void display_struct(BufferedWriter stream,DisplayPref pref)
   { categorizer.display_struct(stream, pref); }

   /** Returns the number of categories for the categorizer stored in this
    * LeafCategorizer.
    * @return The number of categories for the categorizer stored in this
    * LeafCategorizer.
    */
   public int num_categories(){return categorizer.num_categories();}

   /** Returns the description of the Categorizer stored in this LeafCategorizer.
    * @return The description of the Categorizer stored in this LeafCategorizer.
    */
   public String description(){ return categorizer.description(); }

   /** Scores the given Instance using the categorizer stored in this
    * LeafCategorizer.
    * @return The category distribution of the supplied instance.
    * @param inst The Instance given for categorization.
    */
   public CatDist score(Instance inst)
   { return super.score(inst); }

   /** Scores the given Instance using the categorizer stored in this
    * LeafCategorizer.
    * @param inst The Instance given for categorization.
    * @param addLoss TRUE if Instance loss is to be added, FALSE otherwise.
    * @return The category distribution of the supplied instance.
    */
   public CatDist score(Instance inst, boolean addLoss)
   {
      CatDist dist = categorizer.score(inst);

      if (addLoss)
         add_instance_loss(inst, dist);

      return dist;
   }

   /** builds an Instance distribution from the InstanceList.
    * @param instList The list of Instances from which a distribution is to be built.
    */
   public void build_distr(InstanceList instList)
   { categorizer.build_distr(instList); }

   /** Sets the description of this LeafCategorizer to the given value.
    * @param val The new description for this Node Categorizer.
    */
   public void set_description(String val)
   { categorizer.set_description(val); }

   /** Returns whether this Categorizer subclass supports scoring.
    * @return TRUE.
    */
   public boolean supports_scoring(){ return true; }

   /** Sets the distribution to the given values.
    * @param val An array containing the new distribution values.
    */
   public void set_distr(double[] val)
   { categorizer.set_distr(val); }

   /** Returns the total weight of instances that reach this LeafCategorizer.
    * @return The total weight of instances that reach this LeafCategorizer.
    */
   public double total_weight(){ return categorizer.total_weight(); }


/***************************************************************************
***************************************************************************
   public void set_schema(Schema sch) { categorizer.set_schema(sch); }
*/

/***************************************************************************
***************************************************************************
   public void add_distr(double[] val)
   { categorizer.add_distr(val); }
*/

/***************************************************************************
***************************************************************************
   public void add_distr(int label, double delta)
   { categorizer.add_distr(label, delta); }
*/
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人精品视频网站| 亚洲成av人片在线观看| 欧美老人xxxx18| 欧美在线视频日韩| 色哟哟在线观看一区二区三区| caoporn国产精品| 99re视频精品| 欧美色综合网站| 日韩亚洲欧美在线| 精品国产凹凸成av人导航| 久久久99精品免费观看不卡| 国产欧美精品区一区二区三区| 国产精品久久久久久户外露出| 欧美激情一区二区在线| 亚洲欧美色图小说| 亚洲成人先锋电影| 久久国产麻豆精品| 成人激情文学综合网| 在线日韩一区二区| 6080yy午夜一二三区久久| 精品播放一区二区| 亚洲欧洲日韩女同| 日韩精品色哟哟| 国产成人免费视频精品含羞草妖精 | 色综合网色综合| 欧美日韩国产大片| 久久久久成人黄色影片| 亚洲人成网站影音先锋播放| 日韩va亚洲va欧美va久久| 国产精品一区二区不卡| 91久久精品一区二区| 欧美va在线播放| 夜夜操天天操亚洲| 国产一区 二区| 欧美性猛交一区二区三区精品| 亚洲精品在线免费播放| 一区二区成人在线| 国产精品99精品久久免费| 欧美日韩视频在线一区二区 | 久久久精品国产免大香伊| 亚洲免费成人av| 国产精品99久| 欧美一级片免费看| 亚洲激情在线激情| 国产不卡视频一区| 日韩一区二区三区在线观看| 中文字幕综合网| 国产一区三区三区| 欧美高清视频不卡网| 亚洲欧洲精品一区二区三区| 狠狠久久亚洲欧美| 欧美一区二区三区在线观看| 亚洲综合丁香婷婷六月香| 国产成人精品三级| 精品国产青草久久久久福利| 亚洲成av人影院| 欧美午夜精品免费| 日韩美女视频一区| 成人综合婷婷国产精品久久 | 91福利社在线观看| 国产精品人妖ts系列视频| 精久久久久久久久久久| 欧美一区二区三区在线看| 亚洲午夜久久久| 日本精品免费观看高清观看| 中文字幕亚洲视频| 北岛玲一区二区三区四区| 亚洲国产精品精华液2区45| 国产尤物一区二区在线| 欧美精品一区二区三区高清aⅴ| 香蕉成人啪国产精品视频综合网 | 国产精品热久久久久夜色精品三区| 久久91精品国产91久久小草| 91精品在线观看入口| 奇米精品一区二区三区在线观看 | 中文字幕欧美一区| 五月天一区二区| 欧美一区二区三区成人| 日本视频在线一区| 欧美成人精品高清在线播放| 精品亚洲免费视频| 久久精品一区二区三区不卡| 国产成人午夜电影网| 18成人在线观看| 欧美日韩精品三区| 麻豆久久久久久| 国产午夜精品久久久久久久| 国产91精品久久久久久久网曝门| 国产欧美综合色| 一本一道久久a久久精品综合蜜臀| 亚洲乱码一区二区三区在线观看| 欧美性猛片aaaaaaa做受| 日本在线播放一区二区三区| 亚洲精品一区二区三区蜜桃下载 | 一区二区三区日韩| 在线91免费看| 国产大片一区二区| 一区二区免费在线| 日韩欧美国产精品一区| 成人小视频免费在线观看| 一区二区日韩av| 精品国产第一区二区三区观看体验| 成人夜色视频网站在线观看| 亚洲国产一区二区a毛片| 欧美成人女星排名| 91原创在线视频| 奇米色一区二区| 1区2区3区精品视频| 欧美不卡在线视频| www.成人网.com| 久久精品久久99精品久久| 国产精品不卡一区| 欧美成人女星排行榜| 在线亚洲人成电影网站色www| 久久99精品久久久久久动态图 | 欧洲精品一区二区| 国产一区亚洲一区| 香港成人在线视频| 亚洲私人黄色宅男| 欧美精品一区二区三区高清aⅴ| 色狠狠色狠狠综合| 国产电影精品久久禁18| 蜜桃一区二区三区四区| 亚洲美女视频一区| 中文成人综合网| 欧美大白屁股肥臀xxxxxx| 欧美吻胸吃奶大尺度电影| 成人免费毛片片v| 麻豆91在线看| 日韩国产欧美在线播放| 亚洲另类春色校园小说| 日本一区二区三区久久久久久久久不 | 国产欧美一区二区三区鸳鸯浴 | 亚洲成人精品一区| 亚洲视频免费观看| 国产精品进线69影院| 久久久国产一区二区三区四区小说 | 亚洲高清免费一级二级三级| 国产女人18水真多18精品一级做 | 极品瑜伽女神91| 日本午夜精品视频在线观看| 亚洲黄色尤物视频| 亚洲视频网在线直播| 亚洲色图一区二区三区| 国产精品女主播在线观看| 国产婷婷一区二区| 久久久精品免费免费| 国产性色一区二区| 久久久久国色av免费看影院| 2021中文字幕一区亚洲| 欧美成人一区二区| 欧美精品一区二区三区在线播放| 精品国产免费久久| 国产性做久久久久久| 中文字幕欧美区| 亚洲国产成人午夜在线一区| 国产精品天美传媒沈樵| 国产日韩精品一区二区三区在线| 久久婷婷国产综合精品青草| 久久无码av三级| 中文字幕色av一区二区三区| 亚洲免费视频成人| 日韩电影在线观看一区| 国产一区二区导航在线播放| 国产成人免费9x9x人网站视频| 成人免费三级在线| 在线观看视频一区二区| 正在播放一区二区| 久久视频一区二区| 亚洲色图都市小说| 午夜精品福利视频网站| 美女网站视频久久| 粉嫩高潮美女一区二区三区| 99国产精品久久久久久久久久久| 欧美日韩一区精品| 精品国产伦一区二区三区免费| 国产精品免费视频观看| 亚洲午夜精品网| 国产真实乱子伦精品视频| kk眼镜猥琐国模调教系列一区二区| 91传媒视频在线播放| 精品少妇一区二区三区在线视频| 亚洲国产精品成人久久综合一区| 亚洲欧美日韩国产一区二区三区| 日韩黄色免费电影| 99这里只有久久精品视频| 69久久99精品久久久久婷婷| 国产精品免费视频观看| 日韩高清不卡在线| 懂色中文一区二区在线播放| 欧美三级电影精品| 中文字幕乱码久久午夜不卡| 午夜电影久久久| av在线不卡免费看| 精品美女在线播放| 一区二区三区在线视频播放| 国产资源精品在线观看| 69精品人人人人| 亚洲午夜在线电影| 91性感美女视频|