FeatureDescriptor

Describes an input or output feature of a model (ILearningModelFeatureDescriptor)

DesktopOperating SystemUWPWin32Windows

Properties

Name Type Description
name string Feature name
description string Feature description
kind string The kind of feature (TensorFeatureDescriptor, ImageFeatureDescriptor, etc.)
isRequired boolean Whether the feature is required
shape array Tensor shape dimensions (for tensor features)
tensorDataType string Data type for tensor features
View JSON Schema on GitHub

JSON Schema

microsoft-windows-10-featuredescriptor-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FeatureDescriptor",
  "title": "FeatureDescriptor",
  "type": "object",
  "description": "Describes an input or output feature of a model (ILearningModelFeatureDescriptor)",
  "properties": {
    "name": {
      "type": "string",
      "description": "Feature name"
    },
    "description": {
      "type": "string",
      "description": "Feature description"
    },
    "kind": {
      "type": "string",
      "enum": [
        "Tensor",
        "Sequence",
        "Map",
        "Image"
      ],
      "description": "The kind of feature (TensorFeatureDescriptor, ImageFeatureDescriptor, etc.)"
    },
    "isRequired": {
      "type": "boolean",
      "description": "Whether the feature is required"
    },
    "shape": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "description": "Tensor shape dimensions (for tensor features)"
    },
    "tensorDataType": {
      "type": "string",
      "enum": [
        "Float",
        "Float16",
        "Double",
        "Int8",
        "UInt8",
        "Int16",
        "UInt16",
        "Int32",
        "UInt32",
        "Int64",
        "UInt64",
        "String",
        "Boolean"
      ],
      "description": "Data type for tensor features"
    }
  },
  "required": [
    "name",
    "kind"
  ]
}