Some fixes/additions to the variational arguments#283
Merged
mitzimorris merged 11 commits intostan-dev:developfrom Aug 27, 2020
Merged
Some fixes/additions to the variational arguments#283mitzimorris merged 11 commits intostan-dev:developfrom
mitzimorris merged 11 commits intostan-dev:developfrom
Conversation
…at is not converged
mitzimorris
reviewed
Aug 27, 2020
Member
mitzimorris
left a comment
There was a problem hiding this comment.
many thanks for the additions and corrections - the VB changes are all good.
please revert changes to checks onstep_size and init_alpha, noted below.
if you run all the code through the black formatter, it should pass the flake8 tests.
Member
|
thanks @ahartikainen for pointing out my mistake - the code is correct, it just needs to pass the linter and unit tests. |
7017b8f to
1950b27
Compare
Codecov Report
@@ Coverage Diff @@
## develop #283 +/- ##
===========================================
+ Coverage 76.07% 76.28% +0.21%
===========================================
Files 9 9
Lines 2194 2197 +3
===========================================
+ Hits 1669 1676 +7
+ Misses 525 521 -4
Continue to review full report at Codecov.
|
Member
|
many thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Submission Checklist
Summary
Hi! I was exploring the possibility of migrating a project from pystan to cmdstanpy in order to access a more up-to-date version of stanc via a python interface. During that exploration, I found that there was some unexpected behavior when working with the variational interface. I poked around in the codebase and found a few problems that I attempted to fix in this PR. In particular:
Realparameters inVariationalArgswere being constrained to be>=1rather than>0, which resulted in unexpected validation errors when I supplied values less than 1, e.g.eta = 0.1, ortol_rel_obj = 0.05.require_convergedthat would allow us to disable that check, without changing the default behavior of the function.I ran the unit-tests locally in a container built from the Dockerfile in this repo and some of the tests failed, but I don't think that those test failures are related to any of these changes.
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):
Brendon O'Leary
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: