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

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

?? j48.java

?? 代碼是一個分類器的實現,其中使用了部分weka的源代碼。可以將項目導入eclipse運行
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
    if (confidenceString.length() != 0) {      if (m_reducedErrorPruning) {	throw new Exception("Setting the confidence doesn't make sense " +			    "for reduced error pruning.");      } else if (m_unpruned) {	throw new Exception("Doesn't make sense to change confidence for unpruned "			    +"tree!");      } else {	m_CF = (new Float(confidenceString)).floatValue();	if ((m_CF <= 0) || (m_CF >= 1)) {	  throw new Exception("Confidence has to be greater than zero and smaller " +			      "than one!");	}      }    } else {      m_CF = 0.25f;    }    String numFoldsString = Utils.getOption('N', options);    if (numFoldsString.length() != 0) {      if (!m_reducedErrorPruning) {	throw new Exception("Setting the number of folds" +			    " doesn't make sense if" +			    " reduced error pruning is not selected.");      } else {	m_numFolds = Integer.parseInt(numFoldsString);      }    } else {      m_numFolds = 3;    }    String seedString = Utils.getOption('Q', options);    if (seedString.length() != 0) {      m_Seed = Integer.parseInt(seedString);    } else {      m_Seed = 1;    }  }  /**   * Gets the current settings of the Classifier.   *   * @return an array of strings suitable for passing to setOptions   */  public String [] getOptions() {    String [] options = new String [14];    int current = 0;    if (m_noCleanup) {      options[current++] = "-L";    }    if (m_unpruned) {      options[current++] = "-U";    } else {      if (!m_subtreeRaising) {	options[current++] = "-S";      }      if (m_reducedErrorPruning) {	options[current++] = "-R";	options[current++] = "-N"; options[current++] = "" + m_numFolds;	options[current++] = "-Q"; options[current++] = "" + m_Seed;      } else {	options[current++] = "-C"; options[current++] = "" + m_CF;      }    }    if (m_binarySplits) {      options[current++] = "-B";    }    options[current++] = "-M"; options[current++] = "" + m_minNumObj;    if (m_useLaplace) {      options[current++] = "-A";    }    while (current < options.length) {      options[current++] = "";    }    return options;  }  /**   * Returns the tip text for this property   * @return tip text for this property suitable for   * displaying in the explorer/experimenter gui   */  public String seedTipText() {    return "The seed used for randomizing the data " +      "when reduced-error pruning is used.";  }  /**   * Get the value of Seed.   *   * @return Value of Seed.   */  public int getSeed() {        return m_Seed;  }    /**   * Set the value of Seed.   *   * @param newSeed Value to assign to Seed.   */  public void setSeed(int newSeed) {        m_Seed = newSeed;  }  /**   * Returns the tip text for this property   * @return tip text for this property suitable for   * displaying in the explorer/experimenter gui   */  public String useLaplaceTipText() {    return "Whether counts at leaves are smoothed based on Laplace.";  }  /**   * Get the value of useLaplace.   *   * @return Value of useLaplace.   */  public boolean getUseLaplace() {        return m_useLaplace;  }    /**   * Set the value of useLaplace.   *   * @param newuseLaplace Value to assign to useLaplace.   */  public void setUseLaplace(boolean newuseLaplace) {        m_useLaplace = newuseLaplace;  }    /**   * Returns a description of the classifier.   *    * @return a description of the classifier   */  public String toString() {    if (m_root == null) {      return "No classifier built";    }    if (m_unpruned)      return "J48 unpruned tree\n------------------\n" + m_root.toString();    else      return "J48 pruned tree\n------------------\n" + m_root.toString();  }  /**   * Returns a superconcise version of the model   *    * @return a summary of the model   */  public String toSummaryString() {    return "Number of leaves: " + m_root.numLeaves() + "\n"         + "Size of the tree: " + m_root.numNodes() + "\n";  }  /**   * Returns the size of the tree   * @return the size of the tree   */  public double measureTreeSize() {    return m_root.numNodes();  }  /**   * Returns the number of leaves   * @return the number of leaves   */  public double measureNumLeaves() {    return m_root.numLeaves();  }  /**   * Returns the number of rules (same as number of leaves)   * @return the number of rules   */  public double measureNumRules() {    return m_root.numLeaves();  }    /**   * Returns an enumeration of the additional measure names   * @return an enumeration of the measure names   */  public Enumeration enumerateMeasures() {    Vector newVector = new Vector(3);    newVector.addElement("measureTreeSize");    newVector.addElement("measureNumLeaves");    newVector.addElement("measureNumRules");    return newVector.elements();  }  /**   * Returns the value of the named measure   * @param additionalMeasureName the name of the measure to query for its value   * @return the value of the named measure   * @throws IllegalArgumentException if the named measure is not supported   */  public double getMeasure(String additionalMeasureName) {    if (additionalMeasureName.compareToIgnoreCase("measureNumRules") == 0) {      return measureNumRules();    } else if (additionalMeasureName.compareToIgnoreCase("measureTreeSize") == 0) {      return measureTreeSize();    } else if (additionalMeasureName.compareToIgnoreCase("measureNumLeaves") == 0) {      return measureNumLeaves();    } else {      throw new IllegalArgumentException(additionalMeasureName 			  + " not supported (j48)");    }  }    /**   * Returns the tip text for this property   * @return tip text for this property suitable for   * displaying in the explorer/experimenter gui   */  public String unprunedTipText() {    return "Whether pruning is performed.";  }  /**   * Get the value of unpruned.   *   * @return Value of unpruned.   */  public boolean getUnpruned() {        return m_unpruned;  }    /**   * Set the value of unpruned. Turns reduced-error pruning   * off if set.   * @param v  Value to assign to unpruned.   */  public void setUnpruned(boolean v) {    if (v) {      m_reducedErrorPruning = false;    }    m_unpruned = v;  }  /**   * Returns the tip text for this property   * @return tip text for this property suitable for   * displaying in the explorer/experimenter gui   */  public String confidenceFactorTipText() {    return "The confidence factor used for pruning (smaller values incur "      + "more pruning).";  }    /**   * Get the value of CF.   *   * @return Value of CF.   */  public float getConfidenceFactor() {        return m_CF;  }    /**   * Set the value of CF.   *   * @param v  Value to assign to CF.   */  public void setConfidenceFactor(float v) {        m_CF = v;  }     /**   * Returns the tip text for this property   * @return tip text for this property suitable for   * displaying in the explorer/experimenter gui   */  public String minNumObjTipText() {    return "The minimum number of instances per leaf.";  }  /**   * Get the value of minNumObj.   *   * @return Value of minNumObj.   */  public int getMinNumObj() {        return m_minNumObj;  }    /**   * Set the value of minNumObj.   *   * @param v  Value to assign to minNumObj.   */  public void setMinNumObj(int v) {        m_minNumObj = v;  }  /**   * Returns the tip text for this property   * @return tip text for this property suitable for   * displaying in the explorer/experimenter gui   */  public String reducedErrorPruningTipText() {    return "Whether reduced-error pruning is used instead of C.4.5 pruning.";  }   /**   * Get the value of reducedErrorPruning.    *   * @return Value of reducedErrorPruning.   */  public boolean getReducedErrorPruning() {        return m_reducedErrorPruning;  }    /**   * Set the value of reducedErrorPruning. Turns   * unpruned trees off if set.   *   * @param v  Value to assign to reducedErrorPruning.   */  public void setReducedErrorPruning(boolean v) {        if (v) {      m_unpruned = false;    }    m_reducedErrorPruning = v;  }    /**   * Returns the tip text for this property   * @return tip text for this property suitable for   * displaying in the explorer/experimenter gui   */  public String numFoldsTipText() {    return "Determines the amount of data used for reduced-error pruning. "      + " One fold is used for pruning, the rest for growing the tree.";  }  /**   * Get the value of numFolds.   *   * @return Value of numFolds.   */  public int getNumFolds() {        return m_numFolds;  }    /**   * Set the value of numFolds.   *   * @param v  Value to assign to numFolds.   */  public void setNumFolds(int v) {        m_numFolds = v;  }   /**   * Returns the tip text for this property   * @return tip text for this property suitable for   * displaying in the explorer/experimenter gui   */  public String binarySplitsTipText() {    return "Whether to use binary splits on nominal attributes when "      + "building the trees.";  }    /**   * Get the value of binarySplits.   *   * @return Value of binarySplits.   */  public boolean getBinarySplits() {        return m_binarySplits;  }    /**   * Set the value of binarySplits.   *   * @param v  Value to assign to binarySplits.   */  public void setBinarySplits(boolean v) {        m_binarySplits = v;  }    /**   * Returns the tip text for this property   * @return tip text for this property suitable for   * displaying in the explorer/experimenter gui   */  public String subtreeRaisingTipText() {    return "Whether to consider the subtree raising operation when pruning.";  }   /**   * Get the value of subtreeRaising.   *   * @return Value of subtreeRaising.   */  public boolean getSubtreeRaising() {        return m_subtreeRaising;  }    /**   * Set the value of subtreeRaising.   *   * @param v  Value to assign to subtreeRaising.   */  public void setSubtreeRaising(boolean v) {        m_subtreeRaising = v;  }  /**   * Returns the tip text for this property   * @return tip text for this property suitable for   * displaying in the explorer/experimenter gui   */  public String saveInstanceDataTipText() {    return "Whether to save the training data for visualization.";  }  /**   * Check whether instance data is to be saved.   *   * @return true if instance data is saved   */  public boolean getSaveInstanceData() {        return m_noCleanup;  }    /**   * Set whether instance data is to be saved.   * @param v true if instance data is to be saved   */  public void setSaveInstanceData(boolean v) {        m_noCleanup = v;  }   /**   * Main method for testing this class   *   * @param argv the commandline options   */  public static void main(String [] argv){    runClassifier(new J48(), argv);  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品中文字幕乱码三区| 国产欧美精品国产国产专区 | 国产高清精品在线| 欧美色老头old∨ideo| 中文字幕在线一区| 国内外精品视频| 欧美剧情片在线观看| 椎名由奈av一区二区三区| 国产一区二区导航在线播放| 欧美精品一二三| 亚洲在线成人精品| 97精品久久久午夜一区二区三区| 久久精品综合网| 久久99精品国产麻豆婷婷洗澡| 欧美综合色免费| 亚洲三级在线免费| 91社区在线播放| 在线不卡的av| 亚洲一区二区三区四区在线免费观看| 国产成人精品一区二| 日韩欧美亚洲一区二区| 日韩1区2区3区| 欧美肥妇毛茸茸| 午夜精品成人在线| 欧美日韩久久久| 亚洲国产欧美在线| 亚洲日本在线天堂| www.亚洲人| 国产精品久久久久久久久免费桃花| 国内精品免费**视频| 欧美不卡在线视频| 久草中文综合在线| 精品乱人伦小说| 精品一二线国产| 久久综合久久久久88| 国产伦精品一区二区三区免费| 精品久久久久久久久久久院品网| 麻豆精品新av中文字幕| 日韩欧美不卡一区| 精品一区二区三区的国产在线播放| 日韩精品一区二区三区四区视频 | 日韩成人午夜精品| 91精品国产综合久久精品app| 亚洲成人动漫在线免费观看| 欧美日韩国产系列| 丝袜亚洲另类欧美综合| 日韩欧美一区二区久久婷婷| 国模冰冰炮一区二区| 国产网站一区二区三区| 成人动漫中文字幕| 亚洲丝袜精品丝袜在线| 欧美影视一区在线| 石原莉奈在线亚洲三区| 欧美电视剧在线看免费| 国产在线不卡一区| 国产精品色婷婷| 色综合天天综合| 亚洲成人动漫在线观看| 日韩欧美色电影| 国产高清无密码一区二区三区| 中文字幕亚洲在| 欧美无砖砖区免费| 免费观看91视频大全| 久久蜜桃香蕉精品一区二区三区| 成人av资源网站| 亚洲第一av色| 欧美精品一区二区三区高清aⅴ | 久久婷婷成人综合色| 精品国产123| 国产福利不卡视频| 中文字幕一区二区在线播放| 色欧美乱欧美15图片| 水野朝阳av一区二区三区| 欧美成人精品二区三区99精品| 国产成人亚洲精品青草天美| 亚洲精品日韩一| 91精品婷婷国产综合久久竹菊| 国产在线播放一区| 亚洲日本乱码在线观看| 555www色欧美视频| 国产99久久久国产精品免费看| 一区二区三区不卡在线观看| 日韩免费视频一区| 91影视在线播放| 美女视频黄频大全不卡视频在线播放 | 亚洲va中文字幕| www激情久久| 色天使色偷偷av一区二区| 美女视频黄频大全不卡视频在线播放| 国产精品久久久久久久蜜臀| 欧美日本韩国一区二区三区视频| 国产精品亚洲а∨天堂免在线| 亚洲综合在线五月| 久久精品一区二区| 欧美日韩www| 成人性生交大片| 蜜臀av一区二区在线观看| 中文字幕一区三区| 欧美va日韩va| 91国产视频在线观看| 国产精品小仙女| 肉丝袜脚交视频一区二区| 中文字幕日本乱码精品影院| 午夜精品久久久久久久| 欧美一区二区三区系列电影| 成人黄色网址在线观看| 日韩精品成人一区二区在线| 亚洲桃色在线一区| 精品国产123| 欧美精品18+| 一本大道av伊人久久综合| 国产丶欧美丶日本不卡视频| 午夜伦欧美伦电影理论片| 日韩理论片在线| 亚洲精品在线免费播放| 欧美日韩精品系列| 91蜜桃网址入口| 东方欧美亚洲色图在线| 久久精品久久精品| 午夜久久电影网| 亚洲精品精品亚洲| 亚洲欧洲三级电影| 久久九九久久九九| 日韩欧美国产综合| 欧美高清视频一二三区 | 91国偷自产一区二区三区成为亚洲经典 | 色综合久久综合网| 成人黄页毛片网站| 狠狠色丁香九九婷婷综合五月| 色婷婷综合久久久久中文 | 99国内精品久久| 国产精品一区在线| 久久精品国产在热久久| 五月婷婷综合激情| 丰满白嫩尤物一区二区| 极品少妇xxxx精品少妇偷拍| 日韩av电影天堂| 天天色综合天天| 亚洲国产精品视频| 亚洲综合另类小说| 一区二区三区在线视频播放| 国产精品精品国产色婷婷| 欧美高清在线视频| 国产日韩精品久久久| 精品黑人一区二区三区久久| 欧美精品一级二级| 欧美高清www午色夜在线视频| 欧美三级日韩三级国产三级| 欧美亚洲综合在线| 欧美午夜一区二区三区| 在线免费观看日本欧美| 在线免费观看日本一区| 欧美午夜理伦三级在线观看| 欧美体内she精视频| 欧美中文字幕一区二区三区亚洲| 在线日韩国产精品| 欧美在线看片a免费观看| 欧美系列一区二区| 欧美日本一区二区在线观看| 51午夜精品国产| 欧美xxxx在线观看| 久久久久久亚洲综合影院红桃 | 欧美日韩午夜影院| 欧美日韩一区高清| 欧美日本韩国一区| 日韩欧美国产高清| 久久综合色婷婷| 国产精品无码永久免费888| 中文字幕永久在线不卡| 亚洲人成影院在线观看| 亚洲一区在线观看免费观看电影高清| 一区二区欧美视频| 免费人成网站在线观看欧美高清| 开心九九激情九九欧美日韩精美视频电影| 开心九九激情九九欧美日韩精美视频电影 | 激情文学综合插| 国产91综合网| 色婷婷亚洲综合| 欧美电影在哪看比较好| 精品国产乱码久久久久久牛牛 | 欧美日韩国产高清一区二区 | 国产精品黄色在线观看| 亚洲欧美日韩久久精品| 午夜久久电影网| 国产麻豆成人精品| 91免费视频网址| 3d成人h动漫网站入口| 久久伊人中文字幕| 亚洲三级视频在线观看| 日韩有码一区二区三区| 国产二区国产一区在线观看| 色综合视频在线观看| 日韩午夜在线影院| 欧美激情一区二区三区四区| 一区二区三区视频在线看| 奇米一区二区三区| 国产成人午夜电影网| 欧美视频精品在线| 久久综合国产精品| 亚洲久草在线视频|