Hi DQ Community,
I was able to get mae down to 11.8 by using only 3 features. Adding any other features I created, only increase mae . My next improvement would be to add some Leading Economic Indicators as features and try to fine tune my model. I would love to hear your feedback.
Thanks,
Leo
https://app.dataquest.io/m/65/guided-project%3A-predicting-the-stock-market/7/next-steps
1 Like
Hi, thanks for sharing your project!
I think Iβve found the mistake in your code when you were calculating features.
For example, when you are calculating average price from the past 5 days, you donβt need to include data from the current day, otherwise, the features would have a strong correlation with the target column (or in other words: features would have an insight about the target column).
So, when you calculate the average price from the past 5 days for date=β1950-01-10β, you need to use βclose priceβ from dates[β1950-01-03β, β1950-01-04β, β1950-01-05β, β1950-01-06β, β1950-01-09β]. But In your project, you can see that the first day when your code calculated the βAvg Price 5 Dayβ is β1950-01-09β instead β1950-01-10β.
Hope that helps!
1 Like