{ "$schema":          "https://json-schema.org/draft/2020-12/schema",
  "$comment":         "https://schemas.mpai.community/AIF/V3.0/data/AIMMetadata.json",
  "$id":              "https://schemas.mpai.community/AIH1/V1.1/AIMs/NeuralNetworkModel.json",
  "title":            "Neural Network Model V1.1",

  "Identifier":       {"ImplementerID": "/* String assigned by IIDRA */", "ImplementationID": "/* String assigned by Implementer */", "AIMCode": "/* The AIM Instance ID of the L3 (its AIMInstID), given by the concatenation of the two strings ImplementerID and ImplementationID, in this order, with no space and no character between them. */"},
  "Header":           "AIF-AMM-V3.0",
  "AIMType":          "AIH-NNM-V1.1",

  "APIProfile":       "Basic",
  "Description":      "This AIM wraps a Neural Network Model and processes AIH Data with it: it takes AIH Data and gives the AIH Data resulting from the processing. The Neural Network Model learns as the AIM processes AIH Data. The AIM is what is exchanged: the Health Back End uploads it to the MPAI Store, the Health Front Ends download it, and a Health Front End returns it with the Neural Network Model trained; the AIM gives the Neural Network Model it holds for that. It may take a Neural Network Model to wrap or to update.",

  "InternalTypes":  [{"Name": "AIHData", "DataType": "AIH-AHD-V1.1"},
                     {"Name": "NNModel", "DataType": "AIP-MLO-V1.0"}],

  "ExternalPorts":  [{"Name": "AIHDataIn",  "Direction": "Input",                      "DataType": "AIH-AHD-V1.1", "Technology": "", "Protocol": "", "IsRemote": ""},
                     {"Name": "NNModelIn",  "Direction": "Input",  "IsOptional": true, "DataType": "AIP-MLO-V1.0", "Technology": "", "Protocol": "", "IsRemote": ""},
                     {"Name": "AIHDataOut", "Direction": "Output",                     "DataType": "AIH-AHD-V1.1", "Technology": "", "Protocol": "", "IsRemote": ""},
                     {"Name": "NNModelOut", "Direction": "Output",                     "DataType": "AIP-MLO-V1.0", "Technology": "", "Protocol": "", "IsRemote": ""}],

  "AIMLicence":          "/* AIM Licence offered by the Implementer (AIF-LIC-V3.0): Grant, Term, Updates, Payment, TermsURI - or omit it if the AIM needs no AIM Licence */",

  "Implementations":[{"ImplementationURI": "/* URI storing Implementation */", "BinaryName": "/* BinaryName */", "Architecture": "/* x86 | x86-64 | ARM | ARM64 | MIPS | RISC-V */", "OperatingSystem": "/* Windows | Linux | MacOS | Debian | Ubuntu | RedHat | Android | Zephyr | RTOS | Oniro | iOS */", "Version": "/* Version */", "Source": "/* AIMStorage | MPAIStore | AIMURL */", "Destination": "/* Destination URI */"}],

  "ResourcePolicies":[{"Name": "Memory",               "Minimum": "/* GB */",                                                                                                                 "Maximum": "/* GB */",                                                                                                                 "Request": "/* GB */"},
                     {"Name": "CPU:Number",           "Minimum": "/* integer, 0=all */",                                                                                                     "Maximum": "/* integer, 0=all */",                                                                                                     "Request": "/* integer, 0=all */"},
                     {"Name": "CPU:Class",            "Minimum": "/* Low | Medium | High */",                                                                                                "Maximum": "/* Low | Medium | High */",                                                                                                "Request": "/* Low | Medium | High */"},
                     {"Name": "GPU:Number",           "Minimum": "/* integer, 0=all */",                                                                                                     "Maximum": "/* integer, 0=all */",                                                                                                     "Request": "/* integer, 0=all */"}],

  "DataXMData":       {},

  "Documentation":  [{"Type": "Tutorial", "URI": "https://mpai.community/standards/mpai-aih/hsp/v1-1/"}]}
