使用R语言的BNLearn包实现贝叶斯网络使用R语言的BNLearn包实现贝叶斯网络.pdfVIP

使用R语言的BNLearn包实现贝叶斯网络使用R语言的BNLearn包实现贝叶斯网络.pdf

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
使用R语言的BNLearn包实现贝叶斯网络使用R语言的BNLearn包实现贝叶斯网络

使用 R 语言的 BNLearn 包实现贝叶斯网络 (1 ) 标签:生活 2013-08-01 22:26 星期四 1. 加载程序包导入数据 libr ry (bnle rn) #CRAN 中有,可以直接用 inst ll.p ck ges( “bnle rn”)安装或者去网 上下载后复制到 libr ry 文件夹下即可。 libr ry (Rgr phviz) #用于绘图。这个包 CRAN 中没有,需要到 /p ck ges/rele se/BiocViews.html#___Softw re 去下载。 d t (le rning.test) #导入数据,数据框中的变量必须全部为因子型 (离散)或数值型 (连续)。 le r.test =re d.csv (***.csv, colCl sses =f ctor) #也可以直接从 csv 文件直接 导入数据。需要注意的是如果数据中含有 0-1 之类的布尔型,或者 1-3 之类的等级数据,需 要强行指定其为因子型,不然许多 BN 函数会报错。因为 re d 函数只会自动的将字符型转换 成因子型,其他的不会 自动转换。 该包包含贝叶斯网络的结构学习、参数学习和推理三个方面的功能,其中结构学习包含基于约 束的算法、基于得分的算法和混合算法,参数学习包括最大似然估计和贝叶斯估计两种方法。 此外还有引导 (bootstr p),交叉验证 (cross-v lid tion)和随机模拟 (stoch stic simul tion)等功能,附加的绘图功能需要调用前述的Rgr phviz nd l ttice 包。 B yesi n network structure le rning (vi constr int-b sed, score-b sed nd hybrid lgorithms), p r meter le rning (vi ML nd B yesi n estim tors) nd inference. This p ck ge implements some lgorithms for le rning the structure of B yesi n networks. Constr int-b sed lgorithms, lso known s condition l independence le rners, re ll optimized deriv tives of the Inductive C us tion lgorithm (Verm nd Pe rl, 1991). These lgorithms use condition l independence tests to detect the M rkov bl nkets of the v ri bles, which in turn re used to compute the structure of the B yesi n network. Score-b sed le rning lgorithms re gener l purpose heuristic optimiz tion lgorithms which r nk network structures with respect to goodness-of-fit score. Hybrid lgorithms combine spects of both constr int-b sed nd score-b sed lgorithms, s they use condition l independence tests (usu lly to reduce the se rch sp ce) nd network scores (to find the optim l network in the reduced sp ce) t the s me time. Sever l functions for p r meter estim tion, p r metric inference, bootstr p, cross-v lid tion nd stoch stic simul tion re

您可能关注的文档

文档评论(0)

pfenejiarz + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档