Skip to main content
POST
/
quantlib
/
ml
/
validation
/
calibration-report
Full Calibration Report
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/ml/validation/calibration-report \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "y_true": [
    0,
    0,
    1,
    1,
    0,
    1,
    0,
    1,
    0,
    0
  ],
  "y_score": [
    0.12,
    0.18,
    0.73,
    0.89,
    0.22,
    0.81,
    0.15,
    0.88,
    0.09,
    0.14
  ]
}
'
{
  "success": true,
  "data": {
    "brier_score": 0.123,
    "hosmer_lemeshow_statistic": 8.45,
    "hosmer_lemeshow_pvalue": 0.391,
    "spiegelhalter_z": 0.67
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
y_true
enum<integer>[]
required

True binary labels

Available options:
0,
1
Example:
[0, 0, 1, 1, 0, 1, 0, 1, 0, 0]
y_score
number[]
required

Predicted probabilities

Example:
[
0.12,
0.18,
0.73,
0.89,
0.22,
0.81,
0.15,
0.88,
0.09,
0.14
]

Response

Calibration metrics

success
boolean
Example:

true

data
object