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

YAML config file to New Python Model Format (NPMF) #1373

Open
sbenthall opened this issue Jan 29, 2024 · 0 comments
Open

YAML config file to New Python Model Format (NPMF) #1373

sbenthall opened this issue Jan 29, 2024 · 0 comments
Assignees

Comments

@sbenthall
Copy link
Contributor

With #1371, the New Python Model Format and the prototype YAML format developed in RLRO are nearly identical data structures.

This ticket is for implementing the compiler that consumes YAML and creates a valid Python object in NPMF.

As we have seen, mathematical expressions in YAML can be converted to useful Python using SymPy. Indeed, this was what Pablo originally did with Dolo. We can in HARK 1.0 provided similar functionality.

(There are some noted frustrating things about how SymPy changes the algebraic form of some expressions that it parses. These motivate the special parser in Dolo. However:

  • We have not yet identified whether we need the special parser for our applications
  • We have stronger ties to the SciPy ecosystem and might be able to advocate for changes to SymPy to accomodate us
  • Since we have a programmable NPMF interface, in the worst case the user can just configure their model in Python and bypass SymPy/YAML issues. )
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

No branches or pull requests

1 participant