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

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

?? twowaynominalsplit.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. *//* *    TwoWayNominalSplit.java *    Copyright (C) 2001 University of Waikato, Hamilton, New Zealand * */package weka.classifiers.trees.adtree;import weka.core.Attribute;import weka.core.Instance;import weka.core.Instances;import java.util.Enumeration;/** * Class representing a two-way split on a nominal attribute, of the form: * either 'is some_value' or 'is not some_value'. * * @author Richard Kirkby (rkirkby@cs.waikato.ac.nz) * @version $Revision: 1.5 $ */public class TwoWayNominalSplit  extends Splitter {  /** for serialization */  private static final long serialVersionUID = -4598366190152721355L;  /** The index of the attribute the split depends on */  private int attIndex;  /** The attribute value that is compared against */  private int trueSplitValue;  /** The children of this split */  private PredictionNode[] children;  /**   * Creates a new two-way nominal splitter.   *   * @param _attIndex the index of the attribute this split depeneds on   * @param _trueSplitValue the attribute value that the splitter splits on   */  public TwoWayNominalSplit(int _attIndex, int _trueSplitValue) {    attIndex = _attIndex; trueSplitValue = _trueSplitValue;    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) == trueSplitValue) 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) == trueSplitValue)	  filteredInstances.addReference(inst);      }    } else {      for (Enumeration e = instances.enumerateInstances(); e.hasMoreElements(); ) {	Instance inst = (Instance) e.nextElement();	if (!inst.isMissing(attIndex) && inst.value(attIndex) != trueSplitValue)	  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) {    Attribute att = dataset.attribute(attIndex);    if (att.numValues() != 2)       return ((branchNum == 0 ? "= " : "!= ") + att.value(trueSplitValue));    else return ("= " + (branchNum == 0 ?			 att.value(trueSplitValue) :			 att.value(trueSplitValue == 0 ? 1 : 0)));  }  /**   * 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 TwoWayNominalSplit) { // test object type      TwoWayNominalSplit compareSame = (TwoWayNominalSplit) compare;      return (attIndex == compareSame.attIndex &&	      trueSplitValue == compareSame.trueSplitValue);    } 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() {    TwoWayNominalSplit clone = new TwoWayNominalSplit(attIndex, trueSplitValue);    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精品久久久久久久久99蜜臂| 在线视频欧美区| 欧美日韩激情一区二区三区| 色激情天天射综合网| 色偷偷88欧美精品久久久| 一本色道久久综合精品竹菊| 欧美做爰猛烈大尺度电影无法无天| 色综合久久久久综合99| 在线免费亚洲电影| 欧美日韩小视频| 91精品国产综合久久久久久久久久 | 日韩美一区二区三区| 精品国产成人在线影院| 久久伊99综合婷婷久久伊| 国产精品丝袜一区| 日韩美女视频一区二区| 亚洲激情av在线| 26uuu欧美| 亚洲精品在线三区| 国产蜜臀97一区二区三区| 国产精品美女久久久久久久久久久| 亚洲欧洲色图综合| 亚洲最大成人综合| 美腿丝袜亚洲色图| 成人晚上爱看视频| 欧美午夜视频网站| 久久嫩草精品久久久精品一| 国产精品污www在线观看| 亚洲综合在线电影| 久久电影网站中文字幕| 高清视频一区二区| 91精品国产综合久久久蜜臀粉嫩| 国产日韩综合av| 亚洲高清中文字幕| 国产精品18久久久久久久久久久久| 午夜欧美视频在线观看| 国产精品18久久久久久vr| 色偷偷一区二区三区| 日韩欧美在线网站| 日韩美女啊v在线免费观看| 麻豆一区二区在线| 91精品91久久久中77777| 精品国产91亚洲一区二区三区婷婷| 中文字幕一区二区三区四区 | 欧美网站大全在线观看| 久久久精品人体av艺术| 亚洲福利视频一区| 成人免费电影视频| 精品国产乱码久久久久久浪潮 | 欧美高清性hdvideosex| 国产欧美日韩视频在线观看| 免费观看久久久4p| 欧美日韩视频一区二区| 亚洲欧美一区二区三区孕妇| 久久99精品久久久久| 欧美日韩一卡二卡| 亚洲免费观看高清| 福利91精品一区二区三区| 91精品久久久久久久91蜜桃| 亚洲欧美日韩国产一区二区三区 | 亚洲欧美日韩国产另类专区| 国产v综合v亚洲欧| 精品国产免费人成在线观看| 日韩在线观看一区二区| 欧美日免费三级在线| 亚洲女子a中天字幕| 成人av在线播放网址| 久久精品男人的天堂| 国产精品伊人色| 精品久久久久久久久久久久久久久 | 精品系列免费在线观看| 制服丝袜亚洲播放| 丝袜诱惑制服诱惑色一区在线观看| 99在线精品观看| 国产精品久久久久久久久动漫 | 亚洲精品视频在线观看免费| 成人91在线观看| 国产精品三级在线观看| 成人黄色av电影| 亚洲视频免费在线观看| 色视频一区二区| 一区二区视频在线看| 色婷婷综合久久久| 午夜久久久久久电影| 欧美高清www午色夜在线视频| 日韩主播视频在线| 日韩欧美中文一区| 国产一区二区三区久久悠悠色av| 久久亚洲综合色一区二区三区| 国产制服丝袜一区| 国产精品免费人成网站| 色婷婷综合五月| 日韩av成人高清| 久久香蕉国产线看观看99| 成人一区二区在线观看| 亚洲视频图片小说| 91麻豆精品国产91| 高清beeg欧美| 艳妇臀荡乳欲伦亚洲一区| 欧美酷刑日本凌虐凌虐| 国产一区二区三区在线观看精品 | 亚洲大型综合色站| 精品av久久707| 91论坛在线播放| 日韩av成人高清| 国产精品久久久久影院老司| 欧美日韩国产精选| 国产麻豆成人精品| 午夜精品aaa| 国产欧美视频在线观看| 在线欧美小视频| 国产精品一二三在| 成人午夜激情影院| 国产在线播放一区| 国产精品久久久久婷婷二区次| 色婷婷一区二区| 国产一区在线观看麻豆| 一区二区三区电影在线播| 日韩精品一区二区三区四区视频| 99这里都是精品| 国产一区中文字幕| 日日夜夜一区二区| 亚洲精品五月天| 欧美激情在线一区二区三区| 欧美一区二区三区四区五区 | av毛片久久久久**hd| 免费一级片91| 亚洲自拍另类综合| 国产精品人妖ts系列视频 | 精品在线播放午夜| 亚洲高清免费一级二级三级| 国产精品国产自产拍高清av| 精品国免费一区二区三区| 91麻豆精品国产自产在线| 国产欧美精品日韩区二区麻豆天美| 91福利资源站| 国产成人啪免费观看软件| 日本va欧美va欧美va精品| 亚洲精品国产视频| 国产精品美日韩| 久久亚洲精华国产精华液| 日韩欧美中文字幕制服| 日韩一卡二卡三卡四卡| 欧美二区三区的天堂| 欧美视频完全免费看| 在线视频综合导航| 在线观看不卡一区| 欧美系列日韩一区| 欧美日韩一区二区三区在线看| 91色在线porny| 色美美综合视频| 色婷婷综合久久久久中文一区二区| 99这里只有精品| 在线一区二区观看| 欧美日韩一区二区电影| 欧美日韩激情在线| 日韩三级在线观看| 日韩精品在线一区| wwww国产精品欧美| 国产欧美日韩精品一区| 日本一区二区三区四区在线视频| 国产欧美一区二区精品婷婷| 亚洲欧洲三级电影| 一区二区三区精品视频| 一区av在线播放| 奇米亚洲午夜久久精品| 精品在线亚洲视频| 成人app网站| 欧美日韩成人综合天天影院| 91精品午夜视频| 国产日韩欧美在线一区| 久久亚洲综合av| 国产精品久久久久久久久动漫| 一色桃子久久精品亚洲| 亚洲电影一区二区三区| 免费成人在线观看视频| 国产成人在线网站| 91行情网站电视在线观看高清版| 欧美视频一区二区三区| 精品粉嫩超白一线天av| 中文字幕在线一区免费| 亚洲18女电影在线观看| 黄页网站大全一区二区| 99久久精品免费看国产| 日韩无一区二区| 国产精品久久综合| 日韩国产欧美一区二区三区| 粉嫩一区二区三区性色av| 欧美综合久久久| 久久中文娱乐网| 亚洲大片免费看| 成人黄色777网| 色网站国产精品| 久久久精品黄色| 免费在线观看视频一区| 一本色道久久综合亚洲aⅴ蜜桃 |