Skip to content

How to generate Inference Schema for Dictionary with nested structure? #47

@anirbansaha96

Description

@anirbansaha96

In Advanced Scoring Scripting for AzureML webservice, to automatically generate a schema for our web service, we provide a sample of the input and/or output in the constructor for one of the defined type objects. The type and sample are used to automatically create the schema.
To use schema generation, we include the open-source inference-schema package version 1.1.0 or above. The types that I can find include Numpy Type, Pandas Type, Abstract Parameter type.
How do we define the schema for a Nested Dictionary of (generalized) format:

{    "top_level_key": [
                         {"nested_key_1": "string_1",
                          "nested_key_2": <float_number>, 
                          "nested_key_3": <True/False>}
                      ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions