@@ -175,7 +175,6 @@ function activate_rmp_variable!(plugin::ReactiveMPInferencePlugin, model::Model,
175
175
options = ReactiveMP. RandomVariableActivationOptions (Rocket. getscheduler (getoptions (plugin)), messages_prod_fn, marginal_prod_fn)
176
176
return ReactiveMP. activate! (getextra (nodedata, ReactiveMPExtraVariableKey):: RandomVariable , options)
177
177
elseif is_data (nodeproperties)
178
- # TODO : bvdmitri use allow_missings
179
178
properties = getproperties (nodedata):: GraphPPL.VariableNodeProperties
180
179
# The datavar can be linked to another variable via a `transform` function, which should be stored in the `value`
181
180
# 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,
187
186
transform = _transform
188
187
args = map (arg -> GraphPPL. is_nodelabel (arg) ? getvariable (getvarref (model, arg)) : arg, _args)
189
188
end
190
- options = ReactiveMP. DataVariableActivationOptions (false , ! isnothing (value), transform, args)
189
+ options = ReactiveMP. DataVariableActivationOptions (true , ! isnothing (value), transform, args)
191
190
return ReactiveMP. activate! (getextra (nodedata, ReactiveMPExtraVariableKey):: DataVariable , options)
192
191
elseif is_constant (nodeproperties)
193
192
# The constant does not require extra activation
0 commit comments