Several Features
Real predictions use more than one feature. The model then learns one coefficient per feature, in the same order as the columns of X. Each coefficient says how much the answer changes when that feature rises by one, with the others held still.
Examplepython
Quick check
With two features, how many coefficients does the model learn?
Your turn: write the code
Print the number of coefficients the model learned.
Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.
Tip: use the left and right arrow keys to move between lessons.