How could we test the tabular training code discussed in chapter 1 of the book?
Should we pass a list as follows to the predict function:
learn.predict([1,82,‘Private’,132870,‘HS-grad’,9,‘Widowed’])?
Hey there! It’s great to see someone working on chapter 1 of the book. To test the tabular training code, passing a list to the predict function sounds like a good start. It might also be helpful to try out different combinations of values to see how they affect the predicted salary.I think online paystub creators use something similar. You can check them out. As far as I know, they can calculate taxes for you or at least the estimated tax cost based on your income. I’m sure there’s something that can even predict your income. Of course, it should be based on some data.