Category Archives: Testing

Multivariate Linear Regression – Part 3 – Refactoring – Python ML – OOP Basics

Goal of this post:

  1. Move beyond single linear regression into multiple linear regression by utilizing gradient descent
  2. Refactor using inheritance
  3. Reconfigure our pytest to include the general case

What we are leaving for the next post:

  1. Add principal component analysis
  2. Refactor using inheritance
  3. Add new tests via pytest
Continue reading

Single Linear Regression – Part 2 – Testing – Python ML – OOP Basics

We have now entered part 2 of our series on object oriented programming in Python for machine learning. If you have not already done so, you may want to check out the previous post –> Part 1.

Goal of this post:

  1. Fit a model to find coefficients
  2. Find the RMSE, R^2, slope and intercept of the model
  3. Test our model using pytest

What we are leaving for the next post:

  1. Refactoring and utilizing inheritance
  2. Utilizing gradient descent
  3. Updating and adding tests
Continue reading