Тёмный

Automate Stocks and Crypto Research with Python and Deep Learning | Full Python Project 

Nicholas Renotte
Подписаться 278 тыс.
Просмотров 19 тыс.
50% 1

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

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 110   
@alexvettithanam3179
@alexvettithanam3179 2 года назад
This is the best underrated video in youtube about transformers. I really like your explanation and your approach. All the best.
@JehadAlHussain602
@JehadAlHussain602 3 года назад
Awesome Tutorial .. just starting on programing and your channel is definitely a gem
@NicholasRenotte
@NicholasRenotte 3 года назад
Thanks so much @Jay, glad you're enjoying it!
@gonzalobaezcamargo2210
@gonzalobaezcamargo2210 3 года назад
Impressive, thank you for sharing! Initially I struggled with scraping due to cookies configuration, after some research I found Google News API which worked like a charm with your code. Thanks again!
@NicholasRenotte
@NicholasRenotte 3 года назад
Awesome work and solid suggestion @Gonzalo!
@steyren
@steyren 3 года назад
Amazing video man. I watched couple of them from your channel already and you really know how to transfer your knowledge to viewers. Keep up the good work!
@NicholasRenotte
@NicholasRenotte 3 года назад
Thanks so much @Bartosz, that's such an awesome thing to say!
@Er1ku
@Er1ku 2 года назад
Thank you for the well-done video. I am excited to start on this project!
@vectorautomationsystems
@vectorautomationsystems 8 месяцев назад
You got talent man! Pure talent! Regards from Nairobi, Kenya
@pauliusztin
@pauliusztin 3 года назад
I learn about a lot of cool tools from you. Great stuff!
@NicholasRenotte
@NicholasRenotte 3 года назад
Awesome stuff @Paul, glad you're enjoying it!
@PriteshRPatel-lr5uh
@PriteshRPatel-lr5uh 6 месяцев назад
What a wonderful video!!! This was exactly what I was looking for. I do wonder if running the sentiment analysis on the summary was the best approach...perhaps running it on the full article may have been better? Regards from Orange County, California USA!!
@jordan6921
@jordan6921 3 года назад
I'm liking this longer style, tomorrow I'll be able to follow a tutorial like this a lot easier! Thanks!! (Did you do any analysis on whether the positive or negative sentiment actually leads to an increase or decrease in price? It may be an interesting add-on!)
@NicholasRenotte
@NicholasRenotte 3 года назад
Agreed, literally as I posted it I thought it might be useful to have article timestamps and matching prices at those dates! Might add it onto a future video!
@guyincognito1985
@guyincognito1985 3 года назад
@@NicholasRenotte Love the timestamps!
@NicholasRenotte
@NicholasRenotte 3 года назад
@@guyincognito1985 ohhhh man, I didn't even realise it was a thing until one day I saw I had this random timestamp 🤣. I'm going a little crazy with them now! My OCD has definitely been triggered though because they're not all equal sizes. 😅
@pwdrhrn
@pwdrhrn Год назад
Incredible.
@guyincognito1985
@guyincognito1985 3 года назад
Thanks. I enjoyed watching this longer video. It would be interesting to use BeautifulSoup to scrape the web page title (whatever is in h1/title tag) and compare that to what the NLP summarization came back with. Thanks for making these videos!
@NicholasRenotte
@NicholasRenotte 3 года назад
Ohhhhh, that would've actuall been awesome! Anytime, anything else you'd like to see @Guy Incognito?
@krishnamore2281
@krishnamore2281 3 года назад
really loved this project
@NicholasRenotte
@NicholasRenotte 3 года назад
So glad you enjoyed it @Krishna!
@phunguyentan3905
@phunguyentan3905 2 года назад
This is awesome! easy to understand thank you very much!
@jaimeluna99
@jaimeluna99 Год назад
I love your videos, thank you so much. Please post more videos with this topic.
@tomy.trades
@tomy.trades 3 года назад
This is awesome! Would love to see the sentiment analysis applied on a trading algorithm video
@NicholasRenotte
@NicholasRenotte 3 года назад
Yesss, that's the plan, I'm going to hopefully combine it with this: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-D9sU1hLT0QY.html
@tomy.trades
@tomy.trades 3 года назад
@@NicholasRenotte you would be the real hero if you do that! Technical + sentiment analysis is really powerful on stock predictions
@NicholasRenotte
@NicholasRenotte 3 года назад
@@tomy.trades pretty pumped for it! Stay tuned!
@tomy.trades
@tomy.trades 3 года назад
@@NicholasRenotteCool! Looking forward for part 3 :)
@namangoyal8477
@namangoyal8477 2 года назад
Superb!
@aaronschwartzman2926
@aaronschwartzman2926 2 года назад
Love your channel! Incredible
@robertc6343
@robertc6343 3 года назад
Wow. Mega interesting material and such an impressive way of communicating. You are a truly gifted teacher Nick. I’m so glad I found your channel! 👍 subscribed and plan to go through all you videos.
@NicholasRenotte
@NicholasRenotte 3 года назад
Thanks sooo much @Robert C!!
@robertc6343
@robertc6343 3 года назад
@@NicholasRenotte you’re very welcome Nick. Btw. Is there a continuation of this tutorial? We’re summarized the news, now, how to apply it to stock market time series?
@NicholasRenotte
@NicholasRenotte 3 года назад
@@robertc6343 not yet but there will be, the plan is to combine it with this series: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-D9sU1hLT0QY.html
@robertc6343
@robertc6343 3 года назад
@@NicholasRenotte cool👍🏻 thanks a lot.
@bonvivant7398
@bonvivant7398 2 года назад
You are a very good teacher :) Thank you for your effort, really appreciate it!
@Anyone.c
@Anyone.c 2 года назад
Man the work you put in for every single one of your videos is just 🔥🔥🔥 extraordinary man! I love your videos! Thank you so much for making such detailed videos! Your videos stand out💯 More power to you!💫
@ErolErten
@ErolErten Год назад
excellent tutorial
@sayelfujael6378
@sayelfujael6378 3 года назад
Thank you Nicholas
@NicholasRenotte
@NicholasRenotte 3 года назад
Anytime @Sayel, glad you enjoyed it!
@rcshivaji17
@rcshivaji17 3 года назад
Hey man...Again this was a great video. In the future can you make a video on how to train object detection models on Colab or something similar/the file structure on Drive....It becomes very time consuming when we don't have GPU enabled systems. A tutorial on that would be very helpful.
@NicholasRenotte
@NicholasRenotte 3 года назад
Definitely, I'm actually working on a mega tutorial on it atm!
@namangoyal8477
@namangoyal8477 2 года назад
@1:06 do create a video on fine-tuning the sentiment analysis.
@user-xe8dr6pd6y
@user-xe8dr6pd6y 4 месяца назад
This was soo good!
@Andy-rq6rq
@Andy-rq6rq 3 года назад
wow must have taken a lot of time to prepare. Thanks you!
@NicholasRenotte
@NicholasRenotte 3 года назад
Oh man @Andy, it was brutal for editing 🤣
@techwills4619
@techwills4619 3 года назад
That's so cool !
@NicholasRenotte
@NicholasRenotte 3 года назад
Thanks so much @TechWills!
@lordoffraternity
@lordoffraternity 2 года назад
Great content 👍🏻
@lotte1638
@lotte1638 2 года назад
Awesome, many thanks Nicholas! I enjoyed your teaching style a lot! However, I do have an issue when running the pipeline ("no model was supplied..."), leading to a RunTimeError. By any chance, do you know how to fix the issue so that the sentiment analysis works?
@sreenivasasrao2700
@sreenivasasrao2700 2 года назад
Fantastic! really good.... just a question can we do the same program for the google feeds we get on android phones?
@urcommunityfeedingaustrali6982
Hi Nick, firstly I'd like to congratulate you for putting this up. I've started using it and it's great. I'm wondering if can be used as a more multi purpose search engine to allow us to scrape the internet for other topics? I've installed the google app (which works fine finding urls howeverk, it won't pull the data and summarise. I'm thinking its because soe sites are blocking from scraping their content. Any thoughts? Thanks again, Peter
@parthkohli11
@parthkohli11 2 года назад
Hey amazing project man!! I was wondering if one could deploy this project on the web, that would make it a complete project right? What's your say on this?
@NicholasRenotte
@NicholasRenotte 2 года назад
Sure would! Got it coming down the line.
@joshprivat4127
@joshprivat4127 3 года назад
Hi Nicholas, this is such a great video and is almost exactly what I needed. I wanted to do some tweaking by finding the daily sentiment analysis from January until, inserting the new code around the 35 mins mark of the video... unless I automate it, it would make a very tedious task but in order to set a custom date range, I would need to keep the whole of the google news link? Do you think this would be a problem? If so then do you have any suggestions? Thank you !
@NicholasRenotte
@NicholasRenotte 3 года назад
Heya @Josh, yeah it's a little tricky, you could extract the date from the articles and try that. There are two other options I might suggest: 1. Scrape every day and store your results with an assigned timestamp 2. Use reddit or twitter data and leverage the native timestamps
@joshprivat4127
@joshprivat4127 3 года назад
@@NicholasRenotte Hey Nicholas, so I think I've figured out a way around it (in theory ), I just noticed though that the list of atags I'm getting are just the "policies", "maps", "accounts" type of links and not the actual news links im looking for. Could this be due to some sort of permission issue? i did try the cookies solution you mentioned in another comment but that hasnt worked for me.
@thecitizendevstack
@thecitizendevstack 2 года назад
Thanks for the great tutorial! Is there a way to give feedback to the model so it can improve over time?
@sat_gur4334
@sat_gur4334 3 года назад
Cool
@hallockstuart7899
@hallockstuart7899 3 года назад
props mate great video and explanation. do you algo trade profesionally?
@NicholasRenotte
@NicholasRenotte 3 года назад
Anytime! I used to a while ago but not anymore unfortunately. I'm thinking of getting back into it though if people are interested in seeing how it's done!
@sreenivasasrao2700
@sreenivasasrao2700 2 года назад
can we use it for any stock on news...which are performing or on news?? should we place it in "Loop"
@ZarlorFinance
@ZarlorFinance 2 года назад
Hi, before I start, the video is great. I learned a lot of new concepts and these are great. but when I try to retrieve all the links of the Google page with for example, the articles about BTC, I can't access the links. I only get the footer links and the page link. Would you have a solution? Thanks in advance.
@danielsilva3383
@danielsilva3383 3 года назад
Hi, Great Video! Tell me something: I am building the tennis analyzer system that I told you (it uses object detection and pose estimation) and I would like to know if I should make an web app or a mobile app? What would be more efficient in terms of cost? Thanks
@NicholasRenotte
@NicholasRenotte 3 года назад
Web app is wayyyyy easier and less effort in terms of deployment. You can always write your code using React-Native which allows you to code native apps but using the same language, Javascript.
@danielsilva3383
@danielsilva3383 3 года назад
@@NicholasRenotte Great! I think that writing in React is the best option. Thanks!
@tonyzaher5283
@tonyzaher5283 2 года назад
is there any possible way to get all the headlines from lets say 2018 till now? also thanks for the amazing video :)!!
@samvitsaroj4757
@samvitsaroj4757 Год назад
Are there any prerequisites? I am a beginner python user (slightly intermediate)
@ananthrao7802
@ananthrao7802 3 года назад
given that the sentiment analysis module is not as good as the text summarizer model here, should we use the unsummarized text for generating the sentiment
@NicholasRenotte
@NicholasRenotte 3 года назад
Ideally, I'd fine tune a proper model on the full text to determine sentiment to get the best results @Ananth!
@ananthrao7802
@ananthrao7802 3 года назад
@@NicholasRenotte makes more sense! Thanks
@NicholasRenotte
@NicholasRenotte 3 года назад
@@ananthrao7802 anytime!
@weigthcut
@weigthcut 3 года назад
If I use BeautifulSoup to get all the Yahoo Finance Links, the returned soup only contains the google policy stuff that is later filtered out. "find("a")" does not work for me. Any ideas? If I inspect the google search I can see the href links which are wrapped in ""... however, BeautifulSoup seems to not fetch them.
@weigthcut
@weigthcut 3 года назад
It seems like the "Accept Cookies"-Frame ist blocking my response. Any way to get around that?
@NicholasRenotte
@NicholasRenotte 3 года назад
Yup, check this out: stackoverflow.com/questions/57462036/how-can-i-bypass-a-cookie-agreement-page-while-web-scraping-using-python
@weigthcut
@weigthcut 3 года назад
@@NicholasRenotte many thanks! I will check this out. :)
@weigthcut
@weigthcut 3 года назад
@@NicholasRenotte Unfortunately this solution does not work for Google.
@NicholasRenotte
@NicholasRenotte 3 года назад
@@weigthcut can you shoot me a link to what you're trying to scrape? Happy to take a look for you!
@haguda4096
@haguda4096 2 года назад
As soon as I run the source code from GitHub, I get the following message in the output file: It’s an error that’s hard to diagnose because it’s a malformed request.
@turnipdreams
@turnipdreams 3 года назад
How did you handle the robot site rules that prevents bot searches?
@NicholasRenotte
@NicholasRenotte 3 года назад
About that 👀, I didn't really pay attention here as we searched through Google then went to the site from there. Bad I know but it demonstrates what's possible.
@turnipdreams
@turnipdreams 3 года назад
@@NicholasRenotte Haha, thanks Nicolas.
@NicholasRenotte
@NicholasRenotte 3 года назад
@@turnipdreams 🤣 anytime!
@ronaktawde
@ronaktawde 2 года назад
scores = {ticker:sentiment(summaries[ticker]) for ticker in monitored_tickers} is it that this command takes long time to get executed? Just wanna confirm. Thanks in advance
@111kisko
@111kisko 3 года назад
hello! getting "It�s an error that�s hard to diagnose because it�s a malformed request" in Summary when csv is printed. Any idea why ? thanks!
@NicholasRenotte
@NicholasRenotte 3 года назад
Hmmm, is that the full error?
@111kisko
@111kisko 3 года назад
@@NicholasRenotte its not an code error since code is running fine with no red lines. its the text that gets exported in excel under summary column
@NicholasRenotte
@NicholasRenotte 3 года назад
@@111kisko ohh, are you scraping the same style of webpage?
@stevevai2442
@stevevai2442 3 года назад
Wonderful tutorial. But I am getting error "AttributeError: 'NoneType' object has no attribute 'encode' at "input_ids = tokenizer.encode(ARTICLE, return_tensors='pt')" section when I tried it. How can ı fix it?
@NicholasRenotte
@NicholasRenotte 3 года назад
Heya @Steve, can you double check you have successfully scraped articles by printing out ARTICLE?
@stevevai2442
@stevevai2442 3 года назад
@@NicholasRenotte I found the problem. It was sentencepiece installation which wasn't there. After !pip install and rerun colab it worked. Thnx
@NicholasRenotte
@NicholasRenotte 3 года назад
@@stevevai2442 yess, awesome work!
@realg7849
@realg7849 3 года назад
@Steve Vai how did you have it fixed? This is exactly the problem that I have. SentencePiece only worked when I had a problem with PegasusTokenizer
@knowmanav
@knowmanav 3 года назад
@@realg7849 same Can someone please help The error I'm getting is: AttributeError Traceback (most recent call last) in () ----> 1 input_ids = tokenizer.encode(ARTICLE, return_tensors='pt') 2 output = model.generate(input_ids, max_length=55, num_beams=5, early_stopping=True) 3 summary = tokenizer.decode(output[0], skip_special_tokens=True) AttributeError: 'NoneType' object has no attribute 'encode'
@akmaljelani990
@akmaljelani990 3 года назад
Hi. I'm working on a similar project. Your videos are very very very helpful. Just want to say thanks first. I have a question, my project requires a 30-day stock news data. How do I scrape the second page of the google yahoo finance search result? Do i run it again and store the scraped data under (search_url 2) , similar to 4.1 in the Notebook. Hope it make sense to you? Thank you very very much Nicholas
@NicholasRenotte
@NicholasRenotte 2 года назад
Tbh, you would probably be better off going to yahoo directly and scraping from within a time range or using an RSS feed if you need specific dates.
@akmaljelani990
@akmaljelani990 2 года назад
@@NicholasRenotte okay. Will try & do that also. Have an interview going on this Friday. You helped alot man. Thank u so much.
@docdies4376
@docdies4376 3 года назад
a little bit sad when where is no one russian pre-trained models for financical articals like that
@NicholasRenotte
@NicholasRenotte 3 года назад
Heya @Doc, you could run it through a translator model first then use the financial model however!
@albertoaraujo9239
@albertoaraujo9239 2 года назад
Hi Nicholas! I was trying to follow your steps, but whenever I try to run the following code the kernel dies: input_ids = tokenizer.encode(ARTICLE, return_tensors='pt') output = model.generate(input_ids, max_length=55, num_beams=5, early_stopping=True) summary = tokenizer.decode(output[0], skip_special_tokens=True) Is this because of my PC specs? I'm using an M1 mac with 8GB of ram. How can I solve this issue? Thanks in advance!
@antonymadaleno9216
@antonymadaleno9216 Год назад
load model just before summarize method, otherwise it will take up space in ram at the same time as you load articles. make sure also to close some chrome tabs since chrome is known to use to much ram.
@eduardogonzalez6336
@eduardogonzalez6336 3 года назад
Hi im working on google colab and it indicates me that tokenizer is a NoneType so then when apply "" tokenizer.encode """ it goes to Error, is there something I have to do by working with google Colab??Packages are correctly installed
@NicholasRenotte
@NicholasRenotte 3 года назад
Got blank values being passed to the tokenizer?
@jancarius101
@jancarius101 10 месяцев назад
So, are you rich yet?
@nelohenriq
@nelohenriq 2 года назад
getting an error right at the beginning when defining tokenizer variable... This is the error 'TypeError Traceback (most recent call last) in 1 model_name = "human-centered-summarization/financial-summarization-pegasus" ----> 2 tokenizer = PegasusTokenizer.from_pretrained(model_name) 3 model = PegasusForConditionalGeneration.from_pretrained(model_name) TypeError: 'NoneType' object is not callable Can you please help?? I cloned your repository with the notebook and tried to run it
Далее
How to Learn DATA SCIENCE Ridiculously FAST
14:07
Просмотров 53 тыс.
Bitcoin Sentiment Analysis Using Python & Twitter
29:42