Hello, i take data from alphavantage for chosen share values for choosen day : Date, Open, High, Low, Close, Volume.
And i try to perform simple comparision between Linear Regression and Random Forest approaches to guess next day value.
It looks like it works but graphs are strange:
1. For winning model linear regression i have this:![[Image: myplot1.png?rlkey=duven5s81pidp8he9mccdk...mx9n2&dl=0]](https://www.dropbox.com/scl/fi/p2204m2drblle1et7brip/myplot1.png?rlkey=duven5s81pidp8he9mccdkl3c&st=vocmx9n2&dl=0)
i don't understand why i have many y values for each x value, i expected to have only one line for actual and one line for predicted
2. And for next 10 days prediction i have this :
first predicted point seems to be ok, but then it goes everywhere and i dont understand why
Could you please help me?
Thank you
ml-002.py (Size: 5.57 KB / Downloads: 1)
And i try to perform simple comparision between Linear Regression and Random Forest approaches to guess next day value.
It looks like it works but graphs are strange:
1. For winning model linear regression i have this:
![[Image: myplot1.png?rlkey=duven5s81pidp8he9mccdk...mx9n2&dl=0]](https://www.dropbox.com/scl/fi/p2204m2drblle1et7brip/myplot1.png?rlkey=duven5s81pidp8he9mccdkl3c&st=vocmx9n2&dl=0)
i don't understand why i have many y values for each x value, i expected to have only one line for actual and one line for predicted
2. And for next 10 days prediction i have this :
![[Image: myplot2.png?rlkey=503lm9wcikr6y4pdjooijq...nq57p&dl=0]](https://www.dropbox.com/scl/fi/9hhs582ewlh8dj0qao0ud/myplot2.png?rlkey=503lm9wcikr6y4pdjooijqecz&st=x8onq57p&dl=0)
first predicted point seems to be ok, but then it goes everywhere and i dont understand why
Could you please help me?
Thank you