Skip to main content
POST
/
quantlib
/
ml
/
metrics
/
classification
Classification Evaluation Metrics
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/ml/metrics/classification \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "y_true": [
    0,
    0,
    1,
    1,
    0,
    1,
    0,
    1
  ],
  "y_pred": [
    0,
    0,
    1,
    1,
    0,
    0,
    0,
    1
  ]
}
'
{
  "success": true,
  "data": {
    "accuracy": 0.875,
    "precision": 1,
    "recall": 0.75,
    "f1_score": 0.857
  }
}

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 class labels

Available options:
0,
1
Example:
[0, 0, 1, 1, 0, 1, 0, 1]
y_pred
enum<integer>[]
required

Predicted class labels

Available options:
0,
1
Example:
[0, 0, 1, 1, 0, 0, 0, 1]

Response

Classification metrics

success
boolean
Example:

true

data
object