Skip to content

Commit

Permalink
enable predictions by default
Browse files Browse the repository at this point in the history
  • Loading branch information
bvdmitri committed Apr 19, 2024
1 parent c9b09e7 commit 246b196
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "RxInfer"
uuid = "86711068-29c9-4ff7-b620-ae75d7495b3d"
authors = ["Bagaev Dmitry <[email protected]> and contributors"]
version = "3.0.1"
version = "3.0.2"

[deps]
BayesBase = "b4ee3484-f114-42fe-b91c-797d54a0c67e"
Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"downloadUrl": "https://github.com/reactivebayes/RxInfer.jl/releases",
"issueTracker": "https://github.com/reactivebayes/RxInfer.jl/issues",
"name": "RxInfer.jl",
"version": "3.0.1",
"version": "3.0.2",
"description": "Julia package for automated, scalable and efficient Bayesian inference on factor graphs with reactive message passing. ",
"applicationCategory": "Statistics",
"developmentStatus": "active",
"readme": "https://reactivebayes.github.io/RxInfer.jl/stable/",
"softwareVersion": "3.0.1",
"softwareVersion": "3.0.2",
"keywords": [
"Bayesian inference",
"message passing",
Expand Down
3 changes: 1 addition & 2 deletions src/model/plugins/reactivemp_inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ function activate_rmp_variable!(plugin::ReactiveMPInferencePlugin, model::Model,
options = ReactiveMP.RandomVariableActivationOptions(Rocket.getscheduler(getoptions(plugin)), messages_prod_fn, marginal_prod_fn)
return ReactiveMP.activate!(getextra(nodedata, ReactiveMPExtraVariableKey)::RandomVariable, options)
elseif is_data(nodeproperties)
# TODO: bvdmitri use allow_missings
properties = getproperties(nodedata)::GraphPPL.VariableNodeProperties
# The datavar can be linked to another variable via a `transform` function, which should be stored in the `value`
# field of the properties. In this case the `datavar` gets its values from the linked variable and does not create an explicit factor node
Expand All @@ -187,7 +186,7 @@ function activate_rmp_variable!(plugin::ReactiveMPInferencePlugin, model::Model,
transform = _transform
args = map(arg -> GraphPPL.is_nodelabel(arg) ? getvariable(getvarref(model, arg)) : arg, _args)
end
options = ReactiveMP.DataVariableActivationOptions(false, !isnothing(value), transform, args)
options = ReactiveMP.DataVariableActivationOptions(true, !isnothing(value), transform, args)
return ReactiveMP.activate!(getextra(nodedata, ReactiveMPExtraVariableKey)::DataVariable, options)
elseif is_constant(nodeproperties)
# The constant does not require extra activation
Expand Down

2 comments on commit 246b196

@bvdmitri
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/105236

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v3.0.2 -m "<description of version>" 246b196a3ea29d0b5744ce241a923c7a3b30eaf4
git push origin v3.0.2

Please sign in to comment.