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

Комментарии • 68

  • @mrsmbbieber3492
    @mrsmbbieber3492 4 месяца назад +1

    Please provide source code? 🙏🏻

    • @KDcodeyt
      @KDcodeyt  4 месяца назад +2

      Hi, Here is the source code : github.com/KDcodeyt/stock_price_prediction
      please Subscribe if it's helpful

  • @tarandeep6861
    @tarandeep6861 5 дней назад

    amazing and easy to understand explanation
    your are doing great man

  • @shrutideshpande7847
    @shrutideshpande7847 3 месяца назад +1

    Amazing explanation !

  • @leon9144
    @leon9144 Месяц назад

    Fantastic explanation!

  • @tansutazegul8297
    @tansutazegul8297 Месяц назад

    you are good man!!!

  • @swaynz7006
    @swaynz7006 Месяц назад +1

    Bro pls dont stop to teaching us, ur guide is really helpfull

    • @KDcodeyt
      @KDcodeyt  Месяц назад

      I'm glad I could be helpful, will keep on posting interesting videos.
      Stay tuned ❤

  • @escoladetecnologia
    @escoladetecnologia 2 месяца назад +2

    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!

  • @princedas8150
    @princedas8150 2 месяца назад +4

    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.

  • @user-fx5xc8rn4x
    @user-fx5xc8rn4x 21 день назад

    sir the last step to save the model is not creating any file in the given location then how to use it vs code?

  • @emmanuelmakume8423
    @emmanuelmakume8423 Месяц назад

    Hi there, great video.
    When splitting the data, is there no easier way to do it using train_test split package?

    • @KDcodeyt
      @KDcodeyt  Месяц назад

      Yes, it will be possible, we can use train test split instead of doing it manually

  • @nazarmohammed5681
    @nazarmohammed5681 Месяц назад

    sir what is the accuracy of the above code

  • @RitikaBagga-st3xi
    @RitikaBagga-st3xi 10 дней назад

    I finished almost but for inverse predictions I get scalar not defined

  • @DilipKumar-lf3fq
    @DilipKumar-lf3fq Месяц назад

    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 ...

    • @KDcodeyt
      @KDcodeyt  Месяц назад

      Hi, you can try converting the 1-D array to 2-D using numpy library
      stay tuned for more videos :)

  • @madhudas7005
    @madhudas7005 2 дня назад

    I cannot read the .keras files

  • @mccheerssurya9151
    @mccheerssurya9151 2 месяца назад

    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

    • @KDcodeyt
      @KDcodeyt  Месяц назад

      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

  • @sa_official5769
    @sa_official5769 2 месяца назад

    make a video on crypto price prediction if possible.

    • @KDcodeyt
      @KDcodeyt  2 месяца назад

      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 :)

  • @refdinalal
    @refdinalal 2 месяца назад

    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 👍

    • @KDcodeyt
      @KDcodeyt  2 месяца назад

      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.

  • @dimplemithiya9692
    @dimplemithiya9692 Месяц назад

    Ypu deserve Like and subscribe bro

  • @chandranandan2763
    @chandranandan2763 2 месяца назад +1

    Hi sir how to predict the stocks price for next 1 month

    • @KDcodeyt
      @KDcodeyt  2 месяца назад +1

      Hi, You can watch this video where I have already explained how to predict future days stock price values : ruclips.net/video/DdsGk6sezoc/видео.html

  • @princedas8150
    @princedas8150 2 месяца назад

    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 🙏🙏🙏🙏

    • @KDcodeyt
      @KDcodeyt  2 месяца назад

      Hi, will do the video on that web app part soon..

  • @swatiparekh
    @swatiparekh 3 месяца назад

    Do you have a documentation?

    • @KDcodeyt
      @KDcodeyt  3 месяца назад

      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 :)

  • @GenshinId
    @GenshinId 2 месяца назад

    Can i use this for final year project? Will they accept this ??

    • @KDcodeyt
      @KDcodeyt  2 месяца назад

      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 :)

  • @SadiyaShaikh-zf9nc
    @SadiyaShaikh-zf9nc Месяц назад

    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

    • @SadiyaShaikh-zf9nc
      @SadiyaShaikh-zf9nc Месяц назад

      Please Reply sir

    • @KDcodeyt
      @KDcodeyt  Месяц назад

      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..

    • @SadiyaShaikh-zf9nc
      @SadiyaShaikh-zf9nc Месяц назад

      Please accept the request

  • @NaguMagadum
    @NaguMagadum 2 месяца назад

    bro can you show the accuracy for this model?(how to find it)

    • @KDcodeyt
      @KDcodeyt  2 месяца назад

      Hi, you can check the loss in the trained model verbose and i took rmse as one of the measurement for accuracy

  • @AITech-rj2nd
    @AITech-rj2nd 2 месяца назад

    Hey how to apply source code please help me iam unable to apply source code

    • @KDcodeyt
      @KDcodeyt  2 месяца назад

      Hi, Source code link is provided in the description

  • @okanaltunbascom
    @okanaltunbascom Месяц назад

    Import "keras.models" could not be resolvedPylancereportMissingImports

  • @nazarmohammed5681
    @nazarmohammed5681 Месяц назад

    kindely provide requirements.txt file too we are unable to run this above code....due to version issue

    • @KDcodeyt
      @KDcodeyt  Месяц назад

      Hi, these are the main packages version we used in this project
      python version - 3.11.5 and tensorflow version - 2.15.0

    • @nazarmohammed5681
      @nazarmohammed5681 Месяц назад

      @@KDcodeyt Also plz tell me what is the accuracy of this model

    • @nazarmohammed5681
      @nazarmohammed5681 Месяц назад

      @@KDcodeyt Kindely update the requirements.txt file it is throwing error's even after installing the suggested

  • @ashoksamuel
    @ashoksamuel 3 месяца назад

    Bro can you teach how to predict for nifty and bank nifty for yearly , week, daily and intraday without any indicator

    • @KDcodeyt
      @KDcodeyt  3 месяца назад

      will post a video very soon

    • @ashoksamuel
      @ashoksamuel 3 месяца назад

      @@KDcodeyt thank you 👍

    • @KDcodeyt
      @KDcodeyt  3 месяца назад

      Hi, checkout this video : ruclips.net/video/B6eX2UG_vF0/видео.html

    • @ashoksamuel
      @ashoksamuel 3 месяца назад

      @@KDcodeyt Bro is it possible to predict time on intraday chart?

    • @rupeshsharma1719
      @rupeshsharma1719 2 месяца назад

      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😢

  • @rupeshsharma1719
    @rupeshsharma1719 2 месяца назад

    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

    • @KDcodeyt
      @KDcodeyt  2 месяца назад

      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 :)

    • @rupeshsharma1719
      @rupeshsharma1719 2 месяца назад

      @@KDcodeyt bhai nhi ho rha sb try kr lia

  • @zeeshanelahi6390
    @zeeshanelahi6390 2 месяца назад

    Source Code plz??

    • @KDcodeyt
      @KDcodeyt  2 месяца назад

      Please check the description

  • @venuanand4615
    @venuanand4615 2 месяца назад

    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?

    • @KDcodeyt
      @KDcodeyt  2 месяца назад

      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.

    • @okanaltunbascom
      @okanaltunbascom Месяц назад

      did you fix?

  • @user-jo6zc4tv1j
    @user-jo6zc4tv1j 2 месяца назад

    please how to show the model.summary in this website

    • @KDcodeyt
      @KDcodeyt  2 месяца назад

      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 :)

  • @dqhieu
    @dqhieu 3 месяца назад

    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

    • @KDcodeyt
      @KDcodeyt  3 месяца назад

      Hi, could you elaborate what didn't work for you

    • @dqhieu
      @dqhieu 3 месяца назад

      @@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

    • @KDcodeyt
      @KDcodeyt  3 месяца назад +1

      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 :)

  • @SadiyaShaikh-zf9nc
    @SadiyaShaikh-zf9nc Месяц назад

    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

    • @KDcodeyt
      @KDcodeyt  Месяц назад +1

      Hi, you can comment down that cell and continue with rest of the cells :)
      if the issue still persists contact us on insta