Тёмный

Predict Bitcoin Prices With Machine Learning And Python [W/Full Code] 

Dataquest
Подписаться 62 тыс.
Просмотров 44 тыс.
50% 1

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 66   
@DanielGarcia-uq8yz
@DanielGarcia-uq8yz 2 года назад
For anyone stuck trying to merge the wiki and btc history data frames, if you get a time-zone error (Cannon merge tz-naive with tz-aware), you will need to edit the datetime index of the btc history data frame after converting it to a datetime object to make it time-zone naive. Here was my fix: btc.index = pd.to_datetime(btc.index) [Original Code from Vik] btc.index = btx.index.tz_localize(None) [Fix to make index time-zone naive]
@adityagavali3158
@adityagavali3158 Год назад
eres una leyenda, Muchas Gracias tio
@brianmcclain1916
@brianmcclain1916 8 месяцев назад
is "btx" a typo..you must mean "btc"
@furinfo5158
@furinfo5158 3 месяца назад
plz dont invest in crypto especialy waqar zaka group or u will be destroying ur life
@atenea3930
@atenea3930 2 года назад
For those stuck in cell 7, be aware that one data entry has no comment (20:44, 10 September 2022‎ Staxringold) You have to delete that entry with "del revs[x]" being x the position. It depends on when you obtain the data.
@Dataquestio
@Dataquestio 2 года назад
Thanks for finding the issue! Replacing the line `comment = rev["comment"]` with `comment = rev.get("comment", "")` should also work. This will just fill in the comment with an empty string if it can't be found.
@ch-qk8dk
@ch-qk8dk Год назад
can you give me the exact code?
@atenea3930
@atenea3930 Год назад
@@ch-qk8dk the Dataquest's solution is better, it's in my comment
@ch-qk8dk
@ch-qk8dk Год назад
@@atenea3930 okok thanks
@clusterbyblocks
@clusterbyblocks 9 месяцев назад
Aren't you leaking data by using the Close Value as a predictor? I mean the algorithm just have to look at this to predict next day. Can you reason about it?
@atenea3930
@atenea3930 2 года назад
I also found that rolling by 15 instead of 30 increases the accuracy in 0.5 points
@Theskiescreator
@Theskiescreator Год назад
@e7eec37d79c did you manage to get it to work?
@abhinavab5673
@abhinavab5673 Год назад
line 56:Cannot join tz-naive with tz-aware DatetimeIndex.Any solution?
@ashanbandaranayeke9344
@ashanbandaranayeke9344 4 месяца назад
hi! enjoying making this great video, it's the first time I incorporated sentiment analysis at all (in my ML journey). *I'm having a problem with the history attribute/method of yf!* Anyone else?
@cacus_
@cacus_ Год назад
awesome videos! keep it up! have you tried using transformers for timeseries? also, in your experience, what's your opinion on training using technical indicators (let's say RSI, CCI, stochastic, etc) and VIX, rates (could be us 10 years yield for example)?. an idea I'm exploring is trying to figure out how to use also the rolling correlation with a set of assets (let's say you are fiting for QQQ comparing or correlating with dxy, gold or any other asset to check if the rolling correlation impacts in any way)... take care!
@wmgallo1
@wmgallo1 2 года назад
the mwclient somehow it gives an error
@Who-u9e
@Who-u9e 2 месяца назад
i am trying your tutorial in 2024 and yfinance shows that it has no data regarding bitcoin
@sunday-thequant8477
@sunday-thequant8477 Год назад
are you putting look ahead bias using trend variable, because you sum the target and in the current bar you dont have the bar closed so in real time wont have the trend predictor
@ahmetselmanayberkbozkurt6898
@ahmetselmanayberkbozkurt6898 9 месяцев назад
if you had other variables such as indices, commodity prices would you need to take differences of the variables in order to make the dataset stationary?
@ajaychhetri482
@ajaychhetri482 5 месяцев назад
How much for this project sir ?
@nadendlapranaychowdary7703
@nadendlapranaychowdary7703 6 месяцев назад
Can you send the document of this
@LXS1121
@LXS1121 3 месяца назад
how can we show the predection in 54 rather than 0.54
@Justme-xg7sl
@Justme-xg7sl Месяц назад
Thanks
@mahmoodhossainfarsim6292
@mahmoodhossainfarsim6292 2 года назад
Great one Vik. please keep them coming
@nguyenduyta7136
@nguyenduyta7136 2 года назад
Great sir! Thank so much
@ricebarbie
@ricebarbie 9 месяцев назад
Thank you for the video. It helped me alot better than my boot camp course.
@chriscoleman1818
@chriscoleman1818 2 года назад
Would/Can you build me one for a certain crypto coin?
@user-gu4dt4tn8q
@user-gu4dt4tn8q Год назад
Vik, thanks for creating these and sharing your knowledge.
@fsDragonDKlion3000
@fsDragonDKlion3000 Год назад
hello, im trying to run cell 7 and it takes forever to load, i tried the different edits below but it still won't work, is there something else you can advise me to replace it with?
@fsDragonDKlion3000
@fsDragonDKlion3000 Год назад
just realized that its because it's trying to pass through +17000 comments, other than cutting the data (revs) into less than 1000 records, is there a way to process this any faster?
@it_s_just_me1030
@it_s_just_me1030 Год назад
Awesome video, I learned a lot. Thanks!
@santoshpatil1029
@santoshpatil1029 Год назад
Are you using Jupyter notebook??
@Sake679
@Sake679 Год назад
Hey, mine is not predicting next day
@pranitchand
@pranitchand Год назад
Amazing video. Thank you so much for sharing, I was able to modify it and develop it further to predict the price of Ethereum! Thanks for the inspiration.
@Why_interested
@Why_interested 7 месяцев назад
Can u provide me help regarding final year project on bitcoin price prediction in btech
@kwokcheongyeung665
@kwokcheongyeung665 2 года назад
I can't proceed further in appending (find_sentiment(comment)) to an empty dictionary edit = {}. It keeps loading instead. Can someone help to solve? Thanks!
@Dataquestio
@Dataquestio 2 года назад
Hi Kwok - does the find_sentiment function itself work? It may be that the transformers package isn't installed or configured correctly.
@shivanshyadav1041
@shivanshyadav1041 9 месяцев назад
you are taking yesterday's closing price as tomorrow's closing price that does not make sense...
@mariajanechan5906
@mariajanechan5906 Год назад
Awesome!
@yussufolarinde8329
@yussufolarinde8329 2 года назад
Can I try out these codes on pycharm?
@Dataquestio
@Dataquestio 2 года назад
Yes, you can use any IDE to complete this project.
@munchy5667
@munchy5667 2 года назад
is it possible to make a multi step forcast with classification models such as this?
@Dataquestio
@Dataquestio 2 года назад
What is a multi step forecast? Do you mean a forecast multiple days ahead? If so, then yes, just change the .shift(-1) to the number of days ahead you want to predict.
@munchy5667
@munchy5667 2 года назад
@@Dataquestio yes forcasting for multiple days ahead. In your video your making a prediction for tommorow. What I wanted was to know if I can make predictions for the next 3 days rather than changing the model with multiple targets
@ASH8376
@ASH8376 Год назад
@@Dataquestio I changed the shift-1 to shift-5 what does it show me , prediction for next 5 days ?
@ASH8376
@ASH8376 Год назад
I saw the precision score went up to .70 , what does that mean ?
@dbarbedillo
@dbarbedillo 2 года назад
Hi Vik! Hope everything is well! On code cell 7 I keep getting KeyError: 'comment' (The find_sentiment function is working) Would really appreciate some help to solve this error :)
@Dataquestio
@Dataquestio 2 года назад
It looks like calling `page.revisions()` isn't downloading the comment for you for some reason. Try running `page.revisions(prop='ids|timestamp|flags|comment|user')` instead to see if that helps.
@dbarbedillo
@dbarbedillo 2 года назад
​@@Dataquestio Thank you very much! I greatly appreciate your help!
@dbarbedillo
@dbarbedillo 2 года назад
Solved the issue the following way: (code cell 7) edits = {} for rev in revs: date = time.strftime("%Y-%m-%d", rev["timestamp"]) if date not in edits: edits[date] = dict(sentiments=list(), edit_count=0) edits[date]["edit_count"] += 1 for k, v in rev.items(): if k == 'comment': comment = v edits[date]["sentiments"].append(find_sentiment(comment))
@Dataquestio
@Dataquestio 2 года назад
That fix looks great. Someone else investigated and found that there is one revision missing the comment key for some reason. This revision is from after I created the original project, so I didn't see it. You could also replace the line `comment = rev["comment"]` with `comment = rev.get("comment", "")`. This will just fill in the comment with an empty string if it can't be found.
@bryanbuiser2953
@bryanbuiser2953 Год назад
@@dbarbedillo How long did it take to run that part of the code?
@aarondelarosa3146
@aarondelarosa3146 Год назад
Where's the plot?
@Theskiescreator
@Theskiescreator Год назад
did you manage to get it to work?
@slava9298
@slava9298 Год назад
also got stuck on cell 7 :( the fixes from the comments don't help
@Theskiescreator
@Theskiescreator Год назад
did you manage to get it work?
@dongjunpark7006
@dongjunpark7006 2 года назад
For the line "if len(edits[key]["sentiments"]) > 0:", I got an error saying that "object of type 'float' has no len()" May I kindly ask how to solve this problem?
@Dataquestio
@Dataquestio 2 года назад
Hi Dong - the "sentiments" key should be a list, but it looks like it is a single number. This would happen if you assigned the sentiment value directly to the key instead of appending to the list.
@mytube1000javed
@mytube1000javed 11 месяцев назад
😂ha ha ha. Very funny. Kuch bhi. So u r going to predict the price of Bitcoin. 😅. Very funny. It moves according to whim and fancy of Elon Musk and other big players. Your ML will shamefully fail. So don't even give a try. Anyways great conlmexy😂.
@JoaoRodrigues-yf7xc
@JoaoRodrigues-yf7xc 6 месяцев назад
Mate, you just arrived on a spaceship from Mars and are a little bit lost... The point of this is to learn how to use ML and to code with jupyterlab. It is in no way focused on actually predicting btc moves.
Далее
Bitcoin Sentiment Analysis Using Python & Twitter
29:42
Gradient Descent From Scratch In Python
42:39
Просмотров 18 тыс.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Просмотров 311 тыс.
I Analyzed My Finance With Local LLMs
17:51
Просмотров 483 тыс.
How I'd Learn AI in 2024 (if I could start over)
17:55