Skip to main content
Version: 1.39

Generate a metadata.json

The metadata.json can be used to provide metadata about your Deployment. The metadata.json can be provided in the root of your repository (or the selected contract folder via the contract_path attribute). More information about the metadata.

from deeploy import CreateMetadata

metadata_input: CreateMetadata = {
"features": [
{
"name": "example",
"observed_min": 0,
"observed_max": 1,
},
],
"prediction_classes": {
"example": True,
},
"problem_type": "classification",
"example_input": {
"instances": [
[39, 7, 1, 1, 1, 1, 4,
1, 2174, 0, 40, 9]
]
},
"input_tensor_shape": "(1, 12)",
"example_output": {"predictions": [True]},
"output_tensor_shape": "(1)",
"custom_id": "client_id",
}

client.generate_metadata_json("/example/path/to/repository", metadata_input)