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

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

?? checkkernel.java

?? Weka
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
                              multiInstance);      if (missingLevel > 0)        addMissing(train, missingLevel, predictorMissing, classMissing);      kernel = Kernel.makeCopies(getKernel(), 1)[0];    } catch (Exception ex) {      throw new Error("Error setting up for tests: " + ex.getMessage());    }    try {      Instances trainCopy = new Instances(train);      kernel.buildKernel(trainCopy);      compareDatasets(train, trainCopy);            println("yes");      result[0] = true;    } catch (Exception ex) {      println("no");      result[0] = false;            if (m_Debug) {        println("\n=== Full Report ===");        print("Problem during building");        println(": " + ex.getMessage() + "\n");        println("Here is the dataset:\n");        println("=== Train Dataset ===\n"            + train.toString() + "\n");      }    }        return result;  }    /**   * Runs a text on the datasets with the given characteristics.   *    * @param nominalPredictor if true use nominal predictor attributes   * @param numericPredictor if true use numeric predictor attributes   * @param stringPredictor if true use string predictor attributes   * @param datePredictor if true use date predictor attributes   * @param relationalPredictor if true use relational predictor attributes   * @param multiInstance whether multi-instance is needed   * @param classType the class type (NUMERIC, NOMINAL, etc.)   * @param missingLevel the percentage of missing values   * @param predictorMissing true if the missing values may be in    * the predictors   * @param classMissing true if the missing values may be in the class   * @param numTrain the number of instances in the training set   * @param numClasses the number of classes   * @param accepts the acceptable string in an exception   * @return index 0 is true if the test was passed, index 1 is true if test    *         was acceptable   */  protected boolean[] runBasicTest(boolean nominalPredictor,      boolean numericPredictor,       boolean stringPredictor,      boolean datePredictor,      boolean relationalPredictor,      boolean multiInstance,      int classType,      int missingLevel,      boolean predictorMissing,      boolean classMissing,      int numTrain,      int numClasses,      FastVector accepts) {        return runBasicTest(		nominalPredictor, 		numericPredictor,		stringPredictor,		datePredictor,		relationalPredictor,		multiInstance,		classType, 		TestInstances.CLASS_IS_LAST,		missingLevel,		predictorMissing,		classMissing,		numTrain,		numClasses,		accepts);  }    /**   * Runs a text on the datasets with the given characteristics.   *    * @param nominalPredictor if true use nominal predictor attributes   * @param numericPredictor if true use numeric predictor attributes   * @param stringPredictor if true use string predictor attributes   * @param datePredictor if true use date predictor attributes   * @param relationalPredictor if true use relational predictor attributes   * @param multiInstance whether multi-instance is needed   * @param classType the class type (NUMERIC, NOMINAL, etc.)   * @param classIndex the attribute index of the class   * @param missingLevel the percentage of missing values   * @param predictorMissing true if the missing values may be in    * the predictors   * @param classMissing true if the missing values may be in the class   * @param numTrain the number of instances in the training set   * @param numClasses the number of classes   * @param accepts the acceptable string in an exception   * @return index 0 is true if the test was passed, index 1 is true if test    *         was acceptable   */  protected boolean[] runBasicTest(boolean nominalPredictor,      boolean numericPredictor,       boolean stringPredictor,      boolean datePredictor,      boolean relationalPredictor,      boolean multiInstance,      int classType,      int classIndex,      int missingLevel,      boolean predictorMissing,      boolean classMissing,      int numTrain,      int numClasses,      FastVector accepts) {        boolean[] result = new boolean[2];    Instances train = null;    Kernel kernel = null;    try {      train = makeTestDataset(42, numTrain,                               nominalPredictor     ? getNumNominal()    : 0,                              numericPredictor     ? getNumNumeric()    : 0,                               stringPredictor      ? getNumString()     : 0,                              datePredictor        ? getNumDate()       : 0,                              relationalPredictor  ? getNumRelational() : 0,                              numClasses,                               classType,                              classIndex,                              multiInstance);      if (missingLevel > 0)        addMissing(train, missingLevel, predictorMissing, classMissing);      kernel = Kernel.makeCopies(getKernel(), 1)[0];    } catch (Exception ex) {      ex.printStackTrace();      throw new Error("Error setting up for tests: " + ex.getMessage());    }    try {      kernel.buildKernel(train);      println("yes");      result[0] = true;    }     catch (Exception ex) {      boolean acceptable = false;      String msg;      if (ex.getMessage() == null)	msg = "";      else        msg = ex.getMessage().toLowerCase();      if (msg.indexOf("not in classpath") > -1)	m_ClasspathProblems = true;      for (int i = 0; i < accepts.size(); i++) {	if (msg.indexOf((String)accepts.elementAt(i)) >= 0) {	  acceptable = true;	}      }            println("no" + (acceptable ? " (OK error message)" : ""));      result[1] = acceptable;            if (m_Debug) {        println("\n=== Full Report ===");        print("Problem during building");        println(": " + ex.getMessage() + "\n");        if (!acceptable) {          if (accepts.size() > 0) {            print("Error message doesn't mention ");            for (int i = 0; i < accepts.size(); i++) {              if (i != 0) {                print(" or ");              }              print('"' + (String)accepts.elementAt(i) + '"');            }          }          println("here is the dataset:\n");          println("=== Train Dataset ===\n"              + train.toString() + "\n");        }      }    }        return result;  }    /**   * Make a simple set of instances, which can later be modified   * for use in specific tests.   *   * @param seed the random number seed   * @param numInstances the number of instances to generate   * @param numNominal the number of nominal attributes   * @param numNumeric the number of numeric attributes   * @param numString the number of string attributes   * @param numDate the number of date attributes   * @param numRelational the number of relational attributes   * @param numClasses the number of classes (if nominal class)   * @param classType the class type (NUMERIC, NOMINAL, etc.)   * @param multiInstance whether the dataset should a multi-instance dataset   * @return the test dataset   * @throws Exception if the dataset couldn't be generated   * @see #process(Instances)   */  protected Instances makeTestDataset(int seed, int numInstances,                                       int numNominal, int numNumeric,                                       int numString, int numDate,                                      int numRelational,                                      int numClasses, int classType,                                      boolean multiInstance)    throws Exception {        return makeTestDataset(		seed, 		numInstances,		numNominal,		numNumeric,		numString,		numDate, 		numRelational,		numClasses, 		classType,		TestInstances.CLASS_IS_LAST,		multiInstance);  }    /**   * Make a simple set of instances with variable position of the class    * attribute, which can later be modified for use in specific tests.   *   * @param seed the random number seed   * @param numInstances the number of instances to generate   * @param numNominal the number of nominal attributes   * @param numNumeric the number of numeric attributes   * @param numString the number of string attributes   * @param numDate the number of date attributes   * @param numRelational the number of relational attributes   * @param numClasses the number of classes (if nominal class)   * @param classType the class type (NUMERIC, NOMINAL, etc.)   * @param classIndex the index of the class (0-based, -1 as last)   * @param multiInstance whether the dataset should a multi-instance dataset   * @return the test dataset   * @throws Exception if the dataset couldn't be generated   * @see TestInstances#CLASS_IS_LAST   * @see #process(Instances)   */  protected Instances makeTestDataset(int seed, int numInstances,                                       int numNominal, int numNumeric,                                       int numString, int numDate,                                      int numRelational,                                      int numClasses, int classType,                                      int classIndex,                                      boolean multiInstance)  throws Exception {        TestInstances dataset = new TestInstances();        dataset.setSeed(seed);    dataset.setNumInstances(numInstances);    dataset.setNumNominal(numNominal);    dataset.setNumNumeric(numNumeric);    dataset.setNumString(numString);    dataset.setNumDate(numDate);    dataset.setNumRelational(numRelational);    dataset.setNumClasses(numClasses);    dataset.setClassType(classType);    dataset.setClassIndex(classIndex);    dataset.setNumClasses(numClasses);    dataset.setMultiInstance(multiInstance);    dataset.setWords(getWords());    dataset.setWordSeparators(getWordSeparators());        return process(dataset.generate());  }    /**   * Print out a short summary string for the dataset characteristics   *   * @param nominalPredictor true if nominal predictor attributes are present   * @param numericPredictor true if numeric predictor attributes are present   * @param stringPredictor true if string predictor attributes are present   * @param datePredictor true if date predictor attributes are present   * @param relationalPredictor true if relational predictor attributes are present   * @param multiInstance whether multi-instance is needed   * @param classType the class type (NUMERIC, NOMINAL, etc.)   */  protected void printAttributeSummary(boolean nominalPredictor,                                        boolean numericPredictor,                                        boolean stringPredictor,                                        boolean datePredictor,                                        boolean relationalPredictor,                                        boolean multiInstance,                                       int classType) {        String str = "";    if (numericPredictor)      str += " numeric";        if (nominalPredictor) {      if (str.length() > 0)        str += " &";      str += " nominal";    }        if (stringPredictor) {      if (str.length() > 0)        str += " &";      str += " string";    }        if (datePredictor) {      if (str.length() > 0)        str += " &";      str += " date";    }        if (relationalPredictor) {      if (str.length() > 0)        str += " &";      str += " relational";    }        str += " predictors)";        switch (classType) {      case Attribute.NUMERIC:        str = " (numeric class," + str;        break;      case Attribute.NOMINAL:        str = " (nominal class," + str;        break;      case Attribute.STRING:        str = " (string class," + str;        break;      case Attribute.DATE:        str = " (date class," + str;        break;      case Attribute.RELATIONAL:        str = " (relational class," + str;        break;    }        print(str);  }    /**   * Test method for this class   *    * @param args the commandline parameters   */  public static void main(String [] args) {    runCheck(new CheckKernel(), args);  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩高清一区二区三区| 日韩一区二区三区高清免费看看| 国产欧美精品一区二区色综合 | 精品国产露脸精彩对白| 天天综合日日夜夜精品| 欧美丰满少妇xxxbbb| 精品亚洲国产成人av制服丝袜| 日韩一区国产二区欧美三区| 国产一区在线精品| 欧美激情在线看| 色悠悠亚洲一区二区| 无吗不卡中文字幕| 精品国产乱码久久久久久牛牛| 国产乱对白刺激视频不卡| 一区在线播放视频| 欧美在线小视频| 极品尤物av久久免费看| 国产视频一区二区在线| 中文子幕无线码一区tr| 成人免费毛片片v| 精品国产91乱码一区二区三区| 久久国产精品色| 亚洲色图视频网站| 日韩视频在线观看一区二区| 国产91丝袜在线播放九色| 一个色妞综合视频在线观看| 精品国产成人系列| 99视频有精品| 色综合久久综合中文综合网| 久久精品综合网| 亚洲成人先锋电影| 欧美一区二区三区在线观看| 理论片日本一区| 国产网红主播福利一区二区| 成人国产精品免费网站| 亚洲视频一二三区| 欧美日韩免费在线视频| 美腿丝袜亚洲三区| 337p粉嫩大胆色噜噜噜噜亚洲| 国产精品资源在线观看| 国产精品视频第一区| 色婷婷激情综合| 日本大胆欧美人术艺术动态| 久久夜色精品国产噜噜av| 国产成人亚洲综合a∨婷婷 | 欧美日韩亚洲综合在线| 人禽交欧美网站| 久久久久久久久久久电影| 99久久精品国产网站| 亚洲成人综合视频| 精品国产免费久久| 91在线免费播放| 免费黄网站欧美| 国产精品久久久久7777按摩| 91蜜桃免费观看视频| 日韩有码一区二区三区| 国产人成一区二区三区影院| 一本久道久久综合中文字幕| 欧美aaaaa成人免费观看视频| 国产日韩欧美一区二区三区乱码| 91激情在线视频| 狠狠色伊人亚洲综合成人| |精品福利一区二区三区| 欧美卡1卡2卡| 成人性色生活片免费看爆迷你毛片| 亚洲一卡二卡三卡四卡五卡| 久久午夜电影网| 欧美影院一区二区三区| 精品无人码麻豆乱码1区2区 | 欧美午夜免费电影| 久久99久久99小草精品免视看| 国产精品欧美一级免费| 欧美日韩国产大片| 成人激情动漫在线观看| 日韩av在线播放中文字幕| 国产精品麻豆视频| 日韩欧美精品在线| 色偷偷成人一区二区三区91| 精品一区二区成人精品| 亚洲永久精品国产| 国产亚洲欧美日韩在线一区| 宅男在线国产精品| 91网上在线视频| 国产露脸91国语对白| 午夜精品久久久久久久久久| 国产精品久久久久国产精品日日| 日韩一区二区三区四区| 色美美综合视频| 国产成人免费视频精品含羞草妖精| 视频一区中文字幕| 成人欧美一区二区三区在线播放| 精品三级av在线| 欧美日本精品一区二区三区| 99re8在线精品视频免费播放| 九色综合国产一区二区三区| 亚洲.国产.中文慕字在线| 国产精品久久久久永久免费观看 | 欧美综合一区二区三区| 国产成人综合视频| 麻豆国产精品777777在线| 亚洲韩国精品一区| 国产精品素人一区二区| 精品久久久久久久久久久久包黑料| 欧美三级电影在线观看| 色婷婷av一区二区三区gif| 成人免费黄色在线| 国产精品自在欧美一区| 蜜桃视频在线观看一区二区| 亚洲h精品动漫在线观看| 亚洲欧美激情视频在线观看一区二区三区| 精品国产一区二区三区久久影院| 欧美精品一卡两卡| 在线观看91精品国产入口| 色综合咪咪久久| 91亚洲永久精品| 成人激情校园春色| 成人综合日日夜夜| 成人一区二区在线观看| 国产高清成人在线| 国产精品白丝jk白祙喷水网站| 精彩视频一区二区| 九九热在线视频观看这里只有精品| 日本美女一区二区三区| 日产国产欧美视频一区精品| 香蕉av福利精品导航| 亚洲制服丝袜在线| 亚洲成人自拍网| 亚洲一区二区三区美女| 亚洲最大成人网4388xx| 伊人开心综合网| 亚洲综合一二三区| 亚洲风情在线资源站| 亚洲午夜久久久| 亚洲国产精品一区二区尤物区| 亚洲一区二区三区影院| 夜色激情一区二区| 亚洲一区二区三区四区的| 亚洲制服丝袜av| 婷婷开心激情综合| 一本一道久久a久久精品| 99久久精品免费看| 91香蕉视频污| 在线观看日韩毛片| 9191久久久久久久久久久| 欧美一区二区三区日韩| 日韩精品一区二区三区在线 | 蜜桃视频在线观看一区二区| 久久精品国产精品亚洲红杏| 韩国精品免费视频| 国产成人福利片| 97se亚洲国产综合自在线观| 日本韩国欧美一区二区三区| 欧美日韩一区二区电影| 日韩天堂在线观看| 国产午夜精品久久久久久免费视| 最新日韩在线视频| 亚洲午夜精品一区二区三区他趣| 日韩avvvv在线播放| 国产精品一二三四区| 99re热这里只有精品视频| 欧美色老头old∨ideo| 欧美mv日韩mv国产网站| 国产精品伦一区二区三级视频| 伊人夜夜躁av伊人久久| 六月婷婷色综合| 成人激情午夜影院| 欧美三级视频在线| 欧美va日韩va| 中文字幕一区日韩精品欧美| 国产精品乱码一区二区三区软件| 亚洲色图20p| 亚洲成人精品一区| 极品少妇一区二区三区精品视频| 成人免费视频网站在线观看| 色综合天天综合| 日韩欧美在线123| 国产午夜亚洲精品理论片色戒| 一区二区国产视频| 奇米精品一区二区三区在线观看| 国产精品影视在线| 欧美视频你懂的| 日韩小视频在线观看专区| 国产精品久久久久久久久晋中 | 丝袜美腿亚洲综合| 婷婷国产v国产偷v亚洲高清| 激情六月婷婷久久| 91成人免费电影| 91精品国产福利| 亚洲天堂a在线| 免费观看在线色综合| www.99精品| 日韩一区二区免费高清| 国产精品美女久久福利网站| 日韩电影网1区2区| 国内偷窥港台综合视频在线播放| 91麻豆精东视频| 精品久久久久久久人人人人传媒| 欧美高清在线一区| 午夜视频一区在线观看| 国产真实乱偷精品视频免|