亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
久久精品视频免费| av电影一区二区| 亚洲综合激情另类小说区| 久久久精品欧美丰满| 日韩亚洲欧美在线| 日韩欧美一级特黄在线播放| 337p亚洲精品色噜噜| 欧美精品自拍偷拍| 欧美一区二区三区在线电影 | 狠狠色2019综合网| 免费观看在线综合色| 蜜桃av一区二区| 另类小说视频一区二区| 狠狠色丁香婷综合久久| 久久66热re国产| 国产在线精品一区二区不卡了 | 风间由美中文字幕在线看视频国产欧美| 美女视频黄频大全不卡视频在线播放 | 风间由美一区二区av101| 久久av资源站| 国产乱人伦偷精品视频不卡| 国产成人亚洲精品狼色在线| 国产成人亚洲综合a∨婷婷图片| 国产·精品毛片| 成人精品国产一区二区4080| 成+人+亚洲+综合天堂| 91论坛在线播放| 欧美特级限制片免费在线观看| 欧美撒尿777hd撒尿| 欧美日韩色综合| 日韩一区二区免费高清| 久久久精品免费免费| 国产精品国产精品国产专区不片| 国产精品不卡在线| 亚洲色图制服诱惑| 亚洲国产精品尤物yw在线观看| 日产精品久久久久久久性色| 麻豆精品国产传媒mv男同| 韩国v欧美v亚洲v日本v| 国产98色在线|日韩| 日本高清无吗v一区| 在线亚洲免费视频| 日韩欧美一级二级| 中文字幕在线观看一区二区| 亚洲电影一级黄| 国产一区二区三区在线观看精品 | 久久久.com| 亚洲色图欧美激情| 日韩国产一二三区| 久久不见久久见中文字幕免费| 日韩国产一二三区| 成人av在线资源网| 欧美一区二区久久久| 亚洲国产精品传媒在线观看| 艳妇臀荡乳欲伦亚洲一区| 裸体在线国模精品偷拍| 99麻豆久久久国产精品免费| 91精品国产乱码| 亚洲欧美中日韩| 美女免费视频一区| 色丁香久综合在线久综合在线观看| 日韩欧美一二区| 亚洲精品成人天堂一二三| 久久99精品一区二区三区| 26uuu另类欧美亚洲曰本| 久久久精品国产99久久精品芒果| 一区二区三区在线观看国产| 欧美一级片在线观看| 精品三级在线观看| 亚洲伊人伊色伊影伊综合网| 国产精品2024| 国产乱妇无码大片在线观看| 欧美视频一区二区三区| 亚洲国产精品成人综合| 麻豆精品一二三| 欧美日韩精品福利| 亚洲欧洲另类国产综合| 韩国三级在线一区| 欧美丰满高潮xxxx喷水动漫| 亚洲桃色在线一区| 国产不卡视频在线播放| 日韩欧美电影一区| 亚洲国产视频一区| 99久久久久久| 国产日产欧产精品推荐色| 久久国产精品第一页| 欧美日韩精品综合在线| 一区二区三区四区在线免费观看 | 五月婷婷激情综合| 99久久国产综合精品色伊| 久久影院电视剧免费观看| 强制捆绑调教一区二区| 欧美日韩极品在线观看一区| 亚洲一级二级三级| 91麻豆高清视频| 国产精品免费视频观看| 国产成人精品免费视频网站| 午夜精品福利视频网站 | 国产成人免费在线观看| 精品国产sm最大网站| 三级一区在线视频先锋| 色综合久久中文字幕综合网| 中文无字幕一区二区三区| 国产精品资源在线观看| 26uuu国产一区二区三区| 久久99日本精品| 日韩精品一区二区三区三区免费| 日本不卡一区二区| 欧美一区二区三区在线看| 全部av―极品视觉盛宴亚洲| 91精品国产91久久久久久一区二区 | 91免费版在线看| 亚洲色图制服诱惑| 91在线观看视频| 亚洲人成人一区二区在线观看| 91香蕉视频mp4| 亚洲免费观看高清在线观看| 一本色道久久加勒比精品| 亚洲午夜一二三区视频| 欧美日韩视频不卡| 欧美国产精品一区二区三区| 不卡视频在线看| 中文字幕在线不卡视频| 在线一区二区三区| 水野朝阳av一区二区三区| 欧美在线观看18| 亚洲精品日韩综合观看成人91| 欧美无砖砖区免费| 一区二区三区精品视频在线| 欧美日韩aaa| 开心九九激情九九欧美日韩精美视频电影| 日韩欧美在线网站| 国产传媒一区在线| 亚洲天堂福利av| 欧美色图免费看| 久久精品久久99精品久久| 国产欧美日韩综合精品一区二区| 99久久精品国产观看| 亚洲123区在线观看| 欧美疯狂做受xxxx富婆| 久久国产福利国产秒拍| 国产精品区一区二区三区| 欧美亚洲国产bt| 美女www一区二区| 国产精品毛片久久久久久久| 欧美手机在线视频| 激情综合网最新| 欧美aaaaaa午夜精品| 欧美精品一区二区三区四区| 白白色 亚洲乱淫| 国产91露脸合集magnet | 中文字幕国产精品一区二区| 色综合久久久久久久久| 秋霞成人午夜伦在线观看| 日本一区二区三区国色天香| 欧美在线视频不卡| 国产精品一二三区| 亚洲国产精品影院| 日本一区二区三区电影| 欧美顶级少妇做爰| 成人免费毛片片v| 日本不卡视频一二三区| 综合av第一页| 精品国产乱码久久久久久浪潮| 91老师片黄在线观看| 九九视频精品免费| 亚洲激情六月丁香| 久久综合中文字幕| 欧美日韩夫妻久久| av一二三不卡影片| 亚洲国产精品ⅴa在线观看| 欧美日韩综合色| 成人精品小蝌蚪| 精品在线播放免费| 亚洲一区影音先锋| 国产精品麻豆网站| 精品久久久久久久久久久久久久久久久 | 成人黄色免费短视频| 同产精品九九九| 亚洲蜜臀av乱码久久精品| 久久色在线观看| 日韩午夜激情视频| 欧美色欧美亚洲另类二区| 国产一区二区三区免费播放| 一区二区三区电影在线播| 国产日韩av一区二区| 69堂成人精品免费视频| 日本久久电影网| 国产91在线观看| 国产精品成人免费在线| 精品少妇一区二区三区日产乱码| 欧美日韩一区二区不卡| 成人午夜大片免费观看| 国产一区在线看| 蜜臀久久99精品久久久画质超高清 | 国产成人自拍网| 久久99国产精品久久| 男男成人高潮片免费网站| 亚洲成av人**亚洲成av**| 一区二区三区在线免费|