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.yaml | Shows as |
|---|---|
type: string, number or integer | The predicted value in large text, e.g. approved or 366,430 |
type: array with x-classes | A bar per class with its probability; the most likely class in bold |
No type | The 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 orderSettings
| Key | Meaning |
|---|---|
description | Shown next to the output's name, e.g. "Estimated price in dollars". |
enum | Optional list of values the output can return. PeekML warns at upload if the test run returns something else. |
x-classes | Class name of each probability column, in order (required for type: array). |