Driver function
()
| 126 | |
| 127 | |
| 128 | def main(): |
| 129 | """Driver function""" |
| 130 | data = collect_dataset() |
| 131 | |
| 132 | len_data = data.shape[0] |
| 133 | data_x = np.c_[np.ones(len_data), data[:, :-1]].astype(float) |
| 134 | data_y = data[:, -1].astype(float) |
| 135 | |
| 136 | theta = run_linear_regression(data_x, data_y) |
| 137 | len_result = theta.shape[1] |
| 138 | print("Resultant Feature vector : ") |
| 139 | for i in range(len_result): |
| 140 | print(f"{theta[0, i]:.5f}") |
| 141 | |
| 142 | |
| 143 | if __name__ == "__main__": |
no test coverage detected