Skip to content

Commit

Permalink
Update metamodel schema
Browse files Browse the repository at this point in the history
  • Loading branch information
bgyori committed Sep 10, 2024
1 parent fd41e51 commit ca87a35
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions mira/metamodel/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -946,15 +946,23 @@
"properties": {
"type": {
"title": "Type",
"description": "The type of distribution, e.g. 'uniform', 'normal', etc.",
"description": "The type of distribution as provided by ProbOnto e.g. 'StandardUniform1', 'Beta1', etc.",
"type": "string"
},
"parameters": {
"title": "Parameters",
"description": "The parameters of the distribution.",
"description": "The parameters of the distribution keyed by parameter names controlled by ProbOnto and values that are either floatingpoint values or symbolic expressions over other parameters.",
"type": "object",
"additionalProperties": {
"type": "number"
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"example": "2*x"
}
]
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion mira/metamodel/template_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class Distribution(BaseModel):
)
parameters: Dict[str, Union[float, SympyExprStr]] = Field(
description="The parameters of the distribution keyed by parameter names "
"controlled by ProbOnto and values that are either floating"
"controlled by ProbOnto and values that are either floating "
"point values or symbolic expressions over other "
"parameters."
)
Expand Down

0 comments on commit ca87a35

Please sign in to comment.