seismometer.configuration.model.PredictionDictionary

pydantic model seismometer.configuration.model.PredictionDictionary

The dictionary information for prediction data.

This is the structure of a dictionary corresponding to the prediction frame. Generally, the predictions frame is all the information known near model execution time such as inputs, outputs, and cohort attributes.

Show Entity Relationship Diagram
digraph "Entity Relationship Diagram created by erdantic" {
   graph [fontcolor=gray66,
      fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=9,
      nodesep=0.5,
      rankdir=LR,
      ranksep=1.5
   ];
   node [fontname="Times New Roman,Times,Liberation Serif,serif",
      fontsize=14,
      label="\N",
      shape=plain
   ];
   edge [dir=both];
   "seismometer.configuration.model.DictionaryItem"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>DictionaryItem</b></td></tr><tr><td>name</td><td port="name">str</td></tr><tr><td>display_name</td><td port="display_name">str</td></tr><tr><td>dtype</td><td port="dtype">Optional[str]</td></tr><tr><td>definition</td><td port="definition">Optional[str]</td></tr></table>>,
      tooltip="seismometer.configuration.model.DictionaryItem&#xA;&#xA;Defines a generic dictionary item.&#xA;"];
   "seismometer.configuration.model.PredictionDictionary"   [label=<<table border="0" cellborder="1" cellspacing="0"><tr><td port="_root" colspan="2"><b>PredictionDictionary</b></td></tr><tr><td>predictions</td><td port="predictions">list[DictionaryItem]</td></tr></table>>,
      tooltip="seismometer.configuration.model.PredictionDictionary&#xA;&#xA;The dictionary information for prediction data.&#xA;&#xA;This is the \
structure of a dictionary corresponding to the prediction frame.&#xA;Generally, the predictions frame is all the information known \
near model execution time such as inputs, outputs,&#xA;and cohort attributes.&#xA;"];
   "seismometer.configuration.model.PredictionDictionary":predictions:e -> "seismometer.configuration.model.DictionaryItem":_root:w   [arrowhead=crownone,
      arrowtail=nonenone];
}

Show JSON schema
{
   "title": "PredictionDictionary",
   "description": "The dictionary information for prediction data.\n\nThis is the structure of a dictionary corresponding to the prediction frame.\nGenerally, the predictions frame is all the information known near model execution time such as inputs, outputs,\nand cohort attributes.",
   "type": "object",
   "properties": {
      "predictions": {
         "default": [],
         "items": {
            "$ref": "#/$defs/DictionaryItem"
         },
         "title": "Predictions",
         "type": "array"
      }
   },
   "$defs": {
      "DictionaryItem": {
         "description": "Defines a generic dictionary item.",
         "properties": {
            "name": {
               "title": "Name",
               "type": "string"
            },
            "display_name": {
               "default": "",
               "title": "Display Name",
               "type": "string"
            },
            "dtype": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Dtype"
            },
            "definition": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Definition"
            }
         },
         "required": [
            "name"
         ],
         "title": "DictionaryItem",
         "type": "object"
      }
   }
}

Fields:
field predictions: list[DictionaryItem] = []

The list of all columns in the predictions data.

get(key, default=None)

Get the definition of an item.

Parameters:
  • key (str) – The column name.

  • default (Optional[Any]) – The default value to return if the key is not found, defaults to None.

Return type:

The DictionaryItem with name specified or the default value