You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-4Lines changed: 23 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,30 @@ You can modify the list of AD types in `main.jl`.
13
13
## I want to add more models!
14
14
15
15
You can modify the list of models by adding a new file inside the `models` directory.
16
-
This file should contain the model definition, and call the `@register` macro to register the model with the `ADTests` package.
17
-
See the existing files in that directory for examples.
18
-
Then, make sure to `include` the new source file in `main.jl`.
19
16
20
-
To make sure that the definition is included in the final website, you will have to make sure that the filename is the same as the model name (i.e. a model `@model function f()` is in `models/f.jl`).
17
+
Inside this file, you do not need to call `using Turing` or any of the AD backends.
18
+
However, you will have to make sure to import any other packages that your model uses.
19
+
20
+
This file should have, as the final line, the creation of the Turing model object using `model = model_f(...)`.
21
+
(It is mandatory for the model object to be called `model`.)
0 commit comments