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

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

?? leafcategorizer.java

?? Decision Tree 決策樹算法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一区二区三区免费野_久草精品视频
成人免费视频app| 成人一级黄色片| 中文字幕五月欧美| 国产精品拍天天在线| 久久蜜臀中文字幕| 国产亚洲精久久久久久| 久久久亚洲国产美女国产盗摄 | 国产日韩欧美制服另类| 久久婷婷色综合| 久久先锋影音av| 国产精品久久综合| 一区二区欧美精品| 天堂精品中文字幕在线| 奇米色一区二区三区四区| 免费观看在线综合色| 国产一区二区调教| 波多野结衣的一区二区三区| 色视频成人在线观看免| 欧美日韩另类一区| 日韩免费高清av| 国产三级欧美三级| 亚洲综合在线视频| 免费成人av在线| 成人黄色a**站在线观看| 92国产精品观看| 欧美视频在线一区| 欧美精品一区二区三区蜜臀| 国产精品欧美综合在线| 亚洲激情第一区| 九九**精品视频免费播放| 国产成人8x视频一区二区| 色噜噜狠狠色综合中国| 日韩视频一区二区在线观看| 综合精品久久久| 日韩影视精彩在线| 不卡一区二区三区四区| 欧美电影在线免费观看| 国产精品无圣光一区二区| 亚洲成人综合视频| 成人av在线一区二区| 在线播放一区二区三区| 国产精品久久久久久一区二区三区| 亚洲一区在线观看视频| 国产宾馆实践打屁股91| 欧美久久久久久久久久| 亚洲欧洲日产国码二区| 九九**精品视频免费播放| 欧美亚洲图片小说| 国产精品全国免费观看高清| 久久精品av麻豆的观看方式| 色8久久人人97超碰香蕉987| 国产色爱av资源综合区| 久久精品国产亚洲5555| 欧美色图天堂网| 国产精品对白交换视频| 韩国女主播一区| 日韩你懂的电影在线观看| 亚洲午夜av在线| 91香蕉国产在线观看软件| 国产亚洲婷婷免费| 蜜桃av噜噜一区二区三区小说| 在线观看国产91| 中文字幕不卡在线观看| 国产电影一区二区三区| 日韩欧美在线观看一区二区三区| 亚洲一区影音先锋| 色婷婷综合久久久中文字幕| 日韩一区欧美一区| jlzzjlzz亚洲女人18| 久久久久免费观看| 激情深爱一区二区| 久久这里只有精品首页| 久久99九九99精品| 久久久美女毛片| 激情综合网av| 久久综合一区二区| 精品中文字幕一区二区小辣椒| 91精品在线免费观看| 免费观看一级特黄欧美大片| 久久久久国产一区二区三区四区| 另类的小说在线视频另类成人小视频在线| 欧美日韩精品免费| 亚洲成人av一区二区| 91精品一区二区三区久久久久久 | 精品一区二区精品| 久久久亚洲精品一区二区三区| 国产精品99久久久久久久女警| 精品久久五月天| 国产91清纯白嫩初高中在线观看| 国产欧美精品一区二区三区四区 | 91久久精品午夜一区二区| 亚洲欧美激情在线| 精品视频在线看| 日韩精品电影在线观看| 久久综合九色综合97_久久久| 国产成人亚洲综合a∨婷婷| 国产精品电影一区二区| 欧美最猛性xxxxx直播| 日韩电影一二三区| 国产欧美一区二区精品性| 成人激情视频网站| 一区二区三区精品在线观看| 3d成人h动漫网站入口| 国模冰冰炮一区二区| 亚洲日本电影在线| 欧美一区二区三区精品| 国产成人免费在线| 偷拍自拍另类欧美| 国产日韩欧美电影| 欧美另类变人与禽xxxxx| 国产剧情一区在线| 亚洲精品乱码久久久久久| 日韩精品在线网站| 色婷婷综合久久久久中文一区二区 | 日韩精品91亚洲二区在线观看 | 欧美色视频在线| 国产老女人精品毛片久久| 一区二区三区四区激情| 久久久五月婷婷| 欧美卡1卡2卡| 91丝袜美腿高跟国产极品老师 | 国产精品女主播av| 欧美精品三级在线观看| 成人av网址在线| 全部av―极品视觉盛宴亚洲| 亚洲天堂2014| 日本一区二区三级电影在线观看| 欧美日韩另类一区| 色综合久久久网| 粉嫩13p一区二区三区| 精品一区二区久久| 日韩精品三区四区| 亚洲一二三区不卡| 中文字幕一区二区三区av| 精品国产区一区| 在线综合视频播放| 欧美日韩国产精品成人| 欧美在线视频不卡| 一本色道**综合亚洲精品蜜桃冫| 风间由美中文字幕在线看视频国产欧美| 亚洲电影中文字幕在线观看| 中文字幕佐山爱一区二区免费| 欧美成人一区二区| 日韩限制级电影在线观看| 欧美高清视频一二三区 | 亚洲一区二区中文在线| 亚洲免费观看高清完整版在线 | 欧美午夜不卡在线观看免费| 成人精品视频一区二区三区尤物| 国产精品一级在线| 国产在线视频一区二区| 免费看黄色91| 欧美三级电影在线观看| 欧美曰成人黄网| 欧美亚洲禁片免费| 欧美三级乱人伦电影| 欧美日韩国产电影| 91麻豆精品国产91久久久久| 日韩一级二级三级精品视频| 欧美一卡二卡在线| wwwwxxxxx欧美| 国产精品色哟哟网站| 亚洲日本电影在线| 亚洲在线中文字幕| 免费人成网站在线观看欧美高清| 日韩精品成人一区二区在线| 精品无码三级在线观看视频| 精品一区二区三区免费视频| 国产宾馆实践打屁股91| 99re成人精品视频| 欧美日韩aaa| 精品国产凹凸成av人网站| 国产精品系列在线| 亚洲一区二区三区小说| 久久精品国产精品亚洲精品| 粉嫩嫩av羞羞动漫久久久| 91麻豆免费看| 91精品国产高清一区二区三区| 久久久久久久性| 一区二区三区在线视频观看| 免费观看在线综合色| 北条麻妃一区二区三区| 欧美日韩成人高清| 国产日本亚洲高清| 亚洲无人区一区| 国产成人免费在线| 欧美日韩视频在线一区二区| 精品成人a区在线观看| 1000部国产精品成人观看| 日本美女一区二区三区视频| 国产成人a级片| 制服丝袜日韩国产| 亚洲色图丝袜美腿| 久久电影网站中文字幕| 色综合亚洲欧洲| 精品国产免费人成在线观看| 一区二区三区视频在线看| 国产精品1区2区| 欧美精品1区2区3区| 自拍偷拍亚洲综合|