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

deprecated AlphaVectorPolicy(m, alphas) #12

Merged
merged 1 commit into from Jun 6, 2019

Conversation

zsunberg
Copy link
Member

@zsunberg zsunberg commented Jun 6, 2019

The AlphaVectorPolicy(m, alphas) constructor seems really dangerous to me - it seems very easy to accidentally make alpha vectors match up with the wrong actions.

Is it ok if I deprecate it in favor of AlphaVectorPolicy(m, alphas, action_map) so that people explicitly have to specify which actions the alpha vectors correspond to?

I'll go back and make sure no solvers use the two argument one if we accept this.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 51

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 87.255%

Totals Coverage Status
Change from base Build 49: -0.1%
Covered Lines: 89
Relevant Lines: 102

💛 - Coveralls

1 similar comment
@coveralls
Copy link

coveralls commented Jun 6, 2019

Pull Request Test Coverage Report for Build 51

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 87.255%

Totals Coverage Status
Change from base Build 49: -0.1%
Covered Lines: 89
Relevant Lines: 102

💛 - Coveralls

Copy link
Member

@rejuvyesh rejuvyesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Contributor

@MaximeBouton MaximeBouton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍

@zsunberg zsunberg merged commit 0d96c2e into master Jun 6, 2019
@zsunberg zsunberg deleted the dep-alpha-vector-constructor branch June 6, 2019 21:18
zsunberg added a commit to JuliaPOMDP/IncrementalPruning.jl that referenced this pull request Jun 7, 2019
zsunberg added a commit to JuliaPOMDP/QMDP.jl that referenced this pull request Jun 7, 2019
@zsunberg
Copy link
Member Author

zsunberg commented Jun 7, 2019

Ha, wow, actually I already found a bug because of this in FIB - the action ordering might not be right for some problems

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.

None yet

4 participants