Skip to main content
POST
/
quantlib
/
ml
/
preprocessing
/
scale
Data Scaling (Z-Score, MinMax, Robust)
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/ml/preprocessing/scale \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "X": [
    [
      100,
      0.5
    ],
    [
      200,
      1.3
    ],
    [
      150,
      0.9
    ]
  ],
  "method": "zscore"
}
'
{
  "success": true,
  "data": {
    "scaled": [
      [
        -1.22,
        -1
      ],
      [
        1.22,
        1
      ],
      [
        0,
        0
      ]
    ],
    "method": "zscore"
  }
}

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 to scale

Example:
[[100, 0.5], [200, 1.3], [150, 0.9]]
method
enum<string>
default:zscore

Scaling method

Available options:
zscore,
minmax,
robust
Example:

"zscore"

Response

Scaled data

success
boolean
Example:

true

data
object