From 26027ea6fd1babe201fa9a68d908cd621ea44565 Mon Sep 17 00:00:00 2001 From: Xianda Sun Date: Mon, 22 Jul 2024 08:25:53 +0100 Subject: [PATCH] remove `condition` and `decondition` --- src/AbstractMCMC.jl | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/src/AbstractMCMC.jl b/src/AbstractMCMC.jl index a2aa7170..3b38c583 100644 --- a/src/AbstractMCMC.jl +++ b/src/AbstractMCMC.jl @@ -80,40 +80,6 @@ The `MCMCSerial` algorithm allows users to sample serially, with no thread or pr """ struct MCMCSerial <: AbstractMCMCEnsemble end -""" - decondition(conditioned_model) - -Remove the conditioning (i.e., observation data) from `conditioned_model`, turning it into a -generative model over prior and observed variables. - -The invariant - -``` -m == condition(decondition(m), obs) -``` - -should hold for models `m` with conditioned variables `obs`. -""" -function decondition end - -""" - condition(model, observations) - -Condition the generative model `model` on some observed data, creating a new model of the (possibly -unnormalized) posterior distribution over them. - -`observations` can be of any supported internal trace type, or a fixed probability expression. - -The invariant - -``` -m = decondition(condition(m, obs)) -``` - -should hold for generative models `m` and arbitrary `obs`. -""" -function condition end - """ recompute_logprob!!(rng, model, sampler, state)