Skip to content

Commit

Permalink
Minor improvement to tutorial's custom model section
Browse files Browse the repository at this point in the history
  • Loading branch information
linusseelinger committed Dec 9, 2023
1 parent 31a42f2 commit c000999
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ switch PyMC to use a different sampler. Refer to `PyMC's documentation <https://

Take a closer look at ``minimal-server.py``. Refer to the `models section <https://um-bridge-benchmarks.readthedocs.io/en/docs/umbridge/models.html>`_ for an explanation of how UM-Bridge models are defined in Python.

* Play around with the minimal model. For example, you could replace the multiplication by a more interesting operation, or change the model to have a different input or output dimension. Each time, restart the model server and call the modified model from your client to make sure changes take effect as you intend.
* Optional: Apply QMCPy to propagate a distribution through your new model.
* Change the model to :math:`F(x) = 4x`. Restart ``minimal-server.py`` and apply your own client or QMCPy as before. Does the output match your expectation?
* Optional: Replace the multiplication by a more interesting operation, or change the model to have a different input or output dimension.
* Optional: Define your own log density, for example the log of a normal distribution. Apply PyMC to sample from it.

5: Build custom model containers
Expand Down

0 comments on commit c000999

Please sign in to comment.