Predicting Stock Prices in Python

  Рет қаралды 542,276

NeuralNine

NeuralNine

Күн бұрын

Пікірлер: 696
@_ScyIIa_
@_ScyIIa_ 3 жыл бұрын
you're underrated man, you deserve a lot more
@NeuralNine
@NeuralNine 3 жыл бұрын
Patience is the key ^^ Thank you
@sachinr1929
@sachinr1929 3 жыл бұрын
Totally agree
@baskarpalani2014
@baskarpalani2014 3 жыл бұрын
True
@cansaruhann
@cansaruhann 3 жыл бұрын
Yeah
@christoflers
@christoflers 3 жыл бұрын
Hey man great video, only thing I'd recommend is moving your camera overlay to the top right corner though, as it often blocks the current line of code that you are writing/discussing.
@mihirshahpro
@mihirshahpro 3 жыл бұрын
I agree!!!
@thecodfather7109
@thecodfather7109 3 жыл бұрын
Your content is amazing! I can't find one video that sucks or that's useless. Keep it up dude, your channel will hit big numbers 👌🏽
@NeuralNine
@NeuralNine 3 жыл бұрын
Thanks brother :)
@bud384
@bud384 3 жыл бұрын
That's for sure i believe..
@c0dakw0lfgaang48
@c0dakw0lfgaang48 3 жыл бұрын
@@NeuralNine which yahoo api is that ? Please tell me the package name and the author name.
@martinwestin4539
@martinwestin4539 3 жыл бұрын
​@@c0dakw0lfgaang48 there are several yahoo finance apis in python that you can use, but i recommend using yahoo_fin (pip install yahoo_fin)
@c0dakw0lfgaang48
@c0dakw0lfgaang48 3 жыл бұрын
@@martinwestin4539 thanks mate
@akramelomrani8728
@akramelomrani8728 3 жыл бұрын
I am so happy that I am one of the oldest channel members you taught me a lot about sockets and also your project ideas are amazing cant wait to see much more I think you are in the road of becoming one of the biggest channels
@Nvidia-Clan
@Nvidia-Clan 3 жыл бұрын
Very nice video, learned a lot from it. Only one advice, you could every now and then print the data we are working with so that we see exactly how the data should look. I am guessing that for someone that advanced as you, visualizing the data in your mind is pretty simple, I for example, print it pretty often, just to make sure that I am on the right track. Apart from that, really awesome video, I'm glad the algorithm recommended your channel.
@GabrielBauerr
@GabrielBauerr 3 жыл бұрын
yeah, theory behind would be great to know how to apply the knowledge in different projects and situations. great work man
@danajanastova8550
@danajanastova8550 3 жыл бұрын
Instead of reshaping with reshape: x_train = np.reshape(x_train, (x_train.shape[0], x_train.shape[1], 1)), there is a shortcut syntax: x_train = x_train[..., None], where None stands for the new axis added as the last axis. Maybe you want it to be understandable for begginers though, which I totally understand :).
@greenpumpkin172
@greenpumpkin172 3 жыл бұрын
Thanks for the nice tip.
@devsunny10
@devsunny10 2 жыл бұрын
Hello, can you please help me
@msa3533
@msa3533 3 жыл бұрын
thank you for this amazing content. I now went bankrupt
@dmitriyvoznyuk7142
@dmitriyvoznyuk7142 3 жыл бұрын
LOL (sorry if it wasn`t a joke)
@yeweishi6157
@yeweishi6157 3 жыл бұрын
hahaha
@alexleban6823
@alexleban6823 3 жыл бұрын
lmao
@TokyoWasTaken
@TokyoWasTaken 3 жыл бұрын
RIP... i invested using this .. im kinda profitable
@Anaskhan-kv5qi
@Anaskhan-kv5qi 3 жыл бұрын
😂😂
@delalias5754
@delalias5754 3 жыл бұрын
Those muscles.... damn nerds are jacked now... thanks brother
@dabbopabblo
@dabbopabblo 3 жыл бұрын
21 skinny guys liked your comment
@makdavian3567
@makdavian3567 3 жыл бұрын
lol
@doublegdog
@doublegdog 3 жыл бұрын
love these very specific python videos! there are too many tutorial videos but not enough videos on specialized programming topics. I have been meaning to get started on algorithmic trading but had no idea where to start. It is as if you read my mind. Thank you!
@philippebaillargeon5204
@philippebaillargeon5204 Жыл бұрын
Here is a tip for everyone that is new to programming: Learn clean coding as you learn how to code. You're gonna thank me later. Cause I'll garantee if you don't know how to clean code and you just copy pasting stuff and adding lines of code your code is gonna be horribly hard to read and understand. Especially algorithms with heavy maths involved.
@regeleionescu935
@regeleionescu935 3 жыл бұрын
Line 60: model_inputs=total_dataset[len(total_dataset)-len(test_data)-prediction_days:].values
@muhammadvaliallah2781
@muhammadvaliallah2781 3 жыл бұрын
Took me a while but the purpose of this line is to get from 60 days before test and include the test set
@Kotavedavyas
@Kotavedavyas 3 жыл бұрын
does anyone know this error ValueError: Input 0 of layer "sequential" is incompatible with the layer: expected shape=(None, 5, 1), found shape=(None, 4, 1)
@Sturmbutcher
@Sturmbutcher 3 жыл бұрын
​@@Kotavedavyas I am on the same boat... did you find how to fix it?
@ishan_shrestha
@ishan_shrestha 3 жыл бұрын
same... help
@ramach668
@ramach668 2 жыл бұрын
Anyone able to resolve this error? "expected shape=(None, 5, 1), found shape=(None, 4, 1)". Please help with a workaround
@helenoliver4838
@helenoliver4838 Жыл бұрын
The stock market is still a fantastic tool for building wealth, however, so it's wise to consider investing even if you don't have much money to spare.
@greenquake11931
@greenquake11931 Жыл бұрын
Money is a tool that can help you to achieve your goals. It can provide comfort and stability for your family, make it easier to plan for the future, and allow you to save towards important milestones. But to achieve these things, you need to know how to make your money work for you by investing with the right signal.
@mayacho4910
@mayacho4910 Жыл бұрын
@@greenquake11931 Hello, what signal do you invest with ? I'm new here.
@greenquake11931
@greenquake11931 Жыл бұрын
@@mayacho4910 'BRIDGET MARY TUROW"
@mayacho4910
@mayacho4910 Жыл бұрын
@@greenquake11931 I'll like to connect with her. I want to invest.
@greenquake11931
@greenquake11931 Жыл бұрын
@@mayacho4910 look with her name online for her page.
@dynoagency1323
@dynoagency1323 3 жыл бұрын
thank u man u are the only youtuber who do this things
@sunhound817
@sunhound817 3 жыл бұрын
Great stuff! Don't stop posting, man. This is very cool.
@_Loki__Odinson_
@_Loki__Odinson_ 3 жыл бұрын
Man believe me you would surely get a lots of subscribers in a very few time You are siriously awesome dude
@sachinr1929
@sachinr1929 3 жыл бұрын
Great content as always. Keep going !!!
@NexGenSlayer
@NexGenSlayer 3 жыл бұрын
FB Stock the next day from his prediction was 261.10 (1/19/21). The model seems to be pretty good at predicting momentum at least.
@SylvioSaraiva
@SylvioSaraiva 3 жыл бұрын
These videos recorded while coding are the best! please keep producing them
@macel1602
@macel1602 3 жыл бұрын
Great video! And i would love to see some theorical mathematics about what's behind the functions you were talking about
@antoinepoisson4791
@antoinepoisson4791 3 жыл бұрын
Look for Denuit, Hainaut & Truffin « Effective Statistical Learning for Actuaries Vol. 3 - Neural Networks & Extensions » 😉
@DilpreetSingh-sw3ei
@DilpreetSingh-sw3ei 3 жыл бұрын
How to predict for next 90 or 100 days if we want to ? For other situations in which we need to predict data for a whole day for every 15 mins intervals
@nallurivenkat7425
@nallurivenkat7425 3 жыл бұрын
We need more and more videos of this kind. Just loved it.
@kaushiksprabhakar9088
@kaushiksprabhakar9088 3 жыл бұрын
Awesome work dude🔥
@NeuralNine
@NeuralNine 3 жыл бұрын
thanks :)
@kaiprzadka6896
@kaiprzadka6896 3 жыл бұрын
Very cool! I did the same, but tried it with linear regression. I really recommend changing the Programm a bit, so it tells you If the price will Go Up or down, NOT the exact Number. This is way more accurate and even though it's Not as informative, it probably is more usefull. I did the same with my linear regression attempt and that improved the average accuracy by quite a few percent.
@amarmemane2583
@amarmemane2583 3 жыл бұрын
hey, kai is this possible to share your code with me?
@ShakTMT
@ShakTMT 3 жыл бұрын
Hey ,what did you change to make that edit? Thanks
@kaiprzadka6896
@kaiprzadka6896 3 жыл бұрын
@@ShakTMT Well, the easiest solution would be to compare the current price and the predicted price.
@timeshiftbr
@timeshiftbr 3 жыл бұрын
I’d love to see a more technical video. I like to understand what is happening that actually takes me to the results I get, so I can then understand how to make it better. Nice video, man, congrats for your work
@marcoscully7021
@marcoscully7021 3 жыл бұрын
you should check out coding trains neural network playlist it goes into a lot of depth into how neural networks function
@smalltribes88
@smalltribes88 3 жыл бұрын
MIT posts all of their lectures in algorithmic models on KZbin, more technical than you probably even want hahah
@kamilzielinski593
@kamilzielinski593 3 жыл бұрын
this is actually my 6 months engineers degree condensed in 30 minutes
@giancarlo9866
@giancarlo9866 3 жыл бұрын
You got an engineering degree in 6 months ?
@jsj6665
@jsj6665 3 жыл бұрын
Lol
@bardocks72
@bardocks72 3 жыл бұрын
Bs
@zulfadlizein5192
@zulfadlizein5192 3 жыл бұрын
I immediately hit the subscribe button. Nice content, keep up the good work.
@punyagalundia9160
@punyagalundia9160 3 жыл бұрын
I absolutely love your videos and they have really helped me get started with coding as a beginner. Would love it if you could put your video in another corner so code is visible at all times. Thankss
@KingCAMBO
@KingCAMBO 2 жыл бұрын
I used the code from this lesson yesterday 5/12/2022 to predict today's close on DIA. The prediction last night was 322.19 - Today's 5/13/2022 real-time close was 322.24!
@jakob4371
@jakob4371 3 ай бұрын
So?
@lizardmtb6349
@lizardmtb6349 3 ай бұрын
@@jakob4371 so that's pretty close > 5/12/2022 > 320.82 > prediction > 322.19 real-time close was 322.24
@milepivo
@milepivo 3 жыл бұрын
I would like to see a detailed video where you explain the tensorflow implementation of the LSTM, because I'm not really sure how they work when you combine them with Dense layers.
@ProGuitarUA
@ProGuitarUA 3 жыл бұрын
Wow man that’s good! Can’t wait to hear more about optimizers and loss functions :) Thanks
@AdoukaStalks
@AdoukaStalks 3 жыл бұрын
Man you do be grinding!
@NeuralNine
@NeuralNine 3 жыл бұрын
always ^^
@timothymagsino
@timothymagsino 3 жыл бұрын
I’m a CS student and I gotta say, you really have fantastic helpful content
@annaarbuz3277
@annaarbuz3277 3 жыл бұрын
Just an example of NN overfitting. Predicted curve should be shifted to the left (to the past) from the actual curve - then it will mean the prediction. Actualy NN just repeating curve from the past to the future with some bias and curve approximation, and this is the opposite of the meaning of prediction. Whatever if you just need to smooth any curve and shift it to the right, then there are many simple ways, not a neural network.
@ViralKiller
@ViralKiller 2 жыл бұрын
You need to train it differently...find historic data where a very large move to the upside or downside has occurred, and then take the 120 candles before that, and label them either "bullish" or "bearish"...then show it the current chart and ask it what will happen next
@intfamous4001
@intfamous4001 2 жыл бұрын
and it still wouldn't change anything. This approach is no better than human guessing
@media1critter
@media1critter 3 жыл бұрын
Even though the models aren't perfect, it's amazing how close they are! They could definitely be handy in assisting day traders with determining how long to hold a position for :) Thanks so much dude!!
@GianCampos
@GianCampos 2 жыл бұрын
I don’t know if you’re going to see this comment, but I must say it: The way you teach the content in details explaining why and what that section does is amazing! Very good content, I’ll see all your videos now that I understand more about machine learning stuff than 3 months ago when I found your channel. Thank you so much! A hello from Brazil!
@RemorfChuket
@RemorfChuket 3 жыл бұрын
24:26 shouldn't that be len(model_inputs)+1 with the parenthesis before the + 1? also I'm pretty sure that it doesn't even do anything since I tested it and it returns the same array
@ryanreddy8450
@ryanreddy8450 3 жыл бұрын
Great stuff. Could you possibly do a video on how to deploy these into production where newer data is automatically fed in, so we do not have to keep training the models again and again?
@dvdplays8444
@dvdplays8444 3 жыл бұрын
if that was possible then the stock market would be pointless cause everyone would use it
@stephenhobbs948
@stephenhobbs948 3 жыл бұрын
Great video. Can you move the code up (hit the return 4-7 times) bc your camera is blocking part of the code to the right. If you press return, it will shift the code up so we can see entire line of code. Looking forward to seeing more. Do a video on Q learning.
@loganathansiva7063
@loganathansiva7063 3 жыл бұрын
Hai sir. Thanks for casting your videos. Learnt how to make predictions on stock prices watching your video. I was in search of videos like this. Luckily i got it. Very well narated and explained. Hats off to you sir. May god bless you. .
@balloney2175
@balloney2175 3 жыл бұрын
Learning python at the same time predicting stock success. Fantastic!
@RAJAT2372
@RAJAT2372 3 жыл бұрын
Thank you so much! This is exactly what i had been looking for! 🙏🏼
@timmothysanders1324
@timmothysanders1324 3 жыл бұрын
THANK YOU for making this.
@Juanpablete12
@Juanpablete12 3 жыл бұрын
I have this error : ValueError: Input 0 of layer "sequential_1" is incompatible with the layer: expected shape=(None, 60, 1), found shape=(None, 59, 1)
@zomaareenkijker286
@zomaareenkijker286 2 жыл бұрын
@Juanpablete12 Have you found a fix to this? I'm running into the same problem.
@doruksrtoglu408
@doruksrtoglu408 3 жыл бұрын
Hey, thank you so much for the video, very smooth and understandable. I agree the fellow commentators, please make a separate video to describe the mathematics behind the model. Thanks!
@Itschotsch
@Itschotsch 3 жыл бұрын
Yes please, theoretical videos would be of great help!
@Cristian-bg1pr
@Cristian-bg1pr 3 жыл бұрын
Isn't TimeSeriesSplit Cross-Validation similar to your type of split? It kind of does the same thing. For example: "Train on first 3 days, predict on 4th, then train on first 4 days, predict on 5th" and so on, thank you!
@damiangames1204
@damiangames1204 3 жыл бұрын
I am interested in the theory and maths! Also, top quality video.
@anant.jain11
@anant.jain11 3 жыл бұрын
man, you're amazing. just amazing, no words i calculated the r2_score for FB dataset prediction it's 0.86 you're predicting stock market with that much accuracy. i might just trade on that 😁 love your content man, keep up the good work❤👍
@srkk3360
@srkk3360 3 жыл бұрын
could you tell me the code for it
@angelgabrielortiz-rodrigue2937
@angelgabrielortiz-rodrigue2937 3 жыл бұрын
Great videos. Love this type of content. Please make more
@loganathansiva7063
@loganathansiva7063 3 жыл бұрын
Thank you very much. I was looking for predictions made like this.. May god bless u.
@joeyb8455
@joeyb8455 2 жыл бұрын
A scatter plot and/or calculating the correlation of the predicted price change vs actual price change would give much more insight in wether or not the model has some predictability
@timothysiallagan3886
@timothysiallagan3886 3 жыл бұрын
I get the ValueError: input 0 of layer "sequential" is incompatible with the layer: expected shape =(None, 60, 1), found shape=(None, 59, 1) . Despite the warning you received at 26:22, you still get the prediction, unlike me. Does anyone have the same issue?
@ishan_shrestha
@ishan_shrestha 3 жыл бұрын
same.. did u solve it?
@ZachDiesel
@ZachDiesel 3 жыл бұрын
did you ever figure it out?
@elvischen1590
@elvischen1590 3 жыл бұрын
Thanks for sharing, good work! For whom is watching this video, again, the previous data does not correctly predict the future!
@Krumplyn
@Krumplyn 3 жыл бұрын
Hi, thank you for the quality content! I just wanted to let you know, that I would be also interested in the math behind the whole AI thing. Have a nice day and be safe :)
@press1to
@press1to 3 жыл бұрын
I’m looking for someone to adapt this code with my parameter and formulas
@albertenstein5965
@albertenstein5965 3 жыл бұрын
Amazing channel! Thanks for the tutorial dude!
@Sturmbutcher
@Sturmbutcher 3 жыл бұрын
Very well explained! I am trying to figure out if I can predict the price of certain currency and then calculate the "value at risk". My doubt is, I have to train this model every day to get a better result? I plan to use it on production to compare it with the actual state of art of "value at risk", using the covariance or the historical method.
@PurpleGDuffy
@PurpleGDuffy 3 жыл бұрын
This was great! Thank you!
@mceiche6626
@mceiche6626 3 жыл бұрын
I would love to see some theory about the opimizer. Really interesting but hard to understand on the Mathematical point of view
@Henrychc19970911
@Henrychc19970911 3 жыл бұрын
Awesome content! Keep up going
@cebeb16kmrdayaasaagar87
@cebeb16kmrdayaasaagar87 3 жыл бұрын
dude thank u !! u are really great !!! Thank god i found your video !!! This helped me in the project thanks.
@bhuvanaggarwal7387
@bhuvanaggarwal7387 3 жыл бұрын
Awesome content man!!
@g.paudra8942
@g.paudra8942 2 жыл бұрын
This is more simple code than i use, if you try to use epochs up to 1000 and batch size 64, maybe the accuracy will be same as my model, mine is always above 99% predicting the next day closing
@sketchychillandchill
@sketchychillandchill 2 жыл бұрын
Is your test data in your train dataset?
@jaredfiacco1107
@jaredfiacco1107 3 жыл бұрын
Thank you, @NeuralNine! The people who gave you dislikes need a neural network to predict better taste in tutorials.
@CodeWithJoe
@CodeWithJoe 3 жыл бұрын
What was the actual success rate you had in predicting?
@dipikabudhathoki00
@dipikabudhathoki00 3 жыл бұрын
💯% true n actual content u r on extremely right way
@vsp540
@vsp540 3 жыл бұрын
thanks for the video man it's great! and yeah it would be super cool if you made a video explaining the math!
@stevenduyck5204
@stevenduyck5204 2 жыл бұрын
Could I say i need to change the last value from (model_inputs+1) to let us say '+5' to see price prediction in 5 days? real_data = [model_inputs[len(model_inputs) + 1 - prediction_days:len(model_inputs+1), 0]]
@ebz7486
@ebz7486 Жыл бұрын
Hey were you able to figure this out I’m trying to do it now
@_M_643
@_M_643 3 жыл бұрын
You do the best programming tutorials. Easy to understand and learn. I have a question. Can you make a tutorial about how to make a Discord Bot written in Python. If you don't know what Discord is, it is one very popular chat platform.
@my-financial-wealthblog4423
@my-financial-wealthblog4423 3 жыл бұрын
Wow! As a trader that's amazing thing to learn. Thanks for the video
@CodeWithJoe
@CodeWithJoe 3 жыл бұрын
what comes after value in line 60? model_inputs = total_dataset[len(total_dataset) -len(test_data) - prediction_days:], value
@NeuralNine
@NeuralNine 3 жыл бұрын
nothing it ends with .values ^^
@CodeWithJoe
@CodeWithJoe 3 жыл бұрын
@@NeuralNine danke, ich hatte value deswegen der series error. Geiler kanal junge danke für die ganzen videos, mach weiter so
@shinrei19
@shinrei19 3 жыл бұрын
wow! nice! i can learn phyton! awesome content!
@Josephus_vanDenElzen
@Josephus_vanDenElzen 3 жыл бұрын
after running line 75 (at 19:39) I get an error: ValueError: Found array with dim 3. Estimator expected
@rayanebouayad920
@rayanebouayad920 3 жыл бұрын
I'm getting the exact same error and it's bugging me. Will let you know as soon as I find the answer.
@Josephus_vanDenElzen
@Josephus_vanDenElzen 3 жыл бұрын
@@rayanebouayad920 great
@jitan-art
@jitan-art 3 жыл бұрын
@@Josephus_vanDenElzen check line 42, it fixed my issue with the same error
@enjigaming11
@enjigaming11 3 жыл бұрын
Can someone tell me what he wrote in .value in line number 60??
@julesancillon275
@julesancillon275 3 жыл бұрын
Super nice content! A video about optimizers would be super welcomed !!
@faridparvez
@faridparvez Жыл бұрын
Great video, very clear. Please make a video on roadmap to learning python from scratch, specifically for stock analysis, chart analysis, getting trade signals using charts and statistical analysis of stocks. I mean create a roadmap on the course tailored cut for only stock trading. Regards Farid
@Kotavedavyas
@Kotavedavyas 3 жыл бұрын
can any one help? ValueError: Input 0 of layer "sequential" is incompatible with the layer: expected shape=(None, 60, 1), found shape=(None, 59, 1)
@joehuang1889
@joehuang1889 3 жыл бұрын
Same error here, not sure either
@ZachDiesel
@ZachDiesel 3 жыл бұрын
did you figure it out?
@das250250
@das250250 Жыл бұрын
Good videos , notes of possible ways to improve .. A. Lower keyboard sound relative to your voice ..maybe a noise cancel lapel microphone ? Maybe AI noise cancelling B. Some commentary on the commands used and what library they are from to connect the resources used and what goes on in each command . Thanks
@CodeWithJoe
@CodeWithJoe 3 жыл бұрын
How can I fix this? Traceback (most recent call last): File "main.py", line 38, in model.add(LSTM(units=50, return_sequences=True, input_shape=(x_train.shape[1], 1))) AttributeError: 'list' object has no attribute 'shape' Stackoverflow says that the issue is a 2d lis while it should be 3d, but i dont know what to do with that information?
@robertchu4434
@robertchu4434 3 жыл бұрын
Are you sure x_train is a numpy array and not a list?
@bielvv9148
@bielvv9148 Жыл бұрын
I am trying to reproduce your model and I get this errors: 'Traceback (most recent call last): line 21, in data = web.DataReader(company, 'yahoo', start, end) line 210, in wrapper return func(*args, **kwargs) line 370, in DataReader return YahooDailyReader( line 253, in read df = self._read_one_data(self.url, params=self._get_params(self.symbols)) line 153, in _read_one_data data = j["context"]["dispatcher"]["stores"]["HistoricalPriceStore"] TypeError: string indices must be integers Does anybody now what is wrong? I tried to fix it in many different ways but nothing worked.
@giuliamancini753
@giuliamancini753 Жыл бұрын
Same for me. I don't know what to do. Can some one help us?
@nippi86
@nippi86 10 ай бұрын
Same for me
@atasozuvesiirler
@atasozuvesiirler 9 ай бұрын
Same for me..
@bielvv9148
@bielvv9148 9 ай бұрын
@@atasozuvesiirler Hey, if you're trying to get a project like this to work, I recommend trying to understant the basics and then building up the code with ChatGPT for example. By doing so I got it to work. Just so you can have some reference, I used yfinance to fetch the data. Good luck!
@atasozuvesiirler
@atasozuvesiirler 9 ай бұрын
@@bielvv9148 thanks I already have the solution in same way too. 👍
@ottobormann
@ottobormann 3 жыл бұрын
I am interested in why are you choosing that topology of the neural network. Why 3 LSTM layer each with 50 neurons. It is clear why the last layer is of one neuron. But the previous ones are a mystery.
@YundongCai
@YundongCai 3 жыл бұрын
Line 87 should be real_data = [model_inputs[len(model_inputs) + 1 - prediction_days: len(model_inputs) + 1, 0]]
@srijanpareek4563
@srijanpareek4563 2 жыл бұрын
mate i am having error ValueError: Input 0 of layer "sequential_1" is incompatible with the layer: expected shape=(None, 60, 1), found shape=(None, 59, 1) THIS ISSUE IN LAST3RD LINE prediction=model.predict(real_data)
@karthikeyan-kc2py
@karthikeyan-kc2py 3 жыл бұрын
Thanks for your efforts and collection of Good informations 👍👍
@erictovbin4200
@erictovbin4200 3 жыл бұрын
Can you make a video where you explain the mathematics?😄
@martinsmolik2449
@martinsmolik2449 3 жыл бұрын
Three blue one brown does an excellent job of this!
@mw7185
@mw7185 Жыл бұрын
At 10:46 we can t see the code since it is covered by your picture )
@stansuen8072
@stansuen8072 3 жыл бұрын
Thanks! Love your videos. Wonder if there is a good way to detect pattern (instead of predict future prices) such as inverse head-and-shoulder and cup-and-handle?
@davidef2789
@davidef2789 3 жыл бұрын
I wrote the whole code and installed Pandas, Anaconda, Tensorflow, etc. but I can't see anything because it gives so many errors
@PeterPetahPetah
@PeterPetahPetah 3 жыл бұрын
great video! subbed!
@ananyaiyer6049
@ananyaiyer6049 3 жыл бұрын
Great video!! thank you so much
@sobhanmovassagh6792
@sobhanmovassagh6792 2 жыл бұрын
for create x_train you can use sliding_window_view in numpy library
@25_FpS
@25_FpS 3 жыл бұрын
Very informative video, can you provide the link for the code ?
@sonyh2so4
@sonyh2so4 3 жыл бұрын
Hi ! When i tried to run the last part of the code in spyder, i had this error (not a warning like the video): ValueError: Error when checking input: expected lstm_4_input to have shape (60, 1) but got array with shape (59, 1) How can i solve this?
@parthbansal2775
@parthbansal2775 3 жыл бұрын
I ran into the same problem, did you get a solution?
@kyleyoung4974
@kyleyoung4974 3 жыл бұрын
​@@parthbansal2775 Look at your x_train = np.reshape lines.. those errors are regarding the reshaping usually
@kyleyoung4974
@kyleyoung4974 3 жыл бұрын
Look at your x_train = np.reshape lines.. those errors are regarding the reshaping usually
@parthbansal2775
@parthbansal2775 3 жыл бұрын
@@kyleyoung4974 Thank you very much I fixed that
@marcmolinsdeamaya7189
@marcmolinsdeamaya7189 3 жыл бұрын
@@parthbansal2775 Can you share how did you fixed pls? Im with the same issue, thanks!!
@mr.sweaty7862
@mr.sweaty7862 2 жыл бұрын
When running (22.00) i get this error. How to fix? Traceback (most recent call last): File "C:\Users\soubi\PycharmProjects\tensorflow\Code\linear regression.py", line 19, in data = web.DataReader(company, 'yahoo', start, end) File "C:\Users\soubi\PycharmProjects\tensorflow\venv\lib\site-packages\pandas\util\_decorators.py", line 211, in wrapper return func(*args, **kwargs) File "C:\Users\soubi\PycharmProjects\tensorflow\venv\lib\site-packages\pandas_datareader\data.py", line 379, in DataReader ).read() File "C:\Users\soubi\PycharmProjects\tensorflow\venv\lib\site-packages\pandas_datareader\base.py", line 253, in read df = self._read_one_data(self.url, params=self._get_params(self.symbols)) File "C:\Users\soubi\PycharmProjects\tensorflow\venv\lib\site-packages\pandas_datareader\yahoo\daily.py", line 153, in _read_one_data data = j["context"]["dispatcher"]["stores"]["HistoricalPriceStore"] TypeError: string indices must be integers Also, I can't do from tensorflow.keras.models Import sequential or tensorflow.keras.layers... So instead i've done: from tensorflow import keras from sklearn.preprocessing import MinMaxScaler from keras.models import Sequential from keras.layers import Dense, Dropout, LSTM Is this okay?
@_applejuice_
@_applejuice_ 2 жыл бұрын
same
@melihaksoy1129
@melihaksoy1129 Жыл бұрын
did you guys find the solution.Im stuck too
@mr.sweaty7862
@mr.sweaty7862 Жыл бұрын
@@melihaksoy1129 Nope. Not yet
@jihyeonku
@jihyeonku Жыл бұрын
same
@morto1826
@morto1826 Жыл бұрын
tensorflow.python.keras.models import Sequential worked for me,as for the string indices must be integers, im struggling to figure that out now
@tacowashington717
@tacowashington717 3 жыл бұрын
I can’t wait to fully comprehend this
@adebayoognibo4211
@adebayoognibo4211 3 жыл бұрын
hi thanks for the video, I have a little problem on line 68 ---> AttributeError: 'numpy.ndarray' object has no attribute 'append'
@alikellaway3901
@alikellaway3901 3 жыл бұрын
Cool video bro 🙂
@Apapa88657
@Apapa88657 3 жыл бұрын
Is there a way to predict not only next day’s price, but also next few days’ prices?
@marbentraje3245
@marbentraje3245 3 жыл бұрын
Optimizer and loss model could be a brain-breaking topic, but I'm curious. Very informative and interesting contests sir! GoodJob!
@randalltockes2247
@randalltockes2247 8 ай бұрын
Really like your videos, I've watch many at this point. Only thing I would comment is that as much as its nice to see you at the beginning/end, I think it would help to turn off your video while actually writing code. I was frustrated a few times trying to keep up when you were coding along the bottom of the window and the right extents were hidden by your pip which is kind of unnecessary. Anyway that said, enjoy the content. Keep it up.
@serbrad6426
@serbrad6426 3 жыл бұрын
Please do make more theoretical videos. It really helps to learn and understand the fundamentals of the underlying. We're gonna learn them fast and more accurate. Please do and let us join the channel. I would like to be a paid subscriber.
Visualizing Bitcoin in Python
10:02
NeuralNine
Рет қаралды 15 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Predicting Stock Prices with FBProphet in Python
21:26
NeuralNine
Рет қаралды 32 М.
Attention in transformers, visually explained | DL6
26:10
3Blue1Brown
Рет қаралды 2 МЛН
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,3 МЛН
LSTM Top Mistake In Price Movement Predictions For Trading
9:48
CodeTrading
Рет қаралды 107 М.
Python Resume Projects - You Can Finish in a Weekend
10:38
Tech With Tim
Рет қаралды 1,5 МЛН
Matplotlib Full Python Course - Data Science Fundamentals
1:02:41
NeuralNine
Рет қаралды 165 М.
Linear Regression From Scratch in Python (Mathematical)
24:38
NeuralNine
Рет қаралды 190 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН