Skip to content
OATSCHEMA

Docs / Schemas / regression / 0.5.0

Regression 0.5.0

Represent continuous numerical predictions. Supports point estimates, confidence intervals, and time-series forecasting.

This is an older version of regression.

The latest version is 0.8.0. Releases before 0.7.0 use the $id https://dorsalhub.com/schemas/open/regression and are served by DorsalHub.

$id
https://dorsalhub.com/schemas/open/regression
Latest
https://oatschema.org/regression
Versions
Source
v0.5.0 on GitHub

Schema

regression.json Raw
{    "x-license": {        "id": "Apache-2.0",        "notice": "Copyright 2025-2026 Dorsal Hub LTD",        "url": "https://github.com/dorsalhub/open-validation-schemas/blob/main/LICENSE"    },    "$schema": "https://json-schema.org/draft/2020-12/schema",    "$id": "https://dorsalhub.com/schemas/open/regression",    "title": "Regression",    "version": "0.5.0",    "description": "Represent continuous numerical predictions. Supports point estimates, confidence intervals, and time-series forecasting.",    "type": "object",    "properties": {        "target": {            "type": "string",            "description": "The name of or a reference to the variable being predicted (e.g., 'temperature', 'stock_price').",            "maxLength": 256        },        "unit": {            "type": "string",            "description": "The unit of measurement.",            "maxLength": 32        },        "producer": {            "type": "string",            "description": "The creator (model, tool or author) of this regression.",            "maxLength": 1024        },        "score_explanation": {            "type": "string",            "description": "Explanation of the quality score metric (e.g. 'R-squared' or 'Model Confidence').",            "maxLength": 256        },        "points": {            "type": "array",            "description": "The regression data points. A single item represents a point estimate; multiple items represent a time series or distribution.",            "maxItems": 10000,            "items": {                "type": "object",                "properties": {                    "value": {                        "type": [                            "number",                            "null"                        ],                        "description": "The predicted or sampled value."                    },                    "statistic": {                        "type": "string",                        "description": "The statistical nature of this value.",                        "enum": [                            "mean",                            "median",                            "mode",                            "min",                            "max",                            "quantile",                            "sample"                        ]                    },                    "quantile_level": {                        "type": "number",                        "description": "If statistic='quantile', this defines the level (e.g., 0.95).",                        "minimum": 0,                        "maximum": 1                    },                    "timestamp": {                        "type": "string",                        "format": "date-time",                        "maxLength": 128,                        "description": "The specific time this prediction applies to."                    },                    "interval_lower": {                        "type": "number",                        "description": "The lower bound of the confidence interval."                    },                    "interval_upper": {                        "type": "number",                        "description": "The upper bound of the confidence interval."                    },                    "score": {                        "type": "number",                        "description": "A quality score for this specific point.",                        "minimum": 0,                        "maximum": 1                    },                    "attributes": {                        "type": "object",                        "description": "Arbitrary metadata relevant to this point.",                        "maxProperties": 16,                        "additionalProperties": {                            "anyOf": [                                {                                    "type": "string",                                    "maxLength": 1024                                },                                {                                    "type": "number"                                },                                {                                    "type": "boolean"                                },                                {                                    "type": "null"                                }                            ]                        }                    }                },                "required": [                    "value"                ],                "additionalProperties": false            }        },        "attributes": {            "type": "object",            "description": "Arbitrary metadata relevant to this regression.",            "maxProperties": 16,            "additionalProperties": {                "anyOf": [                    {                        "type": "string",                        "maxLength": 1024                    },                    {                        "type": "number"                    },                    {                        "type": "boolean"                    },                    {                        "type": "null"                    }                ]            }        }    },    "required": [        "points"    ],    "allOf": [        {            "if": {                "properties": {                    "points": {                        "maxItems": 0                    }                }            },            "then": {                "required": [                    "producer"                ]            }        }    ],    "additionalProperties": false}

Fields

  • target string

    The name of or a reference to the variable being predicted (e.g., 'temperature', 'stock_price').

    • at most 256 characters
  • unit string

    The unit of measurement.

    • at most 32 characters
  • producer string

    The creator (model, tool or author) of this regression.

    • at most 1024 characters
  • score_explanation string

    Explanation of the quality score metric (e.g. 'R-squared' or 'Model Confidence').

    • at most 256 characters
  • points array of object required

    The regression data points. A single item represents a point estimate; multiple items represent a time series or distribution.

    • at most 10000 items
    • value ['number', 'null'] required

      The predicted or sampled value.

    • statistic string

      The statistical nature of this value.

      Allowed values: "mean", "median", "mode", "min", "max", "quantile", "sample"

    • quantile_level number

      If statistic='quantile', this defines the level (e.g., 0.95).

      • 0 to 1
    • timestamp string

      The specific time this prediction applies to.

      • at most 128 characters
      • format date-time
    • interval_lower number

      The lower bound of the confidence interval.

    • interval_upper number

      The upper bound of the confidence interval.

    • score number

      A quality score for this specific point.

      • 0 to 1
    • attributes object

      Arbitrary metadata relevant to this point.

      • at most 16 properties
      • * string | number | boolean | null

        Any other key.

        • string: at most 1024 characters
  • attributes object

    Arbitrary metadata relevant to this regression.

    • at most 16 properties
    • * string | number | boolean | null

      Any other key.

      • string: at most 1024 characters

Rules:

  • When points is empty, producer is required.
    Show the JSON Schema
    {  "if": {    "properties": {      "points": {        "maxItems": 0      }    }  },  "then": {    "required": [      "producer"    ]  }}

Copyright 2025-2026 Dorsal Hub LTD. Licensed under Apache-2.0.