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

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

?? leafcategorizer.java

?? 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一区二区三区免费野_久草精品视频
日韩欧美中文字幕精品| 欧美性猛交一区二区三区精品| 亚洲综合色噜噜狠狠| 欧美一级久久久| 97se亚洲国产综合自在线观| 一本一道久久a久久精品| 五月天激情综合网| 性欧美大战久久久久久久久| 免费在线视频一区| 国产主播一区二区| 91玉足脚交白嫩脚丫在线播放| 成人免费毛片嘿嘿连载视频| 91在线码无精品| 欧美日韩精品免费| 久久久久久夜精品精品免费| 1区2区3区国产精品| 日欧美一区二区| 99久久婷婷国产综合精品电影| 日韩不卡手机在线v区| 69精品人人人人| 国产精品美女久久福利网站| 亚洲一区影音先锋| 国产在线精品国自产拍免费| 91久久香蕉国产日韩欧美9色| 欧美一区2区视频在线观看| 中文字幕一区二区三区蜜月| 日本系列欧美系列| 色菇凉天天综合网| 亚洲欧美在线视频| 成人精品鲁一区一区二区| 在线视频你懂得一区二区三区| 91视频国产观看| 中文字幕五月欧美| 国产一区二区主播在线| 日韩欧美一级特黄在线播放| 亚洲成人tv网| 欧美日本国产视频| 三级在线观看一区二区| 欧美日韩高清在线播放| 亚洲一区二三区| 3d成人h动漫网站入口| 婷婷丁香久久五月婷婷| 欧美一区二区三区在| 青娱乐精品视频在线| 日韩精品一区二区三区三区免费| 日韩在线一区二区三区| 欧美成人综合网站| 成人免费视频国产在线观看| 亚洲天堂福利av| 99视频精品在线| 亚洲欧洲精品一区二区精品久久久| 国产麻豆日韩欧美久久| 亚洲天堂精品在线观看| 欧美日韩成人综合在线一区二区| 日韩国产精品久久久久久亚洲| 精品国产亚洲一区二区三区在线观看| 日韩成人一级大片| 精品美女在线观看| 欧美伊人精品成人久久综合97 | 成人黄色综合网站| 亚洲一区二区三区不卡国产欧美| 日韩一二三四区| 色综合一区二区三区| 久草精品在线观看| 亚洲成人精品一区二区| 国产午夜亚洲精品不卡| 欧美日韩中文字幕精品| 不卡一区二区中文字幕| 亚洲一区日韩精品中文字幕| 久久伊人蜜桃av一区二区| 色综合中文字幕国产 | 国产人久久人人人人爽| 欧美日本在线播放| 欧美人伦禁忌dvd放荡欲情| 成人精品免费看| 99久久综合99久久综合网站| 国产suv一区二区三区88区| 国产美女一区二区| 国产福利一区二区三区视频| 久久91精品国产91久久小草 | 在线观看视频一区| 一本一道久久a久久精品综合蜜臀| 国产精品一级在线| 99久久精品国产网站| 在线观看欧美日本| www激情久久| 国产精品免费aⅴ片在线观看| 国产精品麻豆久久久| 亚洲一区二区欧美激情| 蓝色福利精品导航| 国产精品影视天天线| 高清av一区二区| av电影一区二区| 欧美色成人综合| 欧美精品一区二区久久婷婷 | 国产在线视频一区二区三区| 麻豆国产精品777777在线| 三级欧美在线一区| 国产精品一区二区三区网站| 97久久超碰精品国产| 不卡一区二区中文字幕| 欧亚一区二区三区| 日韩欧美一级二级三级久久久 | 国产成人在线色| 国产传媒久久文化传媒| 国产91露脸合集magnet| 欧美亚洲一区二区在线观看| 日韩手机在线导航| 亚洲视频小说图片| 久久精品国产亚洲一区二区三区| 国产高清精品网站| 91精品国产乱| 日韩美一区二区三区| 亚洲6080在线| 成人免费视频一区二区| 精品嫩草影院久久| 日产国产欧美视频一区精品| 国产在线精品一区二区不卡了| 成年人国产精品| 久久精品夜色噜噜亚洲a∨| 日韩理论片中文av| 国产一区激情在线| 精品国产伦一区二区三区免费| 一区二区三区精品久久久| 精品一区精品二区高清| 色婷婷精品久久二区二区蜜臂av | 一本色道久久加勒比精品 | 制服丝袜亚洲色图| 天堂成人国产精品一区| 欧美日韩不卡在线| 免费人成在线不卡| 99riav久久精品riav| 亚洲欧洲美洲综合色网| 99久久99久久免费精品蜜臀| 国产精品久久久久久福利一牛影视| 成人毛片在线观看| 亚洲卡通动漫在线| 日韩午夜av电影| 成人福利电影精品一区二区在线观看| 国产午夜精品一区二区三区嫩草| 韩国v欧美v日本v亚洲v| 亚洲精选免费视频| 欧美mv日韩mv亚洲| 欧美私人免费视频| 国产二区国产一区在线观看| 亚洲精品中文在线影院| 欧美精品一区男女天堂| 久久精品免费观看| 亚洲成av人在线观看| 国产精品三级视频| 精品国产电影一区二区| 欧美影视一区二区三区| 首页国产丝袜综合| 欧美性猛片aaaaaaa做受| 国产精品亚洲第一| 五月综合激情网| 亚洲国产视频在线| 亚洲日本欧美天堂| 亚洲视频中文字幕| 国产欧美日韩在线视频| 国产欧美日韩三区| xfplay精品久久| 中文字幕成人av| 日本一区二区三区电影| 欧美优质美女网站| 麻豆精品视频在线| 亚洲大片在线观看| 欧美日韩一卡二卡| 亚洲免费av网站| 日韩免费高清电影| 91精品国产综合久久精品图片| 日本高清不卡在线观看| 欧美视频在线观看一区| 欧美这里有精品| 欧美精品三级日韩久久| 欧美日韩久久久| 久久亚洲精品小早川怜子| 久久综合久久综合久久综合| 国产欧美一区二区在线观看| 久久久影视传媒| 一区二区三区91| 国内精品国产成人国产三级粉色 | 亚洲一区二区三区中文字幕在线| 国产精品久久久久久久裸模| 亚洲精品免费看| 亚洲线精品一区二区三区| 国产成人av在线影院| 在线视频一区二区三| 国产精品久99| 男女性色大片免费观看一区二区| 国产一区久久久| 欧美不卡视频一区| 图片区小说区区亚洲影院| 成人av网址在线| 久久免费的精品国产v∧| 天堂久久久久va久久久久| 欧美性受xxxx| 亚洲国产裸拍裸体视频在线观看乱了 | 日本中文字幕一区二区视频| 97精品超碰一区二区三区|