This message was posted on behalf of Intel Corporation
I went to your code and the ML lesson you referred.
I have attached an image with some plots from your code and the lesson.
1) In plot 4 (From lesson) - We are plotting same data with linear, ridge and lasso regression.
2) In plots 1,2 and 3, we are plotting different data with linear regression only:
Plot 1 - Plotting percent of wealth of top 10%
Plot 2 - Plotting percent of wealth who are between 50% to 90%.
Plot 3 - Plotting percent of wealth of bottom 50%.
Finally, in your example you are combining 3 plots, which are coming as expected.
Plots.png 637.6 K