We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80af27c commit 0dee6f8Copy full SHA for 0dee6f8
README.md
@@ -46,7 +46,7 @@ amortizer = bf.amortizers.AmortizedPosterior(inference_net, summary_net)
46
generative_model = bf.simulation.GenerativeModel(prior, simulator)
47
48
# Finally, we connect the networks with the generative model via a `Trainer` instance:
49
-trainer = bf.trainers.Trainer(network=amortizer, generative_model=generative_model)
+trainer = bf.trainers.Trainer(amortizer=amortizer, generative_model=generative_model)
50
51
# We are now ready to train an amortized posterior approximator. For instance, to run online training, we simply call:
52
losses = trainer.train_online(epochs=10, iterations_per_epoch=500, batch_size=32)
0 commit comments