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

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

?? version.c

?? 人智算法基本程序
?? C
字號:
/* Version.C * * This class serves as a wrapper for the entire version space algorithm. * It reads in dimensions and training examples from a file, and * refines the boundaries by processing each training example in turn. *//* * Copyright 1994, Brown University, Providence, RI * See end of file for full copyright information */#include <stdlib.h>#include <iostream.h>#include <fstream.h>#include "Version.H"#include "Example.H"#include "Dimension.H"int Version::num_dimensions;         // The number of dimensions for this runDimension Version::dimensions[MAX_DIMENSIONS];      // Array of dimensions// The main() function is the first function called in this program.// It gets the input filename from the command line, starts up a// Version object, and runs the versions algorithm.int main(int argc, char *argv[]){   if(argc != 2) {      cerr << "Usage:  version myfile.example" << endl;      exit(1);   }   Version version(argv[1]);    // Load dimensions and examples from files   version.versions();          // Refine the boundaries on all examples   return 0;}// Construct a Version object given the input filenameVersion::Version(char *filename){   ifstream in(filename);   if(in.fail()) {      cerr << "Could not open file " << filename << endl;      exit(1);   }   char word[MAX_STRING];   // Scratch space for reading in words   in >> word;              // Should be "dimensions"   if(strcmp(word, "dimensions") != 0) {     cerr << "Expecting \"dimensions\" at start of file" << endl;     exit(1);   }   in >> num_dimensions;   // Read in the number of dimensions   for(int x = 0; x < num_dimensions; x++)      in >> dimensions[x];   in >> word;              // Should be "examples"   if(strcmp(word, "examples") != 0) {     cerr << "Expecting \"examples\", got " << word << endl;     exit(1);   }   examples = NULL;   tail = NULL;   Example *temp;   // Construct a linked list of all examples.   while(!in.eof()) {     in >> word;     if(!word[0] || in.eof() || in.fail())  // Empty word means end of file       break;     temp = new Example(word, in);     if(tail)    // Add example onto the end of the list       tail->next = temp;     else       examples = temp;     tail = temp;   }   // The General boundary is a single concept with no features.   general_boundary.add_concept(new Concept);   // The specific boundary consists of one concept for each example.   // Each concept has the same features as the example.   for(Example *example = examples; example; example = example->next)     specific_boundary.add_concept(new Concept(example));}// Destroy the version object, which means destroying all the// dynamically allocated Examples.Version::~Version(){   Example *temp;    // Placekeeper so we deletion doesn't erase "next" ptr   Example *example = examples;   while(example) {  // Go through the linked list and delete all the examples      temp = example;      example = example->next;      delete temp;   }}// Given a dimension index and a value name, get the associated value indexint Version::lookup_value(int dim, char temp[]){   return dimensions[dim].lookup(temp); // Ask the appropriate dimension for it}// Print both the general and the specific boundaries.void Version::print_boundaries(){  cout << "General:  " << general_boundary;  cout << "Specific: " << specific_boundary;  cout << endl;}// Perform the version space algorithm, which means refining the// boundaries for each example.void Version::versions(){  print_boundaries();  for(Example *example = examples; example; example = example->next) {    refine(example);    cout << "Example: " << *example << endl;    print_boundaries();  }}// Refine boundaries for each exmaple. See section 5.3 for this// somewhat hairy algorithm.void Version::refine(Example *example){   if(example->is_positive())         // If the example is classified YES      generalize_specific(example);   //    then generalize specific boundary   else                               // otherwise      specialize_general(example);    //    specialize the general boundary}// Generalize the specific boundary, given this examplevoid Version::generalize_specific(Example *example){   // From section 5.3, if the example is positive, then perform the following   // steps:   //   // (a) Eliminate all concepts in the general boundary that aren't consistent   //     with the example.   general_boundary.eliminate(INCONSISTENT, example);   // (b) Minimally generalize all concepts in the specific boundary until   //     they are consistent with the example   specific_boundary.generalize(example);   // eliminate those that   //     fail to satisfy the following requirements:   //     i. Each concept is a specialization of some concept in the general   //        boundary.   specific_boundary.enforce_specialization_of(general_boundary, 1);   //    ii. Each concept is not a generalization of some other concept in   //        the specific boundary.   specific_boundary.enforce_generalization_of(specific_boundary, 0);}// Specialize the general boundary, given the examplevoid Version::specialize_general(Example *example){   // From section 5.3, if the example is negative, then perform the following   // steps:   //    // (a) Eliminate all concepts in the specific boundary that are consistent   //     with the example.   specific_boundary.eliminate(CONSISTENT, example);   // (b) Minimally specialize all concepts in the general boundary until they   //     are not consistent with the example,   general_boundary.specialize(example);   // eliminate those that fail to   //     satisfy the following requirements:   //     i. Each concept is a generalization of some concept in the specific   //        boundary.   general_boundary.enforce_generalization_of(specific_boundary, 1);   //    ii. Each concept is not a specialization of some other concept in the   //        general boundary.   general_boundary.enforce_specialization_of(general_boundary, 0);}/* * Copyright 1994, Brown University, Providence, RI * * Permission to use and modify this software and its documentation for * any purpose other than its incorporation into a commercial product is * hereby granted without fee.  Permission to copy and distribute this * software and its documentation only for non-commercial use is also * granted without fee, provided, however, that the above copyright notice * appear in all copies, that both that copyright notice and this permission * notice appear in supporting documentation, that the name of Brown * University not be used in advertising or publicity pertaining to * distribution of the software without specific, written prior permission, * and that the person doing the distribution notify Brown University of * such distributions outside of his or her organization. Brown University * makes no representations about the suitability of this software for * any purpose.  It is provided "as is" without express or implied warranty. * Brown University requests notification of any modifications to this * software or its documentation. * * Send the following redistribution information: * *	Name: *	Organization: *	Address (postal and/or electronic): * * To: *	Software Librarian *	Computer Science Department, Box 1910 *	Brown University *	Providence, RI 02912 * *		or * *	brusd@cs.brown.edu * * We will acknowledge all electronic notifications. */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲夂夂婷婷色拍ww47| 精品国产一二三区| 91亚洲国产成人精品一区二三| 久久国产免费看| 久久精品久久久精品美女| 裸体在线国模精品偷拍| 日韩精品一级二级 | 欧美视频一区在线观看| 97超碰欧美中文字幕| 色哟哟在线观看一区二区三区| 成人白浆超碰人人人人| 91国产福利在线| 欧美精品vⅰdeose4hd| 7777精品伊人久久久大香线蕉完整版 | 91超碰这里只有精品国产| 欧美精品在欧美一区二区少妇| 日韩三区在线观看| 久久久久久久久99精品| 国产精品久久久久三级| 亚洲日本乱码在线观看| 一区二区三区不卡在线观看| 日韩中文字幕一区二区三区| 九九国产精品视频| a级高清视频欧美日韩| 色婷婷激情综合| 日韩欧美一卡二卡| 亚洲色图在线视频| 久久国产精品第一页| 成人综合婷婷国产精品久久免费| 成人午夜视频在线| 欧美人牲a欧美精品| 久久久久久电影| 午夜精品久久久久久久久久| 国产一区二区三区精品欧美日韩一区二区三区 | 在线精品国精品国产尤物884a| 欧美日韩卡一卡二| 国产欧美一区二区三区沐欲| 亚洲高清视频在线| 国产成人精品一区二区三区四区| 在线观看91精品国产入口| 精品少妇一区二区| 亚洲午夜一二三区视频| 成人av午夜影院| 欧美成人一区二区三区在线观看| 日韩伦理免费电影| 久草中文综合在线| 欧美日本一区二区在线观看| 国产精品污污网站在线观看 | 91精品国产入口在线| 亚洲天堂中文字幕| 国产精品一二三| 精品入口麻豆88视频| 亚洲成人自拍一区| av一区二区三区在线| 精品国产露脸精彩对白| 五月婷婷激情综合| 91视频精品在这里| 17c精品麻豆一区二区免费| 九九**精品视频免费播放| 欧美喷水一区二区| 亚洲成a人在线观看| 日本韩国欧美一区二区三区| 最新日韩在线视频| 国产成人av电影| 国产午夜精品在线观看| 国模一区二区三区白浆| 日韩欧美的一区| 蜜臀精品一区二区三区在线观看| 在线观看亚洲精品| 一区在线中文字幕| www.欧美日韩国产在线| 国产精品午夜春色av| 成人深夜在线观看| 国产精品国产三级国产普通话蜜臀 | 欧美一级二级三级蜜桃| 天天色图综合网| 欧美日韩aaaaaa| 午夜成人免费视频| 91精品婷婷国产综合久久竹菊| 午夜视黄欧洲亚洲| 91精品国产全国免费观看| 日本成人在线电影网| 欧美一区二区免费视频| 精品在线一区二区| 国产日韩欧美制服另类| 成人免费电影视频| 亚洲美女视频一区| 欧美美女一区二区| 精品无人区卡一卡二卡三乱码免费卡| 91精品久久久久久久久99蜜臂| 视频一区欧美日韩| 久久久综合九色合综国产精品| 国产精品一区二区久激情瑜伽 | 亚洲品质自拍视频| 精品视频1区2区| 激情综合色播五月| 国产精品久久久久久久久免费樱桃| 91网站视频在线观看| 天天综合天天做天天综合| 2020国产精品自拍| 91免费看视频| 日产国产高清一区二区三区| 精品国产髙清在线看国产毛片| 激情综合五月婷婷| 夜夜亚洲天天久久| 久久这里只有精品视频网| 不卡的av电影| 免费在线观看成人| 亚洲人妖av一区二区| 欧美日韩成人综合在线一区二区| 国产盗摄一区二区| 日韩电影在线观看电影| 国产精品女同一区二区三区| 欧美日本不卡视频| 91香蕉视频黄| 精品一区二区三区免费视频| 亚洲欧洲美洲综合色网| 日韩一区二区在线播放| 9色porny自拍视频一区二区| 视频一区视频二区中文| 最新国产精品久久精品| ww久久中文字幕| 8x8x8国产精品| 91在线免费播放| 国产精品主播直播| 男女男精品视频网| 亚洲一区二三区| 国产精品久久二区二区| 欧美精品一区二区三区一线天视频| jlzzjlzz欧美大全| 韩国精品一区二区| 免费成人深夜小野草| 一区二区视频免费在线观看| 久久久久久久综合| 欧美大片日本大片免费观看| 色综合久久久久久久久久久| 成人免费视频一区| 国产盗摄一区二区| 国产精品亚洲一区二区三区妖精| 七七婷婷婷婷精品国产| 午夜不卡在线视频| 亚洲成人免费电影| 亚洲成人激情自拍| 天天综合天天做天天综合| 亚洲一区二区欧美| 一区二区三区四区乱视频| 国产精品毛片无遮挡高清| 国产精品三级久久久久三级| 久久久噜噜噜久久人人看 | 欧美日韩一区三区四区| 成人av网站在线| 成人18视频日本| 97se亚洲国产综合在线| av男人天堂一区| gogogo免费视频观看亚洲一| 国产成人三级在线观看| 国产成人日日夜夜| 福利电影一区二区| 成人性生交大片免费看中文| 成人黄页毛片网站| 91麻豆成人久久精品二区三区| 99国产欧美另类久久久精品 | 7799精品视频| 欧美一区二区性放荡片| 精品噜噜噜噜久久久久久久久试看| 欧美xxx久久| 欧美国产激情一区二区三区蜜月| 国产精品视频一二三区| 亚洲柠檬福利资源导航| 亚洲第一综合色| 久久精品国产77777蜜臀| 久久er精品视频| 99久久99久久久精品齐齐| 91在线视频在线| 91精品久久久久久蜜臀| 久久精品一区二区三区不卡| 亚洲三级在线看| 日韩高清一区在线| 精品在线一区二区| 99在线精品视频| 欧美精品 国产精品| 国产校园另类小说区| 一区二区三区免费网站| 麻豆精品新av中文字幕| 成人美女视频在线观看| 欧美日韩情趣电影| 中文字幕av一区二区三区免费看| 亚洲蜜臀av乱码久久精品| 六月丁香婷婷色狠狠久久| 成人黄色av电影| 宅男在线国产精品| 亚洲色图一区二区| 精品一区二区三区不卡| 欧美性三三影院| 中文字幕不卡在线播放| 麻豆精品精品国产自在97香蕉 | 蜜桃av一区二区三区| 成人激情综合网站| 欧美一级二级三级乱码| 一区二区在线观看av|