Outputs

Each entry under outputs: properties: is one result shown in the Prediction panel. Its name must match one of the model's outputs exactly.

You choose what to show

Only the outputs you list appear on the page. Leave outputs out completely to show every output as raw values.

Output types

In peekml.yamlShows as
type: string, number or integerThe predicted value in large text, e.g. approved or 366,430
type: array with x-classesA bar per class with its probability; the most likely class in bold
No typeThe raw values, e.g. [0.7698, 0.2302]

Probabilities and x-classes

x-classes names each probability column, in the order the model returns them. It's required for type: array because the order can't be guessed. In scikit-learn, print(model.classes_) shows the order.

outputs:
  properties:
    label:
      type: string
      enum: [approved, rejected]      # optional: the values it can return
      description: Most likely outcome
    probabilities:
      type: array
      x-classes: [approved, rejected]  # required: column order

Settings

KeyMeaning
descriptionShown next to the output's name, e.g. "Estimated price in dollars".
enumOptional list of values the output can return. PeekML warns at upload if the test run returns something else.
x-classesClass name of each probability column, in order (required for type: array).