Non Linear, Regression, Data Science, Python, Least Squares.
carved out earlier. We’ll use the calc_exponentiated_mean() function which we had defined earlier but this time, we’ll pass in the fitted β_cap vector and X_test: predicted_counts=calc_exponentiated_mean(beta=result_nls_lm.x, x=X_test) Let’s plot the predicted versus the actual counts: