stan
stan copied to clipboard
Stan development repository. The master branch contains the current release. The develop branch contains the latest stable development. See the Developer Process Wiki for details.
#### Summary: Both Pathfinder and ADVI algorithms are approximate algorithms. Craft console messages accordingly and revise the documentation to explain what this means. #### Description: The ADVI implementation lives in...
Stan has a vectorized $\Phi(x)$ (standard cumulative distribution function) but lacks a corresponding vectorized $\varphi(x)$ (standard normal density). You can't get this using `std_normal_lpdf()`, as it sums the log density...
#### Summary: There are some generally useful testing classes in `src/test/unit/services/pathfinder/util.hpp` that'd be useful higher up. At that point, they should be renamed to something like `mock_writer` and `mock_logger`. ####...
#### Submission Checklist - [x] Run unit tests: `./runTests.py src/test/unit` - [x] Run cpplint: `make cpplint` - [x] Declare copyright holder and open-source license: Steve Bronder #### Summary When we...
*_rng() functions that match all existing signatures available for corresponding *_lpdf() functions
At present, most `*_rng()` functions for quantities have a single signature, requiring loops to accommodate expressions that are otherwise expressable with a single line when using the corresponding `*_lpdf()` in...
#### Summary: `stanc` outputs methods for returning a json-formatted string of the parameter metadata, like the following for the bernoulli model: ```cpp inline std::string get_constrained_sizedtypes() const { return std::string("[{\"name\":\"theta\",\"type\":{\"name\":\"real\"},\"block\":\"parameters\"}]"); }...
One thing that we may be able to do within weeks rather than months that would allow Andrew to do more of this in Stan proper is to expose a...
#### Summary: The Laplace approximation code at https://github.com/stan-dev/stan/blob/a3ee52eee6a294638445f2db5fed37214fae3142/src/stan/services/optimize/laplace_sample.hpp#L83 uses a Cholesky decomposition. In other parts of Stan's code base we use the ldlt decomposition from Eigen due to it's superior...
Consider the following simple model, which should return the average of two positive numbers: ``` stan data { vector[2] X; real sigma; } parameters { real mu; } model {...
#### Summary: transition method results in nans for softabs metric #### Description: I might use the library in a wrong way but I'll try to explain everything. Firstly, I use...