Closed epogrebnyak closed 3 years ago
The estimate_betas()
function you can probably mount back to LinearRegression()
for similar interface across fucntions.
Another idea is probably write a small comment on why classes with .fit()
and .predict()
would are needed (similar to scikit-learn API, uniform across many models, etc)
Congratulations on a releasing the well structured book! Neat use of Jupyter book!
I thought of use of no-constructor classes in your code - good for combining methods together, but not really a great pattern for starting programming - not to replicate when a learner just starts writing Python code.
I understand this is an idiom throughout the book, but if you consider restructuring the code at some point, there can be a more functional representation: