-
Notifications
You must be signed in to change notification settings - Fork 6
Endogenize investments #80
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
base: main
Are you sure you want to change the base?
Conversation
…. Missing data and constraints.
… yet with investments.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #80 +/- ##
==========================================
- Coverage 91.43% 91.03% -0.40%
==========================================
Files 40 42 +2
Lines 3070 3581 +511
==========================================
+ Hits 2807 3260 +453
- Misses 263 321 +58 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are endogenous factors not compatible with anchoring? And why not with stages? Especially stages are so orthogonal to everything else (they are just fixed constraints) that I don't think it would be hard.
For example, if you had chosen to implement all the logic for endogenous factors by transforming the user written model dict, the new stages could have been:
new_stagemap = list(np.repeat(old_stagemap, 2))
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
…illmodels periods) for transitions.
* Implement QR Factorization * Move QR and add tests * Fix Seed, Split tests
…tance instead of 0, stick to dicts for the moment though code for custom constraints is there.
* Move Checkpoints * Add splitting for gradient * Speed up QR
…n plots by default.
hmgaudecker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Autoreview.
Endogeneity of investments means that concurrent states influence the choice of investments. Skillmodels currently has no way of including that.
In this PR, we achieve it this by modelling this through transition functions. When investment factors are present, each period is split into two sub-periods. The first sub-period is for states, which can influence investments in the second sub-period.
is_investmentfor factors. Addperiods_raw(in the original data) in addition toperiods(the doubled-up version used internally by skillmodels)Limitations:
Stages are not supported when investment factors are present (would require extra logic for the constraints, might e doable without much work)