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

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

?? thresholdcategorizer.java

?? 自己編的ID3算法很小但效果很好
?? JAVA
字號:
package id3;
import java.lang.*;
import java.io.*;
import shared.*;

/** Categorize an instance by comparing the value of a single attribute to a
 * threshold value. All instances for which the attribute is less than or equal
 * to the threshold value are put into one category and those for which the
 * attribute is greater than the threshold value are put into a second category.
 * The attribute must be Real.
 *
 * @author James Louis Java Implementation.
 * @author Chia-Hsin Li 11/23/94 Add operator==
 * @author Brian Frasca 4/12/94 Initial revision
 */
public class ThresholdCategorizer extends NodeCategorizer {
    private AttrInfo attrInfo;
    /**
     */
    private int attrNum;
    private double thresholdVal;
    /** "Less than or equal" to description.
     */
    private String LTEDscr;  // "less than or equal to" description
    /** "Greater than" description.
     */
    private String  GTDscr;  // "greater than" description
    
    static private String UNKNOWN_VAL_STRRC ="?";
    
    /** Construct a ThresholdCategorizer.
     * @param sch The schema for information this categorizer categorizes.
     * @param attributeNum The attribute number for this threshold.
     * @param threshold The threshold value.
     * @param dscr Description of this categorizer.
     */
    public ThresholdCategorizer(Schema sch,
    int attributeNum,
    double threshold,
    String dscr) {
        super(2, dscr, sch);
        attrInfo = sch.attr_info(attributeNum);
        attrNum = attributeNum;
        
        change_threshold(threshold);
    }
    
    /** Changes the threshold value.
     * @param threshold The new threshold value.
     */
    public void change_threshold(double threshold) {
        thresholdVal = threshold;
        // Added to match MLC mantissa length. -JL
        String output = Double.toString(thresholdVal);
        if(output.indexOf('.') != -1 && output.substring(output.indexOf('.'),output.length()).length() > 12)
            output = output.substring(0,output.indexOf('.') + 12);
        LTEDscr = "<= "+output;
        GTDscr =  "> "+output;
    }
    
    
    /** Returns the id number for this class.
     * @return The class id number.
     * @deprecated Use java's instanceOf function.
     */
    public int class_id(){ return CLASS_THRESHOLD_CATEGORIZER; }
    
    /** Builds an array of 3 strings for the labels (?, <= x, and > x) of the edges
     * depending from the node for which this is the categorizer.
     *
     * @return An array of the strings built.
     */
    public String[] real_edge_strings() {
        String LESS_THAN_OR_EQUAL = "<= ";
        String GREATER_THAN = "> ";
        String[] catNames = new String[3]; //(Globals.UNKNOWN_CATEGORY_VAL, 3);
        // CatNames is an array of 3 MStrings:
        //   unknown, left node (less than or equal to thresholdVal), or
        //   right node (greater than thresholdVal).
        catNames[Globals.UNKNOWN_CATEGORY_VAL] = Globals.UNKNOWN_VAL_STR;
        catNames[Globals.UNKNOWN_CATEGORY_VAL+1] = LESS_THAN_OR_EQUAL
        + thresholdVal;
        catNames[Globals.UNKNOWN_CATEGORY_VAL+2] = GREATER_THAN
        + thresholdVal;
        
        return catNames;
    }
    
    /** Returns the edge label leading to the node that the given instance should use
     * to continue scoring or categorization.
     *
     * @param inst The instance being scored.
     * @return Returns the category found after traversing the categorizer.
     */
    public AugCategory branch(Instance inst) {
        //   DBG(inst.attr_info(attrNum).compatible_with(attrInfo, TRUE));
        if (attrInfo.is_unknown(inst.values[attrNum]))
            return new AugCategory(Globals.UNKNOWN_CATEGORY_VAL, UNKNOWN_VAL_STRRC);
        else if (attrInfo.get_real_val(inst.values[attrNum]) <= thresholdVal)
            return new AugCategory(Globals.FIRST_CATEGORY_VAL, LTEDscr);
        else
            return new AugCategory(Globals.FIRST_CATEGORY_VAL+1, GTDscr);
    }
    
    /** Prints a readable representation of the Categorizer to the given stream.
     *
     * @param stream The BufferedWriter to be printed to.
     * @param dp The display preferences.
     */
    public void display_struct(BufferedWriter stream,
    DisplayPref dp) {
        //   if (stream.output_type() == XStream)
        //      err << "ThresholdCategorizer::display_struct: Xstream is not a "
        //          << "supported stream."  << fatal_error;
        
        //   if (dp.preference_type() != DisplayPref::ASCIIDisplay)
        //      err << "ThresholdCategorizer::display_struct: Only ASCIIDisplay is "
        //          << "supported by ThresholdCategorizer."  << fatal_error;
        try{
            stream.write("Threshold 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 An array of used attributes. TRUE values indicate the attribute matched to that
     * index number is used, FALSE indicates it is not.
     */
    public void set_used_attr(boolean[] usedAttr) {
        //   ASSERT (attrNum >= 0 && attrNum < usedAttr.size());
        usedAttr[attrNum] = true;
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色嗨嗨av一区二区三区| 日韩亚洲欧美中文三级| 亚洲精品成人精品456| 91国偷自产一区二区开放时间| 亚洲精品国产成人久久av盗摄| 色婷婷综合激情| 丝袜美腿成人在线| 日韩欧美一区二区在线视频| 国产在线播放一区| 国产精品久久久一本精品| 色网综合在线观看| 天天操天天色综合| 日韩欧美在线不卡| 成人激情动漫在线观看| 亚洲精品乱码久久久久久久久| 欧美色倩网站大全免费| 久草中文综合在线| 国产精品久久久爽爽爽麻豆色哟哟| 91美女片黄在线观看91美女| 亚洲va天堂va国产va久| 精品奇米国产一区二区三区| 风流少妇一区二区| 一区二区高清在线| 日韩女优电影在线观看| 成人高清视频在线观看| 亚洲国产日韩综合久久精品| 精品久久一区二区三区| 97久久精品人人做人人爽| 天堂精品中文字幕在线| 精品成人a区在线观看| www.成人在线| 无码av免费一区二区三区试看| 2020日本不卡一区二区视频| 色综合天天综合网天天狠天天 | 国产女同性恋一区二区| 色又黄又爽网站www久久| 中文字幕精品在线不卡| 欧美伊人久久久久久久久影院 | 色噜噜久久综合| 日韩精品视频网| 中文字幕精品三区| 欧美高清www午色夜在线视频| 国产成a人亚洲精品| 五月天网站亚洲| 欧美国产成人精品| 欧美男男青年gay1069videost| 高清在线成人网| 日韩不卡一区二区| 国产精品久久精品日日| 91精品国产欧美一区二区| 成人久久久精品乱码一区二区三区 | 久久久www免费人成精品| 日本高清不卡视频| 国产一区美女在线| 亚洲成人动漫在线观看| 国产精品乱码人人做人人爱| 成人午夜电影小说| 日韩国产欧美一区二区三区| 亚洲天堂av一区| www激情久久| 欧美日本韩国一区| 91网页版在线| 国产乱子伦视频一区二区三区| 亚洲高清视频的网址| 国产精品欧美精品| 欧美精品一区二区三区高清aⅴ | 国产亚洲欧美日韩在线一区| 欧美三级韩国三级日本一级| 成人91在线观看| 国产伦精品一区二区三区在线观看| 亚洲国产裸拍裸体视频在线观看乱了 | 国产精品乱人伦| 久久这里只有精品首页| 欧美日韩成人综合| 精品在线播放免费| 亚洲视频每日更新| 一本色道久久综合精品竹菊| 91精品国产91久久久久久最新毛片| 欧美精品久久99| 中文字幕一区三区| 亚洲电影中文字幕在线观看| 日韩高清不卡在线| 日韩伦理电影网| 国内精品视频一区二区三区八戒| 色综合久久久久综合体桃花网| 欧美亚洲综合色| 精品国产自在久精品国产| 亚洲一区在线电影| 99riav久久精品riav| 一区二区三区在线播放| 欧美日韩一级二级三级| 色呦呦一区二区三区| av在线播放一区二区三区| 国产不卡一区视频| 国产精品香蕉一区二区三区| 久久99久久久欧美国产| 水蜜桃久久夜色精品一区的特点| 亚洲主播在线观看| 亚洲另类色综合网站| 亚洲人精品一区| 国产精品家庭影院| 国产精品另类一区| 亚洲欧洲一区二区在线播放| 国产亚洲欧美色| 精品视频1区2区3区| 久久疯狂做爰流白浆xx| 中文字幕一区二区三区色视频| 久久九九全国免费| 久久久蜜臀国产一区二区| 337p日本欧洲亚洲大胆精品| 欧美不卡一二三| 精品国产精品网麻豆系列| 日韩视频123| 日韩视频一区二区三区在线播放| 欧美二区三区的天堂| 国产a级毛片一区| 国产a久久麻豆| 成人动漫精品一区二区| 日韩精品一区二区三区在线 | 国产精品丝袜一区| 中文字幕av一区二区三区免费看| 久久精品一区二区三区不卡| 国产欧美视频一区二区| 国产精品视频yy9299一区| 国产精品色噜噜| 亚洲三级在线看| 一级特黄大欧美久久久| 天天色天天爱天天射综合| 免费亚洲电影在线| 国产乱码精品一区二区三区五月婷 | 99久久伊人精品| 欧美亚洲精品一区| 91精品一区二区三区久久久久久| 欧美成人国产一区二区| 国产色综合一区| 亚洲人快播电影网| 亚洲 欧美综合在线网络| 久久精品免费看| 国产成人aaa| 欧美亚日韩国产aⅴ精品中极品| 欧美日韩精品系列| 精品少妇一区二区三区免费观看| 国产欧美一区二区精品久导航| 亚洲天堂av一区| 丝袜美腿亚洲色图| 国产成人综合亚洲网站| 91蜜桃免费观看视频| 91麻豆精品国产91久久久使用方法 | 亚洲成人av电影在线| 久久国产精品99精品国产 | 日韩午夜三级在线| 国产三区在线成人av| 亚洲欧美在线视频观看| 亚洲电影视频在线| 日韩理论片网站| 五月综合激情日本mⅴ| 精品一区二区三区日韩| www.成人网.com| 91麻豆精品国产91久久久更新时间| 久久精品视频免费| 亚洲免费在线视频一区 二区| 亚欧色一区w666天堂| 韩日av一区二区| 91一区二区三区在线观看| 在线播放视频一区| 国产精品人人做人人爽人人添| 久久亚洲免费视频| 国产精品成人在线观看| 午夜精品aaa| 丁香天五香天堂综合| 欧美亚洲图片小说| 久久久影视传媒| 亚洲一区中文在线| 国产美女精品人人做人人爽| 91福利在线看| 久久久久国产免费免费| 亚洲一区二区高清| 国产精品一级黄| 这里只有精品99re| 亚洲手机成人高清视频| 韩国成人在线视频| 欧美亚洲国产一区二区三区va| 91精彩视频在线| 久久久久综合网| 亚洲成人7777| 99riav久久精品riav| 欧美精品一区二区三区蜜桃视频| 一区二区三区影院| 国产一区 二区 三区一级| 91久久免费观看| 国产日韩欧美a| 日韩精品一卡二卡三卡四卡无卡| 成人av在线影院| 久久9热精品视频| 91久久精品一区二区二区| 制服丝袜中文字幕亚洲| 国产精品久久久久影院| 欧美精品一区视频| 亚洲观看高清完整版在线观看 | 91论坛在线播放|