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

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

?? leafcategorizer.java

?? 此編碼是一個數據挖掘的決策樹各種算法。以作為入門提示
?? 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一区二区三区免费野_久草精品视频
精品系列免费在线观看| 亚洲免费观看在线视频| 精品一区二区三区蜜桃| 日韩欧美成人激情| 精品亚洲国内自在自线福利| www国产精品av| 成人免费看视频| 亚洲免费在线视频| 欧美日韩国产一二三| 天堂va蜜桃一区二区三区 | 韩国av一区二区三区在线观看| 欧美一区永久视频免费观看| 免费欧美高清视频| 国产午夜精品一区二区三区视频 | 免费美女久久99| 精品国产第一区二区三区观看体验| 精品午夜一区二区三区在线观看| 国产色爱av资源综合区| 色综合中文综合网| 欧美日韩国产天堂| 天天影视网天天综合色在线播放| 91精品视频网| 国产精品性做久久久久久| 亚洲三级在线播放| 91精品国产入口| 国产精品一二三四区| 亚洲激情中文1区| 日韩欧美的一区| 成人黄色电影在线 | 亚洲精品视频在线| 欧美一区2区视频在线观看| 国产精品99久久久久久有的能看| 亚洲欧美日韩精品久久久久| 日韩色在线观看| 99精品国产热久久91蜜凸| 丝袜亚洲另类欧美综合| 国产精品午夜免费| 成人免费视频一区| 婷婷丁香激情综合| 国产精品久久久久久亚洲毛片 | 福利电影一区二区三区| 亚洲一区二区在线免费观看视频| 欧美mv和日韩mv的网站| 色噜噜狠狠成人中文综合| 久久精品免费观看| 最新成人av在线| 久久久亚洲午夜电影| 欧美三级电影网站| 成人少妇影院yyyy| 免费一级片91| 亚洲国产精品一区二区久久恐怖片| 久久综合999| 欧美日韩国产中文| 色综合天天综合网天天狠天天| 狠狠色伊人亚洲综合成人| 亚洲一区二区三区自拍| 亚洲欧洲日产国产综合网| 久久先锋资源网| 制服丝袜国产精品| 欧洲激情一区二区| 色综合夜色一区| 成人免费观看av| 激情都市一区二区| 麻豆精品在线视频| 午夜电影网亚洲视频| 一二三四区精品视频| 亚洲免费在线视频| 中文字幕五月欧美| 国产精品久久久久一区二区三区| 久久久久久久久久电影| 精品日韩一区二区三区免费视频| 欧美日韩你懂的| 欧美日韩一二区| 欧美日韩高清不卡| 在线视频一区二区三| 成人免费观看视频| 麻豆高清免费国产一区| 麻豆久久久久久久| 男女性色大片免费观看一区二区| 亚洲成人免费电影| 亚洲成av人在线观看| 婷婷夜色潮精品综合在线| 亚洲电影一区二区三区| 天堂一区二区在线| 日韩av在线播放中文字幕| 青青草97国产精品免费观看 | 九九在线精品视频| 国产资源在线一区| 国产精品一区二区三区四区| 国产成a人亚洲| 99久久er热在这里只有精品66| www.亚洲色图.com| 欧美在线一二三四区| 91精品国产综合久久蜜臀| 欧美电影免费观看高清完整版| 欧美变态口味重另类| 欧美韩国一区二区| 亚洲欧美日韩国产一区二区三区| 亚洲最快最全在线视频| 美女在线一区二区| 国产在线精品一区二区夜色| 国产a久久麻豆| 色天使久久综合网天天| 欧美一区二区三区四区久久| 久久综合九色综合欧美98| 国产精品大尺度| 天天亚洲美女在线视频| 国产一区二区三区在线看麻豆| 成人久久久精品乱码一区二区三区| 99久久综合精品| 91麻豆精品国产91久久久| 久久亚洲综合av| 亚洲天堂福利av| 日韩高清不卡在线| 成人小视频免费观看| 91成人免费网站| 日韩免费福利电影在线观看| 综合婷婷亚洲小说| 免费美女久久99| av电影天堂一区二区在线| 7777精品久久久大香线蕉| 亚洲国产高清在线观看视频| 亚洲在线观看免费视频| 国产一区视频在线看| 日本乱码高清不卡字幕| 欧美成人精品福利| 亚洲精品一二三四区| 经典一区二区三区| 在线视频一区二区三区| 国产亚洲一区二区三区在线观看| 一区二区三区四区视频精品免费 | 亚洲成av人片在线观看无码| 高潮精品一区videoshd| 欧美美女网站色| 中文字幕一区三区| 韩国视频一区二区| 欧美在线三级电影| 欧美国产日本韩| 美日韩一区二区| 欧美在线一二三四区| 国产精品日韩精品欧美在线| 日本美女视频一区二区| 在线观看国产精品网站| 国产精品久久久久久一区二区三区| 男女性色大片免费观看一区二区 | 欧美日韩午夜影院| 亚洲男人的天堂在线观看| 国产精品99久久不卡二区| 日韩限制级电影在线观看| 亚洲国产成人av| 91免费观看国产| 国产精品无圣光一区二区| 极品销魂美女一区二区三区| 欧美高清视频一二三区 | 卡一卡二国产精品| 欧美日韩国产一二三| 亚洲精品日韩综合观看成人91| 国产91露脸合集magnet| 精品99999| 国产成人亚洲综合a∨婷婷| 欧美日精品一区视频| 亚洲日本青草视频在线怡红院 | 国产老肥熟一区二区三区| 91精品欧美一区二区三区综合在| 亚洲一区二区三区影院| 欧美在线免费观看亚洲| 亚洲精品视频在线看| 色婷婷亚洲婷婷| 亚洲精品久久7777| 91成人免费网站| 一区二区三区精品| 在线中文字幕一区二区| 亚洲国产毛片aaaaa无费看 | 欧美日韩高清在线播放| 亚洲国产精品一区二区www在线| 一本到一区二区三区| 夜夜精品浪潮av一区二区三区| 91精品福利在线| 亚洲一卡二卡三卡四卡无卡久久| 欧美网站大全在线观看| 亚洲午夜在线电影| 欧美福利视频一区| 久久9热精品视频| 久久久久99精品一区| 丁香天五香天堂综合| 一区精品在线播放| 成人爱爱电影网址| 亚洲欧美日韩中文字幕一区二区三区| 91在线视频观看| 亚洲123区在线观看| 日韩欧美一区电影| 激情小说欧美图片| 日本一区二区久久| 色综合久久中文综合久久牛| 亚洲大片一区二区三区| 精品国产区一区| 成人性色生活片| 亚洲成人一区在线| 久久免费电影网| 91黄色激情网站|