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

MIRA Template Model Representations #6

Open
jpfairbanks opened this issue Apr 21, 2023 · 1 comment
Open

MIRA Template Model Representations #6

jpfairbanks opened this issue Apr 21, 2023 · 1 comment
Assignees

Comments

@jpfairbanks
Copy link
Collaborator

@bgyori, can we brainstorm a schema for storing the MMT representation rather than the lower level MiraNet representation that we have been using. What is the native MIRA storage format that you are using? We would like to ingest that directly rather than have you convert to something closer to petri nets.

@bgyori
Copy link
Collaborator

bgyori commented Apr 21, 2023

We have a formal JSON schema for the MIRA TemplateModel representation here: https://github.com/indralab/mira/blob/main/mira/metamodel/schema.json. You can see 3 examples for the current ensemble challenge with this serialized representation here: https://github.com/indralab/mira/tree/ensemble/notebooks/ensemble (the files named _template_model.json).

One thing to note is that these TemplateModels are not "pre-compiled" in the way e.g., Petri nets are in a couple of ways, most importantly in that each Template has its own independent Concept arguments, and at the Template level, these Concepts are not merged. That happens at a later modeling stage. So if you use the TemplateModel representation directly, you would have to perform that compilation step to figure out which Concepts are the same on your end. In basic cases this is straightforward, e.g., you can just look at the name, but in general it can require a bit more logic.

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

No branches or pull requests

4 participants