Non Linear, Regression, Data Science, Python, Least Squares.
numpy vector we will construct will be of the transpose shape (12,) which suits us as we will have to multiply the X_train with this vector and X_train is of shape (661, 12): num_params = len(X_train.columns) beta_initial = np.ones(num_params) Finally, it is time to use the least_squares() method