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

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

?? attrcategorizer.java

?? 數據倉庫挖掘與開發 ID3算法實現代碼
?? JAVA
字號:
package id3;
import java.lang.*;
import java.io.*;
import shared.*;
import shared.Error;

/** The AttrCategorizer categorizes an Instance based on an attribute.
 * Assumes the attribute is of a type derived from Nominal.
 * @author James Louis	2/25/2001	Ported to Java.
 * @author Chia-Hsin Li	11/23/94	Add operator==
 * @author Ronny Kohavi	8/02/93	Initial revision
 */
public class AttrCategorizer extends NodeCategorizer {
    /** The number of the specific attribute in this AttrCategorizer. **/
    private int attrNum;
    /** The information on labels and attributes. **/
    private AttrInfo attrInfo;
    
    /** Constructor.
     * @param schma		The schema for this categorizer.
     * @param attributeNum	The number of the specific attribute in the schema
     * for the data.
     * @param dscr			The description of this categorizer.
     */
    public AttrCategorizer(Schema schma, int attributeNum, String dscr) {
        super(num_nominal_attr(schma, attributeNum), dscr, schma);
        try {
            attrInfo =(AttrInfo) schma.attr_info(attributeNum).clone();
        } catch(CloneNotSupportedException e) {
            System.out.println(e.toString());
        }
        attrNum = attributeNum;
    }
    
    /** Finds the number of attributes that are nominal in nature.
     * @return The number of nominal attributes.
     * @param schema	The schema containing attribute and label information.
     * @param attrNum	The number of the specific attribute in the schema for
     * the data.
     */
    public static int num_nominal_attr(Schema schema, int attrNum) {
        if (attrNum < 0)
            Error.fatalErr("AttrCategorizer::num_nominal_attr: Bad attribute number: " +
            attrNum);
        
        // find the matching schema
        NominalAttrInfo nai = schema.nominal_attr_info(attrNum);
        return nai.num_values();
    }
    
    /** Identifies the class.
     * @deprecated Java's instanceof operator should be used instead.
     * @return A value uniquely identifying this object as an AttrCategorizer.
     */
    public int class_id() {
        return CLASS_ATTR_CATEGORIZER;
    }
    
    /** Choses the child branch that the given instance would go down. Used
     * for scoring, categorization, and splitting of InstanceLists.
     * @return The AugCategory that correlates to the specified Instance.
     * @param inst	The specified Instance.
     */
    public AugCategory branch(Instance inst) {
        //      if (Globals.DBG) inst.attr_info(attrNum).compatible_with(attrInfo, true);
        AttrValue val = inst.values[attrNum];
        String dscr = attrInfo.attrValue_to_string(val);
        AugCategory ac = new AugCategory(attrInfo.get_nominal_val(val) , dscr);
        return ac;
    }
    
    /** Prints a readable representation of the Categorizer to the given stream.
     * @param stream	The output stream to be written to.
     * @param dp		The preference settings for the display.
     */
    public void display_struct(BufferedWriter stream,
    DisplayPref dp) {
        //   if (stream.output_type() == XStream)
        //      err << "AttrCategorizer::display_struct: Xstream is not a supported "
        //             "stream"  << fatal_error;
        
        //   if (dp.preference_type() != DisplayPref::ASCIIDisplay)
        //      err << "AttrCategorizer::display_struct: Only ASCIIDisplay is "
        //             "supported by AttrCategorizer"  << fatal_error;
        try {
            stream.write("Attribute Categorizer " +description()
            + " categorizing on attribute " +attrInfo.name() + '\n');
        } catch(IOException e) {
            e.printStackTrace();
        }
    }
    
