Skip to main content
POST
/
v1
/
models
/
{model_id}
/
patterns
/
{tracker_id}
/
transform
Transform Patterns
curl --request POST \
  --url https://api.example.com/v1/models/{model_id}/patterns/{tracker_id}/transform \
  --header 'Content-Type: application/json' \
  --data '
{
  "samples": [
    [
      123
    ]
  ],
  "feature_names": [
    "<string>"
  ]
}
'
{
  "labels": [
    "<string>"
  ],
  "matrix": [
    [
      true
    ]
  ]
}

Headers

authorization
string | null
refresh-token
string | null

Path Parameters

model_id
string<uuid>
required
tracker_id
string
required

Body

application/json

Body shared by /transform, /distribution, and /partition.

samples
((number | string | boolean | null)[])[]
required

2D array, shape (n_samples, n_features). Cells may be numeric, string (categorical), or bool.

feature_names
string[]
required

Column names. Must include every column the tracker's frozen schema requires (extras are ignored).

Response

Successful Response

Boolean match matrix aligned to labels.

labels
string[]
required
matrix
boolean[][]
required

Shape (n_samples, n_patterns); cell [i, j] true iff sample i matches pattern labels[j].