Get predictions with minimum error for each training data
(training_data: np.mat, mcol_b: np.mat, tau: float)
| 78 | |
| 79 | |
| 80 | def get_preds(training_data: np.mat, mcol_b: np.mat, tau: float) -> np.ndarray: |
| 81 | """ |
| 82 | Get predictions with minimum error for each training data |
| 83 | """ |
| 84 | ypred = local_weight_regression(training_data, mcol_b, tau) |
| 85 | return ypred |
| 86 | |
| 87 | |
| 88 | def plot_preds( |
no test coverage detected