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

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

?? twowaynumericsplit.java

?? Weka
?? JAVA
字號:
/* *    This program is free software; you can redistribute it and/or modify *    it under the terms of the GNU General Public License as published by *    the Free Software Foundation; either version 2 of the License, or *    (at your option) any later version. * *    This program is distributed in the hope that it will be useful, *    but WITHOUT ANY WARRANTY; without even the implied warranty of *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *    GNU General Public License for more details. * *    You should have received a copy of the GNU General Public License *    along with this program; if not, write to the Free Software *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *//* *    TwoWayNumericSplit.java *    Copyright (C) 2001 University of Waikato, Hamilton, New Zealand * */package weka.classifiers.trees.adtree;import weka.core.Instance;import weka.core.Instances;import weka.core.Utils;import java.util.Enumeration;/** * Class representing a two-way split on a numeric attribute, of the form: * either 'is < some_value' or 'is >= some_value'. * * @author Richard Kirkby (rkirkby@cs.waikato.ac.nz) * @version $Revision: 1.5 $ */public class TwoWayNumericSplit  extends Splitter {  /** for serialization */  private static final long serialVersionUID = 449769177903158283L;  /** The index of the attribute the split depends on */  private int attIndex;  /** The attribute value that is compared against */  private double splitPoint;  /** The children of this split */  private PredictionNode[] children;  /**   * Creates a new two-way numeric splitter.   *   * @param _attIndex the index of the attribute this split depeneds on   * @param _splitPoint the attribute value that the splitter splits on   */  public TwoWayNumericSplit(int _attIndex, double _splitPoint) {    attIndex = _attIndex;    splitPoint = _splitPoint;    children = new PredictionNode[2];  }    /**   * Gets the number of branches of the split.   *   * @return the number of branches (always = 2)   */  public int getNumOfBranches() {         return 2;  }  /**   * Gets the index of the branch that an instance applies to. Returns -1 if no branches   * apply.   *   * @param inst the instance   * @return the branch index   */  public int branchInstanceGoesDown(Instance inst) {        if (inst.isMissing(attIndex)) return -1;    else if (inst.value(attIndex) < splitPoint) return 0;    else return 1;  }  /**   * Gets the subset of instances that apply to a particluar branch of the split. If the   * branch index is -1, the subset will consist of those instances that don't apply to   * any branch.   *   * @param branch the index of the branch   * @param instances the instances from which to find the subset    * @return the set of instances that apply   */  public ReferenceInstances instancesDownBranch(int branch, Instances instances) {        ReferenceInstances filteredInstances = new ReferenceInstances(instances, 1);    if (branch == -1) {      for (Enumeration e = instances.enumerateInstances(); e.hasMoreElements(); ) {	Instance inst = (Instance) e.nextElement();	if (inst.isMissing(attIndex)) filteredInstances.addReference(inst);      }    } else if (branch == 0) {      for (Enumeration e = instances.enumerateInstances(); e.hasMoreElements(); ) {	Instance inst = (Instance) e.nextElement();	if (!inst.isMissing(attIndex) && inst.value(attIndex) < splitPoint)	  filteredInstances.addReference(inst);      }    } else {      for (Enumeration e = instances.enumerateInstances(); e.hasMoreElements(); ) {	Instance inst = (Instance) e.nextElement();	if (!inst.isMissing(attIndex) && inst.value(attIndex) >= splitPoint)	  filteredInstances.addReference(inst);      }    }    return filteredInstances;  }    /**   * Gets the string describing the attributes the split depends on.   * i.e. the left hand side of the description of the split.   *   * @param dataset the dataset that the split is based on   * @return a string describing the attributes   */    public String attributeString(Instances dataset) {      return dataset.attribute(attIndex).name();  }  /**   * Gets the string describing the comparision the split depends on for a particular   * branch. i.e. the right hand side of the description of the split.   *   * @param branchNum the branch of the split   * @param dataset the dataset that the split is based on   * @return a string describing the comparison   */  public String comparisonString(int branchNum, Instances dataset) {        return ((branchNum == 0 ? "< " : ">= ") + Utils.doubleToString(splitPoint, 3));  }  /**   * Tests whether two splitters are equivalent.   *   * @param compare the splitter to compare with   * @return whether or not they match   */  public boolean equalTo(Splitter compare) {        if (compare instanceof TwoWayNumericSplit) { // test object type      TwoWayNumericSplit compareSame = (TwoWayNumericSplit) compare;      return (attIndex == compareSame.attIndex &&	      splitPoint == compareSame.splitPoint);    } else return false;  }  /**   * Sets the child for a branch of the split.   *   * @param branchNum the branch to set the child for   * @param childPredictor the new child   */  public void setChildForBranch(int branchNum, PredictionNode childPredictor) {        children[branchNum] = childPredictor;  }  /**   * Gets the child for a branch of the split.   *   * @param branchNum the branch to get the child for   * @return the child   */  public PredictionNode getChildForBranch(int branchNum) {        return children[branchNum];  }  /**   * Clones this node. Performs a deep copy, recursing through the tree.   *   * @return a clone   */  public Object clone() {        TwoWayNumericSplit clone = new TwoWayNumericSplit(attIndex, splitPoint);    clone.orderAdded = orderAdded;    if (children[0] != null)      clone.setChildForBranch(0, (PredictionNode) children[0].clone());    if (children[1] != null)      clone.setChildForBranch(1, (PredictionNode) children[1].clone());    return clone;  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合一区二区三区| 麻豆一区二区三| 91精品在线免费| 国产自产v一区二区三区c| 国产精品久久午夜| 9人人澡人人爽人人精品| 尤物av一区二区| 欧美videos大乳护士334| av在线不卡观看免费观看| 日日摸夜夜添夜夜添精品视频 | 欧美性猛交xxxxxx富婆| 亚洲成人黄色小说| 国产免费成人在线视频| 欧美日韩你懂的| 丁香另类激情小说| 日本91福利区| 一区二区三区中文在线| 久久久亚洲午夜电影| 91在线码无精品| 美女脱光内衣内裤视频久久影院| 精品国产乱码久久久久久浪潮| 欧美亚洲尤物久久| 精品亚洲aⅴ乱码一区二区三区| 亚洲精品免费电影| 久久精品视频一区二区三区| 国产高清不卡一区二区| 日韩精品一级二级| 一卡二卡三卡日韩欧美| 欧美激情中文不卡| 欧美一区二区久久久| 在线观看视频一区二区| heyzo一本久久综合| 国产一区高清在线| 亚洲精品你懂的| 国产精品理论在线观看| 精品国产网站在线观看| 成人黄色电影在线| 国产精品123| 午夜精品一区二区三区三上悠亚| 中文字幕一区二区在线观看| 日韩一区二区三区精品视频| 色婷婷亚洲婷婷| 成a人片国产精品| 久久99精品久久久久| 蜜臀a∨国产成人精品| 香港成人在线视频| 一级日本不卡的影视| **网站欧美大片在线观看| 欧洲一区二区三区在线| eeuss鲁片一区二区三区在线观看| 九一九一国产精品| 蜜桃av一区二区在线观看| 偷窥少妇高潮呻吟av久久免费| 一区二区欧美精品| 亚洲一区二区视频在线观看| 精品一区二区在线视频| 国产日韩欧美高清在线| 欧美激情一区二区在线| 中文字幕第一页久久| 精品国产一区二区在线观看| 久久久久久久久久久久久女国产乱 | 中文字幕制服丝袜一区二区三区 | 综合在线观看色| 中文字幕中文在线不卡住| 久久蜜桃av一区精品变态类天堂| 久久久久久久久岛国免费| 欧美精品一区二| 亚洲精品一区二区三区香蕉| 欧美成人三级电影在线| 国产午夜精品久久久久久免费视| 久久九九99视频| **性色生活片久久毛片| 一区二区三区不卡在线观看| 亚洲精品美国一| 亚洲成人午夜电影| 美女mm1313爽爽久久久蜜臀| 国产风韵犹存在线视精品| 成人av午夜电影| 欧美老肥妇做.爰bbww视频| 91精品一区二区三区在线观看| 欧美精品成人一区二区三区四区| 日韩一区二区三区四区| 国产丝袜在线精品| 亚洲aaa精品| 韩国三级中文字幕hd久久精品| 成人av在线看| 欧美日韩一卡二卡三卡| 国产日韩精品视频一区| 亚洲女人的天堂| 亚洲成在线观看| 激情深爱一区二区| 99亚偷拍自图区亚洲| 欧美成人一区二区三区在线观看| 26uuu另类欧美亚洲曰本| 亚洲精品乱码久久久久久久久| 亚洲成人免费av| 国产盗摄一区二区| 欧美视频一二三区| 欧美日韩激情一区二区三区| 国产精品久久久久影院老司| 亚洲超丰满肉感bbw| 从欧美一区二区三区| 欧美日韩午夜精品| 久久先锋影音av鲁色资源网| 亚洲欧美另类在线| 激情深爱一区二区| 成人精品一区二区三区四区| 日韩午夜中文字幕| 亚洲靠逼com| 国产一区美女在线| 色婷婷亚洲一区二区三区| 精品国产凹凸成av人网站| 亚洲午夜一区二区| 福利一区二区在线| 欧美一二三四在线| 一区二区三区资源| 国产成人精品一区二区三区四区 | 国产蜜臀97一区二区三区 | 亚洲另类春色国产| av激情综合网| 精品第一国产综合精品aⅴ| 亚洲1区2区3区视频| 成人精品一区二区三区中文字幕| 色琪琪一区二区三区亚洲区| 亚洲色图视频网| 国产老妇另类xxxxx| 精品国产亚洲在线| 天堂影院一区二区| 欧美日韩国产乱码电影| 18成人在线视频| 一本一道久久a久久精品| 久久品道一品道久久精品| 另类欧美日韩国产在线| 欧美日韩国产123区| 亚洲欧洲成人自拍| 91一区二区在线| 国产精品日日摸夜夜摸av| 风间由美性色一区二区三区| 精品国产乱码久久久久久蜜臀| 久久99久久99小草精品免视看| 欧美日韩国产综合久久| 日本不卡一区二区| 欧美日韩www| 美国十次了思思久久精品导航| 欧美日韩高清一区二区不卡| 日韩在线一二三区| 欧美男女性生活在线直播观看| 亚洲视频一区二区在线| 成人h动漫精品一区二区| 久久久久久久久久久久久夜| 东方aⅴ免费观看久久av| 久久综合狠狠综合久久激情| 国产乱对白刺激视频不卡| 久久久高清一区二区三区| 成人午夜免费视频| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 欧美电影一区二区| 日韩精品一二三区| 日韩欧美中文一区| 国产高清久久久久| 国产精品久久一级| 欧美亚洲国产一区二区三区va| 夜夜嗨av一区二区三区| 日韩欧美中文字幕精品| 久久精品国产亚洲aⅴ | 91麻豆精品国产91久久久使用方法| 亚洲最大色网站| 欧美α欧美αv大片| 经典三级在线一区| 亚洲视频在线观看三级| 欧美午夜不卡在线观看免费| 美女视频黄免费的久久 | 欧美在线观看视频一区二区 | 欧美亚洲日本国产| 视频一区视频二区中文字幕| 久久先锋影音av鲁色资源网| 丰满白嫩尤物一区二区| 亚洲女同女同女同女同女同69| 欧美日韩精品福利| 精品一区二区在线看| 国产嫩草影院久久久久| 欧美日韩国产a| 国产精品一级二级三级| 亚洲午夜视频在线观看| 欧美sm极限捆绑bd| 在线观看国产一区二区| 精品一区二区三区av| 亚洲欧美在线视频观看| 91精品国产综合久久国产大片| 成人18视频日本| 五月婷婷综合在线| 国产精品久久三| 欧美美女喷水视频| 菠萝蜜视频在线观看一区| 亚洲午夜国产一区99re久久| 中文一区二区完整视频在线观看| 在线国产电影不卡| a美女胸又www黄视频久久| 首页综合国产亚洲丝袜| 国产精品久久久久四虎|