Skip to content

Commit

Permalink
Update example to flow syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
alicjapolanska committed Jan 9, 2024
1 parent f66f7e2 commit 8fd13bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ Now, suppose you have collected many posterior samples, perhaps drawn using `emc
chains_train, chains_infer = hm.utils.split_data(chains, training_proportion=0.5)
# Select a machine learning model and train it
model = hm.model.[select a flow model](model hyper-parameters)
fit_success = model.fit(chains_train.samples, chains_train.ln_posterior)
model = hm.model.[select a flow model](ndim, model hyper-parameters)
model.fit(chains_train.samples)
# Instantiate harmonic's evidence class
ev = hm.Evidence(chains_infer.nchains, model)
Expand Down

0 comments on commit 8fd13bc

Please sign in to comment.