    /** Updates usedAttr to include the attributes used in this categorizer.
     * @param usedAttr A boolean array representing attributes. Each element set
     * to TRUE indicates the attribute is used. It is FALSE
     * otherwise. This method sets the appropriate attribute
     * element to true.
     */
    public void set_used_attr(boolean[] usedAttr) {
        MLJ.ASSERT((attrNum >= 0)&&(attrNum < usedAttr.length),
        "AttrCategorizer::set_used_attr: "
        + "attrNum is not between 0 and usedAttr.length");
        usedAttr[attrNum] = true;
    }
    
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品福利久久久| 国产成人鲁色资源国产91色综| 九九精品视频在线看| 波多野结衣91| 欧美不卡一区二区| 亚洲影视在线观看| 99视频一区二区三区| 日韩一卡二卡三卡国产欧美| 亚洲欧洲一区二区三区| 狠狠v欧美v日韩v亚洲ⅴ| 在线观看视频欧美| 中文字幕制服丝袜一区二区三区 | 国产精品久久毛片av大全日韩| 亚洲电影你懂得| 色综合天天综合给合国产| 久久日韩精品一区二区五区| 亚洲不卡在线观看| 在线观看日韩一区| 亚洲美女免费在线| 成年人国产精品| 亚洲精品在线观看视频| 日本视频中文字幕一区二区三区| 欧美天堂一区二区三区| 1024成人网| 97超碰欧美中文字幕| 国产无人区一区二区三区| 久久成人综合网| 欧美丰满少妇xxxxx高潮对白| 亚洲人成网站影音先锋播放| aaa国产一区| 国产精品久久久久四虎| 国产成人精品一区二区三区四区| 欧美精品一区二区三区很污很色的| 日韩av一区二区在线影视| 51久久夜色精品国产麻豆| 水蜜桃久久夜色精品一区的特点| 欧美日韩中文国产| 亚洲电影你懂得| 欧美精品久久天天躁| 亚洲一卡二卡三卡四卡无卡久久| 色丁香久综合在线久综合在线观看| 中文字幕在线观看不卡| 99在线视频精品| 亚洲第一福利一区| 91.麻豆视频| 狠狠色伊人亚洲综合成人| 欧美精品一区视频| 国产91精品入口| 国产精品免费av| 99re成人在线| 一区二区三区久久| 91精品国产综合久久福利软件| 日本色综合中文字幕| 欧美xingq一区二区| 国产91在线|亚洲| 一区二区三区中文字幕电影| 色女孩综合影院| 天堂va蜜桃一区二区三区| 欧美精品一区二区三区蜜臀| 国产黄色精品网站| 日韩理论片在线| 欧美日韩你懂得| 国产一区二区在线影院| 国产精品久久久久久久午夜片| 91免费小视频| 日韩av电影免费观看高清完整版 | 国产精品久久久一本精品| 91在线观看免费视频| 五月天精品一区二区三区| 久久一区二区三区国产精品| 成人永久看片免费视频天堂| 亚洲永久精品大片| 久久精品在线免费观看| 91福利视频久久久久| 九九国产精品视频| 亚洲美女精品一区| 精品欧美乱码久久久久久| 99精品视频在线观看| 日韩影院在线观看| 中文字幕在线一区免费| 欧美一区二区三区四区高清| 国产999精品久久久久久绿帽| 亚洲成人av电影| 国产女人18水真多18精品一级做| 欧美日本国产视频| www.激情成人| 国产在线不卡一卡二卡三卡四卡| 一区二区久久久久| 欧美国产精品专区| 日韩欧美一区二区久久婷婷| 色综合天天做天天爱| 国产一区三区三区| 图片区小说区区亚洲影院| 久久亚洲精品小早川怜子| 精品污污网站免费看| 本田岬高潮一区二区三区| 激情小说亚洲一区| 日韩不卡一区二区三区| 亚洲丝袜自拍清纯另类| 国产亚洲一二三区| 欧美一卡在线观看| 欧美日本在线视频| 日本道精品一区二区三区| 国产高清亚洲一区| 麻豆91在线播放| 日韩高清在线电影| 亚洲一区在线观看免费观看电影高清| 国产精品嫩草99a| 欧美国产亚洲另类动漫| 欧美不卡视频一区| 日韩一区二区免费在线电影| 欧美日韩在线一区二区| 欧美日韩综合一区| 欧美视频一区二区三区四区 | 亚洲愉拍自拍另类高清精品| 中文字幕在线免费不卡| 国产精品久久久久一区二区三区共| 久久久电影一区二区三区| 26uuu精品一区二区在线观看| 欧美一区二区精品在线| 日韩一区二区影院| 日韩欧美黄色影院| xvideos.蜜桃一区二区| 久久亚洲一区二区三区明星换脸| 2021中文字幕一区亚洲| 久久午夜电影网| 久久久久久久精| 国产精品天美传媒沈樵| 国产精品视频免费| 中文字幕欧美一| 亚洲精品国产一区二区精华液| 亚洲乱码国产乱码精品精小说| 亚洲精品免费一二三区| 五月天激情综合| 免费精品视频在线| 国产成人在线视频网站| 播五月开心婷婷综合| 色婷婷综合久久久久中文| 欧美三级中文字幕| 精品久久人人做人人爱| 国产欧美一区二区精品婷婷| 中文字幕亚洲不卡| 曰韩精品一区二区| 天堂久久一区二区三区| 风间由美一区二区av101| 不卡的电视剧免费网站有什么| 一本久道中文字幕精品亚洲嫩 | 亚洲一区在线观看视频| 美女视频黄 久久| 丁香亚洲综合激情啪啪综合| 91久久国产最好的精华液| 91精品欧美久久久久久动漫| 久久精品人人做人人爽97| 亚洲精品国产精品乱码不99 | 亚洲韩国精品一区| 日本aⅴ免费视频一区二区三区| 国产成人午夜99999| 在线观看日韩一区| 精品国产乱码久久久久久影片| 国产精品水嫩水嫩| 日本午夜精品视频在线观看| 福利视频网站一区二区三区| 在线精品视频小说1| 欧美mv日韩mv| 一区二区三区欧美久久| 久久99国产精品麻豆| 成人福利电影精品一区二区在线观看| 欧美日韩视频一区二区| 国产调教视频一区| 奇米综合一区二区三区精品视频 | 6080yy午夜一二三区久久| 久久久久久综合| 丝袜美腿亚洲综合| 日本乱码高清不卡字幕| 国产女同互慰高潮91漫画| 免费在线看一区| 在线一区二区三区四区五区| 久久久精品国产免费观看同学| 亚洲动漫第一页| 9久草视频在线视频精品| 精品99999| 免费在线观看一区| 欧美日韩免费观看一区三区| 中文字幕日本不卡| 成人一区二区视频| 久久夜色精品国产欧美乱极品| 奇米在线7777在线精品| 99国产精品久久久久久久久久 | 精品国产一区二区三区久久影院 | 欧美日韩视频在线第一区| 亚洲天堂成人网| 精品视频在线免费看| 亚洲欧美日韩中文字幕一区二区三区 | 国产精品免费久久| 国产成人精品午夜视频免费| 日韩丝袜情趣美女图片| 免费观看在线综合| 日韩一区二区在线观看视频| 天堂一区二区在线| 欧美一区二区福利视频|