Transform Feature
transform_featureApplies a mathematical transformation to a numerical column to reduce skewness, optionally adding a new column or replacing the original, and reports before/after skewness.
Instructions
Apply a mathematical transformation to one numerical column, usually to reduce skewness. Args: dataset_id (str): ID of a dataset or of a split. column (str): Numerical column to transform. method (str): One of "sqrt" (needs values >= 0), "square", "cube", "reciprocal" (no zeros), "abs", "cbrt" (cube root, works with negatives), "signed_log1p" (log that keeps the sign, works with negatives), "yeo_johnson" (fitted power transform, works with negatives), "boxcox" (fitted, needs values > 0). Fitted methods learn their parameters from the training rows only. new_column (str, optional): Name of the new column. Default is "_". replace (bool): Overwrite the original column instead of adding a new one. Default is False. Returns: dict: The new column and the skewness before and after (measured on the training rows).
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>",
"column": "<column>",
"method": "<method>"
},
"name": "transform_feature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| column | Yes | ||
| method | Yes | ||
| replace | No | ||
| dataset_id | Yes | ||
| new_column | No |