Skip to content
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

Make StanProgramBuilder available #98

Merged
merged 7 commits into from
Sep 22, 2018
Merged

Make StanProgramBuilder available #98

merged 7 commits into from
Sep 22, 2018

Conversation

joewing
Copy link
Contributor

@joewing joewing commented Sep 10, 2018

This renames CodeBuilder to StanProgramBuilder and makes it available so that it can be used in end-user code. In particular, the use of certain Stan functions requires that an object of this type be passed implicitly, so writing a generic function that can be used in multiple models, for example, would require this.
This PR also changes StanResults to avoid println in the diagnostic functions, since that's not likely to go anywhere useful. Instead, the functions simply return the relevant information.
Finally, this PR splits up LinearRegression to make it more modular, allowing one to create a custom regressions by mixing in traits.

@joewing joewing merged commit a72b953 into master Sep 22, 2018
@joewing joewing deleted the program-builder branch September 22, 2018 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant