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

Pass the RNG stored in AgentType to portfolio agents' methods for dra… #433

Merged
merged 4 commits into from
Dec 5, 2019

Conversation

pkofod
Copy link
Contributor

@pkofod pkofod commented Nov 9, 2019

…wing risky returns rates.

Fixes #430

We should of course verify that a) this works with the different examples I provided in the original PR and make it clear that b) you now have to define your function to accept 1 positional argument that represents a RNG state.

@llorracc @mnwhite

@mnwhite
Copy link
Contributor

mnwhite commented Nov 9, 2019 via email

@pkofod
Copy link
Contributor Author

pkofod commented Nov 9, 2019

Oh, of course. So RNG is the actual generator, and the idea is to use that to generate a seed for each simulation. So if the RNG is reset, you get the same sequence next time around. Can you have a look again? Thanks!

@llorracc
Copy link
Collaborator

llorracc commented Dec 5, 2019

Is this ready for merging now?

@mnwhite
Copy link
Contributor

mnwhite commented Dec 5, 2019

Yes. I haven't run this branch, but if it works for Patrick after making these changes, it's ready for merge. His RNG is now formatted the same as our other shock-drawers.

@llorracc llorracc merged commit 31ae91c into econ-ark:master Dec 5, 2019
@shaunagm
Copy link
Contributor

Can someone write a release note for this?

@llorracc
Copy link
Collaborator

Release note: Fixed bug in ConsPortfolioModel in which the same risky rate of return would be drawn over and over

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.

Risky return rate in ConsPortfolioModel is always the same.
4 participants