Skip to content

Commit 246b196

Browse files
committed
enable predictions by default
1 parent c9b09e7 commit 246b196

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
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.0.1"
4+
version = "3.0.2"
55

66
[deps]
77
BayesBase = "b4ee3484-f114-42fe-b91c-797d54a0c67e"

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.0.1",
12+
"version": "3.0.2",
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.0.1",
17+
"softwareVersion": "3.0.2",
1818
"keywords": [
1919
"Bayesian inference",
2020
"message passing",

src/model/plugins/reactivemp_inference.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ function activate_rmp_variable!(plugin::ReactiveMPInferencePlugin, model::Model,
175175
options = ReactiveMP.RandomVariableActivationOptions(Rocket.getscheduler(getoptions(plugin)), messages_prod_fn, marginal_prod_fn)
176176
return ReactiveMP.activate!(getextra(nodedata, ReactiveMPExtraVariableKey)::RandomVariable, options)
177177
elseif is_data(nodeproperties)
178-
# TODO: bvdmitri use allow_missings
179178
properties = getproperties(nodedata)::GraphPPL.VariableNodeProperties
180179
# The datavar can be linked to another variable via a `transform` function, which should be stored in the `value`
181180
# field of the properties. In this case the `datavar` gets its values from the linked variable and does not create an explicit factor node
@@ -187,7 +186,7 @@ function activate_rmp_variable!(plugin::ReactiveMPInferencePlugin, model::Model,
187186
transform = _transform
188187
args = map(arg -> GraphPPL.is_nodelabel(arg) ? getvariable(getvarref(model, arg)) : arg, _args)
189188
end
190-
options = ReactiveMP.DataVariableActivationOptions(false, !isnothing(value), transform, args)
189+
options = ReactiveMP.DataVariableActivationOptions(true, !isnothing(value), transform, args)
191190
return ReactiveMP.activate!(getextra(nodedata, ReactiveMPExtraVariableKey)::DataVariable, options)
192191
elseif is_constant(nodeproperties)
193192
# The constant does not require extra activation

0 commit comments

Comments
 (0)