get_reg_line
get_reg_line
Functions
| Name | Description |
|---|---|
| get_reg_line | Compute linear regression predictions for the provided training data. |
get_reg_line
get_reg_line.get_reg_line(X_train, y_train)Compute linear regression predictions for the provided training data.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| X_train | array-like or pd.DataFrame of shape (n_samples, n_features) | The training input samples. | required |
| y_train | array-like or pd.DataFrame of shape (n_samples,) or (n_samples, n_targets) | The target values (real numbers). | required |
Returns
| Name | Type | Description |
|---|---|---|
| y_pred | ndarray of shape (n_samples,) or (n_samples, n_targets) | The predicted values calculated from the linear least-squares fit |