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

Show model equations for inspected HARK AgentType and Market classes #479

Closed
sbenthall opened this issue Jan 29, 2020 · 5 comments
Closed
Assignees
Milestone

Comments

@sbenthall
Copy link
Contributor

For comparison, the dolo.compiler.model.Model class instances, when inspected in the REPL, provide some nice metadata and the equations for the model.

https://gist.github.com/sbenthall/54772209ab5108801a5fe166cff12b5b

Currently, with HARK AgentType and MarketClasses, it is difficult to find the equations of the models by inspecting the code or the objects.

The equations could potentially be put in the docstrings of these classes.
Or they could be printed to the user when the object is inspected.

This may be related to #446 -- this could be a way to communicate the parameters used in the object definition in a structured way.

@sbenthall
Copy link
Contributor Author

depends on #761

@sbenthall
Copy link
Contributor Author

Related to #660 #612

  • If we refactor to have parameters grouped/ available , it will be possible to display them/

We don't have a SST on transition equations. The closest we'll get to that by 1.0 is FrameAgentType.

@sbenthall sbenthall self-assigned this Jan 22, 2021
MridulS pushed a commit that referenced this issue Jan 22, 2021
* replace HARKobject with MetricObject and ParameterizedObject, see #612

* rename ParameterizedObject to Model; more in sync with Dolo

* corrections from master merge...

* whitespace corrections

* parameters printed when Model (Agent, Market) object inspected. see #479

* adds model equivalency method, fixes #612

* changlog for model equivalency and repr
@sbenthall
Copy link
Contributor Author

Moving to 1.1 now that this is resolved for parameters.
need frame/equations explicit for next stage

@sbenthall sbenthall modified the milestones: 1.0.0, 1.1.0 Jan 22, 2021
@sbenthall sbenthall changed the title Show model equations and parameters for inspected HARK AgentType and Market classes Show model equationsfor inspected HARK AgentType and Market classes Jan 22, 2021
@sbenthall sbenthall changed the title Show model equationsfor inspected HARK AgentType and Market classes Show model equations for inspected HARK AgentType and Market classes Jan 22, 2021
@alanlujan91 alanlujan91 self-assigned this Aug 19, 2022
@sbenthall sbenthall mentioned this issue Jun 27, 2023
3 tasks
@sbenthall
Copy link
Contributor Author

See #1085
Will be feasible with #1427

@mnwhite mnwhite added the Tag: 1.0 About the v1 release of HARK. label Jul 3, 2024
@mnwhite
Copy link
Contributor

mnwhite commented Jul 3, 2024

Closing because this is a major part of the HARK 1 roadmap, and is actively being worked on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants