Bayesian Logic (BLOG) inference engine version 0.3
Copyright (c) 2007, 2008, Massachusetts Institute of Technology
Copyright (c) 2005, 2006, Regents of the University of California
All rights reserved. This software is distributed under the license
included in LICENSE.txt.
Lead author: Brian Milch, bmilch@gmail.com
Supervisors: Prof. Stuart Russell (Berkeley), Prof. Leslie Kaelbling (MIT)
Contributors: Mart� Bolivar, Brendan Clark, Rodrigo de Salvo Braz,
Michael Haimes, Keith Henderson, Kristian Kersting, Andrey Kolobov,
Bhaskara Marthi, Daniel L. Ong, David Sontag, Luke S. Zettlemoyer
Online Information
------------------
For documentation and the latest version of the BLOG inference engine,
please see:
http://people.csail.mit.edu/milch/blog
License
-------
The BLOG inference engine is distributed under the BSD license, as
given in LICENSE.txt.
This distribution also includes several third-party packages, which are
distributed under their own licenses:
* a modified version of the CUP v0.10k parser generator
* a modified version of the JLex 1.2.6 lexical analyzer generator
* the JAMA 1.0.1 matrix package
* the JUnit 4.5 unit testing framework (source code available
from junit.org)
Installation
------------
The following installation instructions assume that you're using a
machine with the Java SDK (version 1.5 or newer), the "make" utility,
and the ability to run a shell script.
Decompressing the ZIP archive that you downloaded will yield a
directory called "blog-0.3". You can put this directory wherever you
like. To compile the source code, go into this directory and type
"make". If "make" finishes with no errors, the inference engine is
ready to run.
Please see CHANGELOG.txt for changes since the previous version.
Getting Started
---------------
To get you started with BLOG, we'll show you how to reproduce the
experiment from our IJCAI-05 paper. The top-level BLOG directory
contains a shell script called "runblog", which invokes java with the
proper classpath. There is also a subdirectory called "examples" that
contains several example BLOG models. To run inference on the
urn-and-balls scenario from our paper, give the command:
./runblog examples/balls/poisson-prior-noisy.mblog
examples/balls/all-same.eblog examples/balls/num-balls.qblog
The program will do inference and print out the posterior distribution
over the number of balls in the urn, given 10 draws that all appear to
be the same color. By default, the program does 10000 samples of
likelihood weighting. You can compare its output to the correct
posterior distribution, which is given in a comment at the end of
examples/balls/poisson-prior-noisy.mblog.
To find out how to do more with the BLOG inference engine, please see
the user manual at:
http://people.csail.mit.edu/milch/blog/manual
What Can It Do?
---------------
The BLOG inference engine can parse any model written in the BLOG
language that we introduced in our SRL-04 and IJCAI-05 papers. It
includes a full set of built-in types (integers, strings, real
numbers, vectors, matrices) and can use arbitrary conditional
probability distributions (CPDs) in the form of Java classes that
implement a certain interface. Models can include arbitrary
first-order formulas.
As noted in our papers, some BLOG models do not actually define unique
probability distributions, because they contain cycles or infinite
receding chains. The current version of the inference engine does not
make any effort to detect whether a model is well-defined or not. On
some ill-defined models, the inference algorithms will end up in
infinite loops.
This version of the inference engine includes three general-purpose
inference algorithms: rejection sampling (as in our IJCAI-05 paper),
likelihood weighting (as in our AISTATS-05 paper), and a
Metropolis-Hastings algorithm where the proposal distribution just
samples values for variables given their parents. These algorithms
are very slow, but they can still yield interesting results on toy
problems. The inference engine also allows modelers to plug in their
own Metropolis-Hastings proposal distributions: the proposal
distribution can propose arbitrary changes to the current world, and
the engine will compute the acceptance probability. We include a
hand-crafted split-merge proposal distribution for the urn-and-balls
scenario as an example.
The inference engine also includes two exact inference algorithms that
work on BLOG models with known objects (that is, with no number
statements). One of these is the variable elimination algorithm; the
other is first-order variable elimination with counting formulas
(C-FOVE) described at AAAI 2008.
We plan to include parameter estimation capabilities -- specifically
Monte Carlo EM -- in a future version of the engine. However, the current
version has no learning code.
How to Help
-----------
The main reason we're releasing the BLOG inference engine code is so
that other people can use it, evaluate the strengths and weaknesses of
the BLOG language, and develop new inference and learning algorithms.
It would also be great to have help improving the inference engine's
interface and building utilities to work with it. If you have
feedback, bug reports, ideas for improvement, or new code, please send
email to Brian Milch at bmilch@gmail.com.
没有合适的资源?快使用搜索试试~ 我知道了~
KNN.rar_KDD_The Process_k-nearest neighbor _kdd knn_knn kdd
共413个文件
java:296个
mblog:19个
blog:13个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 194 浏览量
2022-09-20
18:26:36
上传
评论
收藏 1.2MB RAR 举报
温馨提示
A graphical software to illustrate the process of KDD (Knowledge Data Discovery) using the KNN (K near neighbor) method. The SW was developed in JAVA and is the code is commented. Works on linux and Windows.
资源推荐
资源详情
资源评论
收起资源包目录
KNN.rar_KDD_The Process_k-nearest neighbor _kdd knn_knn kdd (413个子文件)
workshop-attrs.blog 1KB
id-uncert-noisy.blog 1KB
id-uncert-det.blog 1KB
test-expansion.blog 1003B
competing-workshops.blog 834B
weather-with-atemporal.blog 657B
csi.blog 607B
parfactors.blog 524B
test2.blog 471B
test-lifted.blog 424B
test-counting.blog 417B
test.blog 403B
tuple-set.blog 210B
CHANGELOG 14KB
ChangeLog 464B
DrawingView.class 13KB
KnnUtil.class 5KB
DrawingControl.class 5KB
Knn.class 3KB
PanelConstants.class 929B
DrawingView$2.class 729B
DrawingView$3.class 729B
DrawingView$1.class 729B
DrawingView$4.class 729B
DrawingView$5.class 529B
main.class 449B
stylesheet.css 1KB
BLOGParser.cup 67KB
parser.cup 20KB
parser.cup 2KB
mixture.data 4KB
AbstractProposer.java.draft 9KB
mixture.eblog 7KB
grades.eblog 2KB
half-half.eblog 404B
half-half.eblog 363B
all-same.eblog 353B
all-same.eblog 312B
balls.eblog 287B
burglary.eblog 266B
burglary2.eblog 265B
hmm.eblog 159B
aircraft-wandering-simplest.eqblog 303B
DrawingView.form 19KB
cup_logo.gif 8KB
manual.html 64KB
index-all.html 26KB
serialized-form.html 11KB
help-doc.html 7KB
overview-tree.html 5KB
overview-summary.html 4KB
deprecated-list.html 4KB
allclasses-frame.html 1KB
overview-frame.html 1KB
index.html 760B
packages.html 645B
INSTALL 3KB
junit.jar 194KB
psimj2.jar 175KB
Main.java 207KB
parser.java 87KB
Parfactor.java 66KB
lr_parser.java 43KB
TestMatrix.java 41KB
ObjGenGraph.java 39KB
emit.java 35KB
AbstractPartialWorld.java 32KB
Constraint.java 31KB
Main.java 31KB
lalr_state.java 30KB
Matrix.java 29KB
Util.java 29KB
EigenvalueDecomposition.java 26KB
DrawingView.java 25KB
production.java 23KB
Model.java 21KB
Main.java 21KB
MultiArray.java 21KB
PartialWorld.java 21KB
IndexedTreeSet.java 21KB
lexer.java 18KB
CountingTerm.java 18KB
HashMultiMapDiff.java 16KB
UrnBallsSplitMergeNoIds.java 16KB
LiftedDecisionTree.java 16KB
CompiledSetSpec.java 15KB
UrnBallsSplitMerge.java 15KB
BuiltInFunctions.java 15KB
SingularValueDecomposition.java 15KB
MHSampler.java 14KB
IndexedTreeSetDiff.java 14KB
LiftedVarElim.java 14KB
PartialWorldDiff.java 14KB
StringEditModel.java 14KB
Formula.java 14KB
WorldInProgress.java 13KB
TupleSetSpec.java 13KB
Type.java 13KB
Categorical.java 13KB
Parser.java 13KB
共 413 条
- 1
- 2
- 3
- 4
- 5
资源评论
JonSco
- 粉丝: 88
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功