Question: this is the next question Q4b. (5 pts) Use the linear regression object that you obtained in 4a to predict the height of an individual
this is the next question Q4b. (5 pts) Use the linear regression object that you obtained in 4a to predict the height of an individual whose weight is 70kg (with lr.predict). Print out the predicted height. (As in 4a, make the value 70 a dataframe or a 1x1 numpy 2d array. You'll likely see a warning that says the data frame does not have a feature name - you can either ignore the warning, to copy the .columns attribute from the dataframe X to the new single-element dataframe.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
