New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing log_prob
method or endpoint
#113
Comments
I think this is most useful for testing and for algorithm development. I'm not sure anyone's doing algorithm development based on Stan models in Python or in R. It's just too easy to write a couple models with gradients from scratch and develop using those without bringing in the relatively heavyweight dependencies of PyStan or RStan. |
I know people using these for custom stuff. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm working on a project that (due to licensing requirements) motivates the use of PyStan v3 and requires access to |
To make Line 200 in c6b5239
param_names , httpstan/httpstan/stan_services.cpp Line 83 in c6b5239
A lot of the work here is writing documentation and tests. |
Thank you for the guidance. I'm also keen to make |
Let's start with log_prob. Other methods should get their own issues. |
Edit looks like the issue below was something to do with my Ubuntu system, tried on my Mac and the tests run fine. I've exposed
|
Given a model name, associated data and unconstrained parameters, the log_prob endpoint will calculate and return the log probability of the unconstrained parameters. This feature is accompanied by two tests, both of which are based on a simple Gaussian problem: the first test validates the log_prob endpoint by comparing the output against the analytically derived log probability; the second test validates the log_prob endpoint by comparing the output against the log probability (lp__) extracted from a model fit. Closes #113
Given a
model_name
and parameter values, call thelog_prob
function in the C++ model. Implementation can mirror that of theparam_names
endpoint.When this is implemented, add a method to the PyStan 3
Model
class.(I think I have used this function one time in the last 4 years.)
The text was updated successfully, but these errors were encountered: