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

perfect foresight model data #1347

Merged
merged 5 commits into from
Sep 27, 2023
Merged

perfect foresight model data #1347

merged 5 commits into from
Sep 27, 2023

Conversation

sbenthall
Copy link
Contributor

@sbenthall sbenthall commented Aug 29, 2023

This PR aims to demonstrate how we could proceed with #1346 by writing lightweight model definition files in pure Python.

Models defined in this way could then be the source of equations that are integrated into AgentType (see #1292 ) or used as an input to generic Monte Carlo simulation (#1296) or solution algorithms (#1286).

I'm not committed to the form in this PR, but it reflects the kind of information that's useful for downstream algorithms (as in (#1296) and is otherwise quite minimal. I'd argue that any problem representation we develop in YAML will be parsed into something quite like this, so this is a fine start which we could then expand upon as needed.

  • Tests for new functionality/models or Tests to reproduce the bug-fix in code.
  • Updated documentation of features that add new functionality.
  • Update CHANGELOG.md with major/minor changes.

@codecov
Copy link

codecov bot commented Aug 29, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.02% ⚠️

Comparison is base (da30b24) 73.04% compared to head (2744310) 73.02%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1347      +/-   ##
==========================================
- Coverage   73.04%   73.02%   -0.02%     
==========================================
  Files          78       79       +1     
  Lines       13374    13377       +3     
==========================================
  Hits         9769     9769              
- Misses       3605     3608       +3     
Files Changed Coverage Δ
HARK/model.py 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sbenthall
Copy link
Contributor Author

add fischer two period:
https://github.com/econ-ark/DemARK/blob/master/notebooks/FisherTwoPeriod.ipynb

But @mnwhite should this be a 'different model'?

@sbenthall
Copy link
Contributor Author

@sbenthall
Copy link
Contributor Author

I've added CHANGELOG and automated tests are meaningless in this case.

This PR has no new functionality but is needed for further testing of #1296 (Generic monte carlo simulation).
I would like to defer the documentation step on this until the #1296 PR, which demonstrates the functionality.

@mnwhite @alanlujan91 could you please review and, if passing, merge?

Copy link
Member

@alanlujan91 alanlujan91 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@sbenthall sbenthall merged commit 3ec3404 into econ-ark:master Sep 27, 2023
15 of 17 checks passed
@sbenthall sbenthall mentioned this pull request Sep 27, 2023
3 tasks
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

2 participants