Easier public apis for Conditional statments + Marginalization mask #27
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Milestone
Currently user has to manually call MAR twice to get conditionals. Have some api like this:
Where
q_indice
s give indexes of variables inq
for each datapoint (all variables mentioned inq[i]
should NOT be missing in the correspodingdata[i]
). In the end we are computingp( q | x^o)
for each data point wherex^o
is all observed variables except the ones inq
.Makes sense to add another API to marginalize even over observed varibles. (for example above we need
p^o
butx^o, q
is observed). This helps to avoid copying data for each query.initial attempt here: master...cond
The text was updated successfully, but these errors were encountered: