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

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

?? leafcategorizer.java

?? 數據倉庫挖掘與開發 ID3算法實現代碼
?? 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一区二区三区免费野_久草精品视频
亚洲男人都懂的| 亚洲女与黑人做爰| 欧美福利视频导航| 欧美日韩中文字幕一区| 日本精品一级二级| 91黄色激情网站| 欧美午夜片在线看| 欧美色图在线观看| 欧美精品色综合| 日韩欧美精品在线| 精品国精品国产| 精品免费国产二区三区| 久久人人爽爽爽人久久久| 国产欧美一区二区三区网站 | 91高清在线观看| 欧美综合视频在线观看| 欧美日本一区二区三区| 日韩欧美一区二区视频| 精品国产欧美一区二区| 中文字幕精品综合| 一个色综合网站| 美女在线视频一区| 国产黄色成人av| 91浏览器入口在线观看| 91精品国产色综合久久| 国产人伦精品一区二区| 亚洲影视在线观看| 美腿丝袜亚洲综合| 91丨国产丨九色丨pron| 欧美福利电影网| 国产精品视频免费| 偷拍与自拍一区| 成人黄色小视频在线观看| 91久久精品一区二区三区| 欧美大片顶级少妇| 亚洲人成影院在线观看| 免费成人av在线| 色狠狠色狠狠综合| 久久网站最新地址| 亚洲综合在线五月| 国产一区二区三区免费| 欧美私人免费视频| 欧美国产精品久久| 秋霞电影一区二区| 色综合色综合色综合色综合色综合| 欧美日韩久久一区| 亚洲三级久久久| 国产精品一区不卡| 91麻豆精品国产91久久久更新时间 | 亚洲精品一区二区三区精华液 | 国产女同性恋一区二区| 性做久久久久久久久| 粉嫩aⅴ一区二区三区四区| 666欧美在线视频| 一区二区三区不卡视频| 国产.精品.日韩.另类.中文.在线.播放| 欧美三级电影精品| 亚洲蜜臀av乱码久久精品蜜桃| 国内精品国产成人国产三级粉色| 欧洲精品在线观看| 国产精品卡一卡二卡三| 国产一区二区成人久久免费影院 | 国产精品无码永久免费888| 日韩中文字幕不卡| 欧美午夜精品电影| 最新热久久免费视频| 国产999精品久久久久久| 日韩三级视频在线观看| 日本不卡在线视频| 欧美精品亚洲一区二区在线播放| 一区二区在线观看视频| 色综合色狠狠综合色| 亚洲婷婷在线视频| 99精品黄色片免费大全| 亚洲色图欧洲色图| 色天使久久综合网天天| 亚洲欧美aⅴ...| 欧美做爰猛烈大尺度电影无法无天| 亚洲人快播电影网| 欧美性猛片aaaaaaa做受| 亚洲超碰97人人做人人爱| 欧美美女bb生活片| 男人的天堂久久精品| 日韩视频永久免费| 国产精品456| 国产精品网站在线| 一本到高清视频免费精品| 亚洲一区二区精品3399| 欧美丰满高潮xxxx喷水动漫 | 久久久亚洲综合| 国产大陆精品国产| 成人免费在线观看入口| 91久久精品一区二区二区| 日韩精品久久理论片| 精品久久国产字幕高潮| 国产69精品久久99不卡| 亚洲综合一区二区三区| 欧美一级在线观看| 风流少妇一区二区| 亚洲你懂的在线视频| 91精品国产综合久久蜜臀| 久久国产视频网| 国产精品国模大尺度视频| 欧美亚洲尤物久久| 韩国女主播成人在线| 国产精品女人毛片| 欧美日韩精品免费| 国产高清一区日本| 亚洲一区二区三区四区五区中文| 日韩三区在线观看| 色婷婷av一区| 国产馆精品极品| 亚洲午夜久久久久久久久电影网 | 一本高清dvd不卡在线观看| 婷婷六月综合亚洲| 国产欧美视频一区二区三区| 欧美在线观看18| 国产成人综合在线| 亚洲成av人片在线| 中文字幕一区不卡| 久久综合色综合88| 精品视频在线免费观看| 成人午夜av电影| 奇米色一区二区三区四区| 亚洲精品美国一| 久久久久久综合| 欧美一级欧美一级在线播放| 99久久精品免费看国产免费软件| 精品一区二区三区日韩| 亚洲资源中文字幕| 国产精品久久久久久亚洲毛片 | 成人国产精品视频| 久久国产精品色| 亚洲一区二区中文在线| 国产精品全国免费观看高清| 精品欧美一区二区在线观看| 欧美在线观看视频在线| 99久久久国产精品免费蜜臀| 激情都市一区二区| 蜜臀99久久精品久久久久久软件| 一区二区在线观看av| 日韩码欧中文字| 国产精品传媒入口麻豆| 国产精品日产欧美久久久久| 久久精品视频免费| 精品对白一区国产伦| 精品少妇一区二区三区在线播放| 欧美高清dvd| 88在线观看91蜜桃国自产| 欧美日韩免费在线视频| 欧美三级视频在线观看| 欧美日韩五月天| 在线播放国产精品二区一二区四区| 91极品美女在线| 欧美羞羞免费网站| 欧美网站大全在线观看| 欧美三级韩国三级日本三斤| 欧美日韩免费观看一区二区三区 | 全国精品久久少妇| 日本在线不卡一区| 美女脱光内衣内裤视频久久网站| 美女爽到高潮91| 激情伊人五月天久久综合| 激情都市一区二区| 福利91精品一区二区三区| 99久久精品一区二区| 99久久久无码国产精品| 欧洲生活片亚洲生活在线观看| 在线观看亚洲专区| 日韩三区在线观看| 久久久www免费人成精品| 国产精品久久久久影院色老大| 亚洲免费观看高清| 日本一区中文字幕| 国产精品一区免费在线观看| zzijzzij亚洲日本少妇熟睡| 在线观看视频一区二区欧美日韩| 欧美精品日韩一区| 国产丝袜在线精品| 亚洲精品国产品国语在线app| 午夜精品久久久久久| 国产精品一区二区三区四区| 在线亚洲一区观看| 日韩一级片网址| 中文字幕一区二区三区在线播放| 亚洲国产一区在线观看| 蓝色福利精品导航| av一区二区久久| 欧美日韩aaa| 国产精品久久久久久亚洲伦| 天天亚洲美女在线视频| 国产一区二区女| 91极品美女在线| 久久精品免费在线观看| 亚洲乱码日产精品bd | 国产精品免费网站在线观看| 亚洲二区视频在线| 国产成人免费视频网站| 欧美色视频一区| 国产精品亲子乱子伦xxxx裸|