Skip to content

Commit

Permalink
return state instead of paramStore
Browse files Browse the repository at this point in the history
  • Loading branch information
jykr committed Mar 30, 2024
1 parent c7beb55 commit d29be47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions bean/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ def main(args):
f"Using {len(negctrl_idx)} negative control elements to adjust phenotypic effect sizes..."
)
ndata_negctrl = ndata[negctrl_idx]
param_history_dict["negctrl"] = run_inference(
negctrl_model, negctrl_guide, ndata_negctrl, num_steps=args.n_iter
param_history_dict["negctrl"] = deepcopy(
run_inference(
negctrl_model, negctrl_guide, ndata_negctrl, num_steps=args.n_iter
)
)

outfile_path = (
Expand Down
2 changes: 1 addition & 1 deletion bean/model/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def run_inference(
)
return {
"loss": losses,
"params": pyro.get_param_store(),
"params": pyro.get_param_store().get_state(),
}


Expand Down

0 comments on commit d29be47

Please sign in to comment.