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

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

?? thresholdcategorizer.java

?? 基于決策樹的數據挖掘算法
?? 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一区二区三区免费野_久草精品视频
亚洲午夜久久久久久久久久久| 91精品在线一区二区| 国产欧美精品一区二区三区四区| 狠狠色丁香婷综合久久| 久久综合色综合88| 成人精品电影在线观看| 最新热久久免费视频| 色爱区综合激月婷婷| 天堂影院一区二区| 精品999在线播放| 成人h版在线观看| 亚洲精品高清视频在线观看| 欧美午夜宅男影院| 久久精品国产第一区二区三区| 久久伊人蜜桃av一区二区| 不卡的av网站| 天天av天天翘天天综合网 | 国产精品美女久久久久av爽李琼| 成人动漫精品一区二区| 亚洲大型综合色站| 久久久久久免费网| 色狠狠av一区二区三区| 免费在线看成人av| 国产精品欧美久久久久一区二区| 在线免费观看日本欧美| 精品一区二区成人精品| 亚洲免费观看高清在线观看| 欧美一二三四区在线| 成人激情免费视频| 日本vs亚洲vs韩国一区三区二区| 国产日本亚洲高清| 欧美日韩成人综合| 国产一区二区精品在线观看| 亚洲精品视频一区二区| 欧美精品一区二区高清在线观看| 91亚洲国产成人精品一区二三| 热久久免费视频| 亚洲欧洲国产日本综合| 欧美成人国产一区二区| 在线一区二区三区四区| 欧美日韩激情一区| av欧美精品.com| 久久综合综合久久综合| 亚洲一二三四在线观看| 亚洲国产精品二十页| 欧美一级艳片视频免费观看| 91网站黄www| 国产乱码字幕精品高清av| 天堂久久久久va久久久久| 亚洲色欲色欲www| 久久亚洲综合色| 91精品国产手机| 欧美系列亚洲系列| 91蜜桃免费观看视频| 国产精品综合网| 久久99蜜桃精品| 亚洲第一av色| 亚洲无线码一区二区三区| 综合欧美一区二区三区| 亚洲国产成人私人影院tom| 日韩一级片网址| 9191精品国产综合久久久久久| 色欧美片视频在线观看在线视频| 不卡的av在线| 丰满少妇在线播放bd日韩电影| 国内精品写真在线观看| 男人的j进女人的j一区| 日韩—二三区免费观看av| 亚洲风情在线资源站| 亚洲一区二区不卡免费| 亚洲一区二区五区| 亚洲线精品一区二区三区八戒| 亚洲天堂成人在线观看| 综合中文字幕亚洲| 中文字幕日韩一区| 亚洲欧洲美洲综合色网| 亚洲三级视频在线观看| 国产精品久久久久一区| 国产精品每日更新| 中文字幕一区二区三区在线不卡| 国产精品传媒入口麻豆| 日韩伦理av电影| 亚洲夂夂婷婷色拍ww47| 亚洲一区二区三区美女| 婷婷开心激情综合| 日本少妇一区二区| 美女在线观看视频一区二区| 麻豆免费精品视频| 国产精品一品二品| 成人涩涩免费视频| 色网综合在线观看| 欧美精品在线一区二区| 欧美一级xxx| 久久先锋资源网| 国产精品免费视频一区| 一区二区三区四区av| 亚洲国产精品视频| 精品一区二区在线观看| 国产成人精品一区二区三区网站观看 | 欧美人牲a欧美精品| 538prom精品视频线放| 精品久久久久久综合日本欧美| 国产清纯白嫩初高生在线观看91| 中文字幕一区二区三区在线不卡 | 91麻豆精品国产91久久久更新时间 | 国产精品91一区二区| 99久久免费国产| 欧美日韩中文另类| 精品久久久久久久久久久院品网| 欧美经典一区二区三区| 一区二区三区精密机械公司| 亚洲第一在线综合网站| 精品一区二区三区在线播放| av高清久久久| 日韩一区二区三区精品视频| 国产欧美日韩在线| 亚洲大片免费看| 国产91在线|亚洲| 欧洲一区二区三区在线| 久久众筹精品私拍模特| 亚洲黄色小视频| 国产一区高清在线| 在线亚洲一区二区| 久久久国产精华| 午夜精品123| 成人av手机在线观看| 日韩一区二区高清| 18成人在线观看| 激情五月播播久久久精品| 一本色道久久综合亚洲精品按摩| 欧美成人艳星乳罩| 亚洲国产综合在线| 国内一区二区视频| 91.xcao| 亚洲精品网站在线观看| 国产精品12区| 日韩午夜av一区| 一区二区三区影院| 成人午夜av影视| 日韩精品中文字幕在线不卡尤物| 综合在线观看色| 懂色av一区二区夜夜嗨| 精品国产三级a在线观看| 水野朝阳av一区二区三区| 91欧美激情一区二区三区成人| 2020国产精品| 美女在线观看视频一区二区| 欧美视频精品在线观看| 亚洲精品国产高清久久伦理二区| 成人自拍视频在线观看| 久久五月婷婷丁香社区| 老司机精品视频导航| 91精品国产色综合久久ai换脸 | 91国产视频在线观看| 日本一区二区三区四区| 国产一区二区三区国产| 日韩一区二区三区在线观看| 日韩在线卡一卡二| 欧美午夜宅男影院| 亚洲在线视频免费观看| 在线观看亚洲专区| 亚洲精品视频在线观看免费 | 在线视频一区二区免费| 亚洲欧美日韩国产综合在线| 91性感美女视频| 亚洲欧美国产三级| 色婷婷一区二区| 一区二区三区精品| 欧美日韩在线三区| 五月天久久比比资源色| 欧美精品一二三区| 麻豆freexxxx性91精品| 日韩欧美一区二区久久婷婷| 精品一区二区免费在线观看| 2欧美一区二区三区在线观看视频| 久久电影网站中文字幕| 欧美成人aa大片| 国产成人在线免费观看| 国产精品毛片大码女人| 91色porny| 首页欧美精品中文字幕| 精品乱人伦一区二区三区| 看国产成人h片视频| 国产婷婷色一区二区三区四区| 国产成人免费在线视频| 国产精品久久久久久久久久久免费看| 成人av电影免费在线播放| 亚洲欧美视频在线观看| 欧美日韩在线播放三区| 麻豆精品在线播放| 国产日韩精品一区二区三区| 91亚洲男人天堂| 亚洲成a人在线观看| 欧美r级电影在线观看| 丁香另类激情小说| 亚洲一区在线视频观看| 日韩午夜激情视频| zzijzzij亚洲日本少妇熟睡| 香蕉久久夜色精品国产使用方法| 2023国产一二三区日本精品2022|