【文件属性】:
文件名称:GraphicalModels.jl:用于在 Julia 中表示图形模型的数据结构和解析工具
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-08 19:43:42
Julia
图形模型.jl
注意
这个包是无人维护的。 不保证其可靠性。
介绍
使用类似 BUGS 的符号解析图形模型,并将模型表示为 Julian 数据结构:
using GraphicalModels
ex = quote
for i in 1:3
mu[i] ~ Normal(0, 1)
end
for j in 1:3
sigma[j] ~ Gamma(1, 1)
end
for i in 1:3
for j in 1:2
x[i, j] ~ Normal(mu[i], sigma[j])
end
end
end
model = GraphicalModels.parse_model(ex)
index, inverse_index = GraphicalModels.build_indices(model)
【文件预览】:
GraphicalModels.jl-master
----src()
--------types.jl(586B)
--------GraphicalModels.jl(158B)
--------parser.jl(2KB)
--------nodesort.jl(446B)
--------parser_tools.jl(3KB)
----README.md(557B)