Skip to content

Commit 736e74b

Browse files
authored
Merge pull request #310 from ReactiveBayes/graphppl-lazylabels
Minor changes for GraphPPL 4.2.0
2 parents 0613ea1 + 3215f33 commit 736e74b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "RxInfer"
22
uuid = "86711068-29c9-4ff7-b620-ae75d7495b3d"
33
authors = ["Bagaev Dmitry <d.v.bagaev@tue.nl> and contributors"]
4-
version = "3.2.0"
4+
version = "3.3.0"
55

66
[deps]
77
BayesBase = "b4ee3484-f114-42fe-b91c-797d54a0c67e"
@@ -28,7 +28,7 @@ Distributions = "0.25"
2828
DomainSets = "0.5.2, 0.6, 0.7"
2929
ExponentialFamily = "1.2"
3030
FastCholesky = "1.3.0"
31-
GraphPPL = "~4.1.0"
31+
GraphPPL = "~4.2.0"
3232
LinearAlgebra = "1.9"
3333
MacroTools = "0.5.6"
3434
Optim = "1.0.0"

codemeta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
"downloadUrl": "https://github.com/reactivebayes/RxInfer.jl/releases",
1010
"issueTracker": "https://github.com/reactivebayes/RxInfer.jl/issues",
1111
"name": "RxInfer.jl",
12-
"version": "3.2.0",
12+
"version": "3.3.0",
1313
"description": "Julia package for automated, scalable and efficient Bayesian inference on factor graphs with reactive message passing. ",
1414
"applicationCategory": "Statistics",
1515
"developmentStatus": "active",
1616
"readme": "https://reactivebayes.github.io/RxInfer.jl/stable/",
17-
"softwareVersion": "3.2.0",
17+
"softwareVersion": "3.3.0",
1818
"keywords": [
1919
"Bayesian inference",
2020
"message passing",

src/model/model.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,15 @@ function Base.show(io::IO, ::DeferredDataHandler)
139139
print(io, "[ deffered data ]")
140140
end
141141

142-
# We use the `LazyIndex` to instantiate the data interface for the model, in case of `DeferredDataHandler`
142+
# We use the `datalabel` to instantiate the data interface for the model, in case of `DeferredDataHandler`
143143
# the data is not known at the time of the model creation
144144
function __infer_create_data_interface(model, context, key::Symbol, ::DeferredDataHandler)
145-
return GraphPPL.getorcreate!(model, context, GraphPPL.NodeCreationOptions(kind = :data, factorized = true), key, GraphPPL.LazyIndex())
145+
return GraphPPL.datalabel(model, context, GraphPPL.NodeCreationOptions(kind = :data, factorized = true), key, GraphPPL.MissingCollection())
146146
end
147147

148-
# In all other cases we use the `LazyIndex` to instantiate the data interface for the model and the data is known at the time of the model creation
148+
# In all other cases we use the `datalabel` to instantiate the data interface for the model and the data is known at the time of the model creation
149149
function __infer_create_data_interface(model, context, key::Symbol, data)
150-
return GraphPPL.getorcreate!(model, context, GraphPPL.NodeCreationOptions(kind = :data, factorized = true), key, GraphPPL.LazyIndex(data))
150+
return GraphPPL.datalabel(model, context, GraphPPL.NodeCreationOptions(kind = :data, factorized = true), key, data)
151151
end
152152

153153
merge_data_handlers(data::Dict, newdata::Dict) = merge(data, newdata)

0 commit comments

Comments
 (0)