run_linear_regression
Run ordinary least squares linear regression on a dataset. Specify a target column and predictor columns to model relationships.
Instructions
Runs an OLS Linear Regression. target_col is the dependent variable (Y). predictor_cols is a list of independent variables (X). CRITICAL: predictor_cols MUST be a valid JSON array of strings, e.g., ["col1", "col2"].
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": {
"data_file_path": "<data_file_path>",
"target_col": "<target_col>",
"predictor_cols": "<predictor_cols>"
},
"name": "run_linear_regression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_col | Yes | ||
| data_file_path | Yes | ||
| predictor_cols | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |