Project : Stock price prediction using ML | Neural Network | Web app | python | 2024
HTML-код
- Опубликовано: 26 июн 2024
- In this Video, we have discussed about predicting the stock data price using a simple Neural Network and explained the Moving Average concept and finally predicted different stock data prices like Google, Microsoft, HDFC and Bit coin
Add on : Also created a simple Web app to Visualize the Predicted data
Source Code : github.com/KDcodeyt/stock_pri...
Subscribe here please
/ @kdcodeyt
0:00 - 0:30 - Intro
00:31 - 5:00 - Google Stock dataset | Explanation
5:01 - 11:00 - Data Cleaning | Data Analysis | Graphs
11:01 - 22:50 - Moving Average Concept | Plotting | Explanation
22:51 - 25:03 - Percentage Change in stock data function
25:04 - 31:16 - Preprocessing the Data
31:17 - 34:08 - Splitting the data into Train and Test sets
34:09 - 41:38 - Building the Neural Network Model
41:39 - 48:43 - Predicting the Test data
48:44 - 1:10:42 - Building Web app
You can find python and Machine learning project videos here:
• Project Ideas and Solu...
Feel free to comment down if any quires, Stay tuned to KD code
Please Subscribe and do watch the full video.
---------------------------------------------------------------------------------------------------------------------
Follow us on Social Media channels to know the latest updates in Advance
/ kdcodeyt
whatsapp.com/channel/0029VaDc...
profile.php?...
/ kdcodeyt
/ 0u
Support us by subscribing the channel
#python #jupyter #jupyternotebook #stocks #stockmarket #stock #2024 #latest #stockprice #machinelearning #pythontutorial #explanation #coding #education #neuralnetworks #deeplearning #webapp #webapptrading #stocktrading #stockpriceprediction #prediction
Please provide source code? 🙏🏻
Hi, Here is the source code : github.com/KDcodeyt/stock_price_prediction
please Subscribe if it's helpful
amazing and easy to understand explanation
your are doing great man
Amazing explanation !
Fantastic explanation!
you are good man!!!
Bro pls dont stop to teaching us, ur guide is really helpfull
I'm glad I could be helpful, will keep on posting interesting videos.
Stay tuned ❤
Hi, how to print the data and graph for a future date? The graph only shows the forecast for the current date, but the interesting thing is that we have the table of values and trends marked on the graph for the future! Thanks!
Sir can you please make a video about web app implementation form starting because I'm new in machine learning and the web app part is completly different for me . Please sir help me to understand the concept of webapp.
sir the last step to save the model is not creating any file in the given location then how to use it vs code?
Hi there, great video.
When splitting the data, is there no easier way to do it using train_test split package?
Yes, it will be possible, we can use train test split instead of doing it manually
sir what is the accuracy of the above code
I finished almost but for inverse predictions I get scalar not defined
thank you for a great explanation.
I am getting error message in line 40:
scaled_data = scaler. fit_transform(Adj_close_price)
in VS code: Expected 2-D array, got 1-D array instead.
Can you please elaborate ...
Hi, you can try converting the 1-D array to 2-D using numpy library
stay tuned for more videos :)
I cannot read the .keras files
Hi sir, In visual studio code after running code i'm getting error at line 18, could you please why you've taken Latest_stock_price_model.keras
Hi, you can elaborate the error, so it will be more easier to resolve it and kindly reach out to us in insta
Thank you
make a video on crypto price prediction if possible.
Hi, we have already posted a video on it : ruclips.net/video/DdsGk6sezoc/видео.html
please check it out, Hope it's helpful
please subscribe for more videos :)
Iam new to ML. I just want to confirm that we should do scaling after splitting the data right? Not before. And we must scaling the x_test base on x_train scale, not scaling them together. And the y_train and y_test should not be scaling.
Lets learn 👍
Hello, I did scaled the data before splitting, but yeah we can do it after splitting also And for y_test, i have inverse transformed the scaled values and it is not required to scaled those values as we are not using them in the training.
Ypu deserve Like and subscribe bro
Hi sir how to predict the stocks price for next 1 month
Hi, You can watch this video where I have already explained how to predict future days stock price values : ruclips.net/video/DdsGk6sezoc/видео.html
49:23 Sir can you please make a separate video to elaborate this part of the time stem because I am facing a hard time to understand this and I really need a video to understand for my final year project.
Please sir help me 🙏🙏🙏🙏
Hi, will do the video on that web app part soon..
Do you have a documentation?
Hi, there is no specific documentation i did,
you can follow up the video and find the coding files here : github.com/KDcodeyt/stock_price_prediction
please subscribe if it's helpful :)
Can i use this for final year project? Will they accept this ??
Yes, of course.
you can use it for your final year project.
stay tuned for more final year project videos
pls subscribe if it's helpful :)
Please help me out I am facing an error in vs code in first part in import I have already installed the libraries then too it is showing module not found
Please Reply sir
Hi, if you can elobrate the error and tell us what exactly the error says, it will be more useful to solve it.you can connect with us on insta directly and share the error pic, we will try our best to resolve it..
Please accept the request
bro can you show the accuracy for this model?(how to find it)
Hi, you can check the loss in the trained model verbose and i took rmse as one of the measurement for accuracy
Hey how to apply source code please help me iam unable to apply source code
Hi, Source code link is provided in the description
Import "keras.models" could not be resolvedPylancereportMissingImports
kindely provide requirements.txt file too we are unable to run this above code....due to version issue
Hi, these are the main packages version we used in this project
python version - 3.11.5 and tensorflow version - 2.15.0
@@KDcodeyt Also plz tell me what is the accuracy of this model
@@KDcodeyt Kindely update the requirements.txt file it is throwing error's even after installing the suggested
Bro can you teach how to predict for nifty and bank nifty for yearly , week, daily and intraday without any indicator
will post a video very soon
@@KDcodeyt thank you 👍
Hi, checkout this video : ruclips.net/video/B6eX2UG_vF0/видео.html
@@KDcodeyt Bro is it possible to predict time on intraday chart?
Bhai Mera code to run hi nhi ho RHA h end m dikha RHA h
can't load model synchronusly
JB webbrowser PR jata h😢
Bhai sb kuch kr lia adhi sa jada video delh ly 55 minutes tk
Pr jo mera model hai latest_stock_price.keras vo bhi ban gya mera folder m show ho rha h
And in the last jb mna python code likha vs code mai aur terminal m ja kr k "strealit run "my_project_.py" likha to web browser open to hua pr usma dikha rha h ki vo model ko synchronusly load nhi kr pa rha h
Phir mna apka code ko copy kia aur usa run kia usma bhi error a rha h same please help me mna apki video 10 hr + spend kia h ek ek line likhi aur jb khtm hone wali thi asa error a rha h dimag khrb ho rha h
You can try the following solutions:
1. check the tensorflow version it should be same while building the model and in the app environment
2. check if you have mentioned the model path properly in the web app.
3. check if streamlit installed correctly.
4. Try to build and import the model in the colab once, so you won't get into any versions incompatibility issues.
After all these, If issue still persist you can connect with us on any of the social media platforms.
pls subscribe if it's helpful :)
@@KDcodeyt bhai nhi ho rha sb try kr lia
Source Code plz??
Please check the description
Hi,
I am unable to import
From Keras.models import sequential and
From Keras.models import Dense,LSTM
Though I have installed keras in my python virtual env, it says module not found. I also tried calling keras from tensorflow but that didn’t work as well.
It throws an error saying’ no module named distutils’
Seems like distutils is deprecated from python 3.12.
Can u pls help to resolve this?
Hi, might be the version incompatibility issues,
you can try out python version - 3.11.5 and tensorflow version - 2.15.0
these are the versions used in this project.
did you fix?
please how to show the model.summary in this website
Hi, you can try this code
st.write(model.summary())
if this didn't work try this
model_summary = str(model.to_json())
model_summary = json.loads(model_summary)
st.write(model_summary)
Hope it's useful.
please subscribe for more videos :)
Please check again, what does the source code mean? It doesn't work
10, 20, 30, 40, 50, 60, 70, 80, 90, 100
MA for 5 days ==> null null null null 30 40 50 60 70 80
Hi, could you elaborate what didn't work for you
@@KDcodeyt When I run to this line of code
10, 20, 30, 40, 50, 60, 70, 80, 90, 100
MA for 5 days ==> null null null null 30 40 50 60 70 80
It gives the following error
Cell In[52], line 3
MA for 5 days ==> null null null null 30 40 50 60 70 80
^
SyntaxError: invalid syntax
Hi @@dqhieu Thanks for pointing out this,
You just have to comment out that cell then everything will work fine.
I just updated the code, you can have a look. please subscribe if it's helpful :)
Sir please help me out I am getting a syntax error --MA for 5 days ==> null null null null 30 40 50 60 70 80
^
SyntaxError: invalid syntax
Hi, you can comment down that cell and continue with rest of the cells :)
if the issue still persists contact us on insta