Skip to main content
POST
/
quantlib
/
ml
/
clustering
/
isolation-forest
Isolation Forest Anomaly Detection
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/ml/clustering/isolation-forest \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "X": [
    [
      1.2,
      0.5
    ],
    [
      1.3,
      0.6
    ],
    [
      1.1,
      0.5
    ],
    [
      10,
      10
    ]
  ],
  "n_trees": 100,
  "contamination": 0.05
}
'
{
  "success": true,
  "data": {}
}

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

Feature matrix (transaction features, behavior patterns)

Example:
[
[1.2, 0.5],
[1.3, 0.6],
[1.1, 0.5],
[10, 10]
]
n_trees
integer
default:100

Number of isolation trees

Example:

100

contamination
number
default:0.1

Expected proportion of outliers (0-0.5)

Example:

0.05

Response

Anomaly detection results

success
boolean
Example:

true

data
object

Anomaly scores and predictions