亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧洲一区在线电影| 欧美精品电影在线播放| 激情成人综合网| 成人午夜视频在线| 日韩欧美久久一区| 亚洲午夜激情av| caoporn国产精品| 精品三级在线看| 日本大胆欧美人术艺术动态| 色婷婷久久一区二区三区麻豆| 久久久亚洲综合| 免费成人小视频| 欧美一区二区成人| 日韩精品电影在线观看| 欧美午夜精品免费| 国产精品美女www爽爽爽| 黄一区二区三区| 欧美成人一区二区三区| 午夜伦理一区二区| 欧美色手机在线观看| 亚洲精品久久久蜜桃| 色综合亚洲欧洲| 亚洲三级在线免费| 成人国产精品免费| 中文字幕不卡一区| 99精品国产热久久91蜜凸| 国产精品国产三级国产aⅴ入口 | 亚洲午夜精品网| 在线视频观看一区| 国产色一区二区| 成人午夜碰碰视频| 中文字幕乱码日本亚洲一区二区| 国模一区二区三区白浆| 久久精品视频在线免费观看| 国产高清精品久久久久| 久久综合九色综合欧美98| 国内久久婷婷综合| 日本一区二区三区在线观看| heyzo一本久久综合| 亚洲欧美韩国综合色| 欧美曰成人黄网| 亚洲成a人片综合在线| 欧美美女一区二区在线观看| 男人的天堂亚洲一区| 久久婷婷国产综合精品青草| 国产成人一区二区精品非洲| 日韩毛片高清在线播放| 在线观看一区不卡| 日韩avvvv在线播放| 久久精品欧美日韩| 中文字幕欧美日韩一区| 97超碰欧美中文字幕| 亚洲国产精品一区二区www在线| 欧美区在线观看| 国产真实乱子伦精品视频| 国产精品理论片| 欧美日韩黄色影视| 国产福利91精品一区| 亚洲美女区一区| 欧美一级艳片视频免费观看| 国产成人一区二区精品非洲| 亚洲一区二区在线免费观看视频 | 午夜伦理一区二区| 久久午夜老司机| 91黄色免费看| 国产在线观看一区二区| 亚洲欧美日韩国产综合在线| 欧美一级午夜免费电影| 99在线精品观看| 美女诱惑一区二区| 综合久久久久久久| 欧美不卡一区二区| 色婷婷亚洲一区二区三区| 激情文学综合丁香| 亚洲国产aⅴ天堂久久| 国产亚洲精品福利| 91精品国产综合久久精品app| 成人亚洲一区二区一| 秋霞午夜鲁丝一区二区老狼| 亚洲视频资源在线| 久久精品人人做人人综合 | 亚洲午夜久久久久久久久久久| 欧美刺激脚交jootjob| 色女孩综合影院| 国产91在线看| 久久精品av麻豆的观看方式| 一区二区三区国产精品| 国产免费成人在线视频| 日韩视频一区二区三区 | 成人毛片在线观看| 麻豆成人在线观看| 亚洲成人av在线电影| 亚洲欧洲精品一区二区三区不卡| 精品美女在线观看| 91精品欧美综合在线观看最新| 色综合视频在线观看| 成人app在线观看| 国产传媒日韩欧美成人| 国内精品久久久久影院一蜜桃| 日本欧美肥老太交大片| 亚洲18色成人| 亚洲国产一区二区三区 | 麻豆久久一区二区| 日韩av在线免费观看不卡| 性欧美疯狂xxxxbbbb| 亚洲精品第1页| 亚洲日本在线天堂| 亚洲精品综合在线| 亚洲男同性恋视频| 亚洲激情图片一区| 一二三区精品福利视频| 亚洲激情六月丁香| 亚洲午夜久久久| 亚洲bt欧美bt精品777| 亚洲午夜一区二区| 丝瓜av网站精品一区二区| 亚洲成va人在线观看| 日韩国产成人精品| 美女一区二区三区在线观看| 久草这里只有精品视频| 韩日av一区二区| 国产.精品.日韩.另类.中文.在线.播放| 国产在线看一区| 国产剧情av麻豆香蕉精品| 国产乱码字幕精品高清av| 国产成人高清视频| 成人开心网精品视频| 色噜噜偷拍精品综合在线| 在线观看日韩国产| 欧美伦理影视网| 亚洲精品一区二区三区香蕉| 欧美极品少妇xxxxⅹ高跟鞋 | 视频在线观看91| 久久精品国产99久久6| 国产精品资源网| 99re热视频精品| 欧美日韩在线免费视频| 日韩精品一区二区三区视频| 国产日韩高清在线| 亚洲线精品一区二区三区| 久久国产尿小便嘘嘘| av亚洲精华国产精华精| 欧美丝袜自拍制服另类| www激情久久| 亚洲精品久久久久久国产精华液| 日本中文字幕一区二区视频 | 国产精品美日韩| 亚洲一区视频在线观看视频| 九九精品一区二区| 色域天天综合网| 精品国精品国产| 亚洲蜜臀av乱码久久精品| 久久疯狂做爰流白浆xx| 97久久精品人人爽人人爽蜜臀| 91精品婷婷国产综合久久竹菊| 国产性做久久久久久| 午夜视频一区二区三区| 不卡的av中国片| 欧美va亚洲va香蕉在线| 亚洲蜜桃精久久久久久久| 国产精品资源在线| 欧美一级欧美一级在线播放| 中文字幕制服丝袜成人av | 亚洲国产成人av| 国产suv精品一区二区883| 欧美日韩精品三区| 亚洲丝袜制服诱惑| 国产成人欧美日韩在线电影| 欧美日韩国产一区二区三区地区| 日本一区二区三级电影在线观看 | 亚洲卡通动漫在线| 国产成人鲁色资源国产91色综| 欧美久久久影院| 一区二区三区 在线观看视频| 国产乱国产乱300精品| 日韩一区二区电影| 日韩国产精品大片| 欧美性猛交一区二区三区精品| 国产精品色哟哟网站| 国产一区二区三区不卡在线观看| 欧美一区二区三区在线观看| 亚洲一区在线电影| 在线免费观看日韩欧美| 国产精品理论片| 成人高清免费观看| 久久久久久久久蜜桃| 国产精品自拍网站| 久久美女艺术照精彩视频福利播放| 蜜臀精品一区二区三区在线观看| 欧美日韩三级在线| 尤物视频一区二区| 一本大道久久a久久精二百| 中文字幕一区二区三区不卡在线| 国产成人免费视频精品含羞草妖精 | 成人听书哪个软件好| 久久精品视频免费观看| 大尺度一区二区| 国产精品久久午夜夜伦鲁鲁| 99久久免费视频.com| 亚洲激情第一区|