From 4450e1b54cd77a033154fa20744ad2a04e991c71 Mon Sep 17 00:00:00 2001 From: Bagaev Dmitry Date: Thu, 23 May 2024 15:39:20 +0200 Subject: [PATCH 1/2] bump version to 3.3.0 --- Project.toml | 4 ++-- src/model/model.jl | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Project.toml b/Project.toml index 00e7f963d..97b5ec7ab 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "RxInfer" uuid = "86711068-29c9-4ff7-b620-ae75d7495b3d" authors = ["Bagaev Dmitry and contributors"] -version = "3.2.0" +version = "3.3.0" [deps] BayesBase = "b4ee3484-f114-42fe-b91c-797d54a0c67e" @@ -28,7 +28,7 @@ Distributions = "0.25" DomainSets = "0.5.2, 0.6, 0.7" ExponentialFamily = "1.2" FastCholesky = "1.3.0" -GraphPPL = "~4.1.0" +GraphPPL = "~4.2.0" LinearAlgebra = "1.9" MacroTools = "0.5.6" Optim = "1.0.0" diff --git a/src/model/model.jl b/src/model/model.jl index b0f2b1b28..cf2f05a57 100644 --- a/src/model/model.jl +++ b/src/model/model.jl @@ -139,15 +139,15 @@ function Base.show(io::IO, ::DeferredDataHandler) print(io, "[ deffered data ]") end -# We use the `LazyIndex` to instantiate the data interface for the model, in case of `DeferredDataHandler` +# We use the `datalabel` to instantiate the data interface for the model, in case of `DeferredDataHandler` # the data is not known at the time of the model creation function __infer_create_data_interface(model, context, key::Symbol, ::DeferredDataHandler) - return GraphPPL.getorcreate!(model, context, GraphPPL.NodeCreationOptions(kind = :data, factorized = true), key, GraphPPL.LazyIndex()) + return GraphPPL.datalabel(model, context, GraphPPL.NodeCreationOptions(kind = :data, factorized = true), key, GraphPPL.MissingCollection()) end -# 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 +# 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 function __infer_create_data_interface(model, context, key::Symbol, data) - return GraphPPL.getorcreate!(model, context, GraphPPL.NodeCreationOptions(kind = :data, factorized = true), key, GraphPPL.LazyIndex(data)) + return GraphPPL.datalabel(model, context, GraphPPL.NodeCreationOptions(kind = :data, factorized = true), key, data) end merge_data_handlers(data::Dict, newdata::Dict) = merge(data, newdata) From 3215f336d253b0738dc456e8f56ae344679d89d9 Mon Sep 17 00:00:00 2001 From: Bagaev Dmitry Date: Thu, 23 May 2024 15:46:16 +0200 Subject: [PATCH 2/2] update codemeta --- codemeta.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codemeta.json b/codemeta.json index 206046e82..79d27ca75 100644 --- a/codemeta.json +++ b/codemeta.json @@ -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.2.0", + "version": "3.3.0", "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.2.0", + "softwareVersion": "3.3.0", "keywords": [ "Bayesian inference", "message passing",