Candidate-Elimination-master

所属分类:Windows编程
开发工具:Visual C++
文件大小:5KB
下载次数:1
上传日期:2017-11-08 16:39:59
上 传 者hamidhaji
说明:  Implementaion Candidate Elimination in C++

文件列表:
candidate_elem_data.txt (26217, 2016-03-30)
candidate_elimination.cpp (6720, 2016-03-30)
candidate_testingprog.cpp (2318, 2016-03-30)

# Candidate-Elimination This repo contains the implementation of the Candidate Elimination algorithm in C++. Given the Hypothesis space H and a set of examples E, the algorithm builds the version space. The examples are fed into the algorithm sequentially and each example reduces the Version space by removing the hypotheses that are inconsistent with that example. This is achieved by updating the general and specific boundary for each new example. The algorithm as given in Machine Learning book by Tom Mitchell is given below Initialize G to the set of maximally general hypotheses in H Initialize S to the set of maximally specific hypotheses in H For each training example d, do If d is a positive example Remove from G any hypothesis inconsistent with d For each hypothesis s in S that is not consistent with d Remove s from S Add to S all minimal generalizations h of s such that h is consistent with d, and some member of G is more general than h Remove from S any hypothesis that is more general than another hypothesis in S If d is a negative example Remove from S any hypothesis inconsistent with d For each hypothesis g in G that is not consistent with d Remove g from G Add to G all minimal specializations h of g such that h is consistent with d, and some member of S is more specific than h Remove from G any hypothesis that is less general than another hypothesis in G

近期下载者

相关文件


收藏者