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

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

Open
anirbansaha96 opened this issue May 25, 2021 · 0 comments

Comments

@anirbansaha96
Copy link

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>}
                      ]
}
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