Skip to main content
POST
/
quantlib
/
ml
/
credit
/
performance
Credit Model Performance Evaluation
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/ml/credit/performance \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "y_true": [
    0,
    0,
    1,
    1,
    0,
    1,
    0,
    1
  ],
  "y_score": [
    0.12,
    0.23,
    0.87,
    0.92,
    0.15,
    0.78,
    0.09,
    0.85
  ]
}
'
{
  "success": true,
  "data": {
    "auc": 0.878,
    "ks_statistic": 0.623,
    "gini": 0.756,
    "accuracy": 0.875
  }
}

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]
y_score
number[]
required

Predicted probabilities or risk scores

Example:
[
0.12,
0.23,
0.87,
0.92,
0.15,
0.78,
0.09,
0.85
]

Response

Performance metrics

success
boolean
Example:

true

data
object