Features Schema Reference

See below for a description of the features schema used to generate the demo form. The web app section has examples and use cases.

# Input features provided as an array in the same order
# the model `predict` function expects.
  # One Javascript object per input feature.
  # A Javascript object is similar to a Python `dict`
  # as it provides access to set of named key-value pairs.
    "name": "string", # required
    "default": <string|integer|float>, # required - form field type is inferred from the type
    "options": [array of <string|integer|float>], # optional - renders a select box if provided
    "multiple": true, # optional - if `options` is provided renders a multi-select