Compiler Refactoring
Much of the back end of how Turing interprets models has changed with the merge of #613. See that issue for more detail.
Summary of changes
- Models can now have default values in arguments (#544 (comment)). When an argument is not provided, it is treated as a parameter instead of an observation and is instantiated to its default value. The snippet below shows how
x
will be instantiated withdefault_x
when no value is provided.
@model model_function(x = default_x, y)
...
end