run_linear_regression
Fit an ordinary least squares linear regression model to data. Specify the dependent variable and independent variables from a CSV file to get regression results.
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"].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_col | Yes | ||
| data_file_path | Yes | ||
| predictor_cols | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |