Scale Features
scale_featuresScales numerical dataset columns for ML with standard, min-max, robust, or max-abs methods. Fit the scaler on a training split and specify columns to avoid scaling targets.
Instructions
Scale numerical columns. Recommended: use a split_id so the scaler is fit on training data only.
If a dataset id is used, pass columns explicitly so the target column is not scaled.
Args:
dataset_id (str): ID of a dataset or of a split.
columns (list[str], optional): Numerical columns to scale. If omitted, all numerical columns.
method (str): "standard" (mean 0, std 1), "minmax" (0 to 1), "robust"
(median/IQR, good with outliers) or "maxabs" (divide by max absolute value).
Returns:
dict: Scaled columns and the fitted scaler parameters.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataset_id": "<dataset_id>"
},
"name": "scale_features"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | standard | |
| columns | No | ||
| dataset_id | Yes |