Learn How to PREDICT TRENDS with Python and Machine Learning

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ม.ค. 2025

ความคิดเห็น • 65

  • @thinhphamthe7033
    @thinhphamthe7033 4 หลายเดือนก่อน +1

    I want to add the holidays dataframe and include a few regressors for the model. Do you know how to add them??

  • @cycledublin
    @cycledublin 24 วันที่ผ่านมา

    It would have been interesting to run the prediction for a historic time period to compare the prediction with what actually happened. That's how we usually test our models!

  • @dhanushranga1
    @dhanushranga1 11 หลายเดือนก่อน +2

    Interesting question here, can u analyse volume patterns to predict pump and dump schemes.

    • @SMDS_Studio
      @SMDS_Studio  11 หลายเดือนก่อน +1

      Ig you could try to use FBPROPHET for that but I am not really sure
      Although, it might work..

  • @Just_Everything_
    @Just_Everything_ 5 หลายเดือนก่อน

    brother i want to build the same project but i want to provide my data set in csv format is it possible and if it is possible what changes should i make?

  • @HiltonFernandes
    @HiltonFernandes 4 หลายเดือนก่อน

    Congratulations for your excellent video. Never heard about neuralprophet library, and will give it a try.
    Thank you !

    • @SMDS_Studio
      @SMDS_Studio  4 หลายเดือนก่อน

      Glad it was helpful!

  • @justinnacu
    @justinnacu 11 หลายเดือนก่อน +1

    Great video bro! Subscribed!

    • @SMDS_Studio
      @SMDS_Studio  11 หลายเดือนก่อน +1

      Awesome! Thank you!

  • @udhayaranijeeva3568
    @udhayaranijeeva3568 6 หลายเดือนก่อน

    Could you please assist me in resolving this issue below?
    I'm attempting to load the neuralprophet trained model from a different device.encountering a"Error": "[WinError 5] Access is denied:'model trained directory name ' " on model.predict(df) line.
    How do I figure this out...?

    • @SMDS_Studio
      @SMDS_Studio  6 หลายเดือนก่อน

      Are you enccountering this in google collab?

  • @noahlam5415
    @noahlam5415 10 หลายเดือนก่อน +1

    I’m confused on what data the model is using to predict the “actual prediction”. If it is predicting the only dataset that you gave it, what is it using to make those predictions

    • @SMDS_Studio
      @SMDS_Studio  10 หลายเดือนก่อน

      I have split the dataset such that I am only providing 80 percent of the actual data and the rest 20 is what the machine hasn't seen yet and we make it predict on these dates and compare with the actual values

    • @noahlam5415
      @noahlam5415 10 หลายเดือนก่อน

      @@SMDS_Studiowhere exactly are you splitting it into 80 and 20 because i dont see that in the code. Is that what the model.fit() does for you?

    • @SMDS_Studio
      @SMDS_Studio  10 หลายเดือนก่อน

      If you have a look closely, I have removed the recent 20 percent dates and provided only the first 80 percent
      Using slicing

    • @noahlam5415
      @noahlam5415 10 หลายเดือนก่อน

      @@SMDS_Studiowhere do you do that at? I’m not seeing it in the code. Unless that is what model.fit(Stocks) does?

  • @hamzah7719
    @hamzah7719 4 หลายเดือนก่อน +1

    Thank you very interesting.

  • @nicowalsen
    @nicowalsen 11 หลายเดือนก่อน +2

    Very consice, thank you a lot!

    • @SMDS_Studio
      @SMDS_Studio  11 หลายเดือนก่อน

      Glad it was helpful!

  • @amblessedcoding
    @amblessedcoding ปีที่แล้ว +2

    More videos on this thank you i love your teaching , you are very good in teaching

    • @SMDS_Studio
      @SMDS_Studio  ปีที่แล้ว +2

      Definitely! Infact, we just released a video on actually performing background removal of images using python's scikit learn....This is very similar and you might like it very well! I am SO GLAD you like my teaching style!
      here's is the link:- th-cam.com/video/KeIP7tz-33U/w-d-xo.html

  • @alisher.m
    @alisher.m ปีที่แล้ว +3

    Thank you, good tutorial

    • @SMDS_Studio
      @SMDS_Studio  ปีที่แล้ว +1

      Thank you! I'm glad I could confuse you just enough to make it seem like you learned something. 😉
      anyways, you might like our image processing video which is kind of similar to this video when you see
      here's the link:- th-cam.com/video/KeIP7tz-33U/w-d-xo.html

  • @fluxstandard8364
    @fluxstandard8364 ปีที่แล้ว +1

    what is the programme he is writing in - i am using cmd

  • @MrEdavid4108
    @MrEdavid4108 3 หลายเดือนก่อน

    This is great work and very interesting. I did notice though when the predicted graph was created its too small, making the X axis' values run into one another, which makes the graph inaccurate. Is there a way to make the graph bigger? I tried various MatPlotLib functions such as set_figwidth, tight, and others but nothing will make the graph larger. Thank you!

    • @SMDS_Studio
      @SMDS_Studio  3 หลายเดือนก่อน

      Sure there is,
      You can actually tilt the words by an angle, giving it more room for existance.
      Additionally, I am sure there is a function to only display xvalues at regular intervals
      I recommend you check on google or directly ask chatgpt

  • @frankdearr2772
    @frankdearr2772 ปีที่แล้ว +1

    Great topic, thanks 👍

    • @SMDS_Studio
      @SMDS_Studio  ปีที่แล้ว +1

      My pleasure!
      In fact, we are working on similar type videos that are easier to replicate as well
      Hope you stay tuned!

  • @madhuragrawal22
    @madhuragrawal22 ปีที่แล้ว +1

    Best video ❤

    • @SMDS_Studio
      @SMDS_Studio  ปีที่แล้ว

      So nice to get the acknowledgement!
      We would be much much delighted if you decide to spend more time watching our videos 😉

  • @TienTran-dn3jl
    @TienTran-dn3jl ปีที่แล้ว +1

    This is so exciting mate. Thanks!

    • @SMDS_Studio
      @SMDS_Studio  ปีที่แล้ว +1

      You bet! 😂
      Anyways, don't consider this a promotion but I am so sure you are going to like the video talking about building a language translator. Do check it out
      th-cam.com/video/OwA8mszL38w/w-d-xo.html

  • @DalazG
    @DalazG ปีที่แล้ว +2

    I'm trying to make a machine learning model for creating an automated forex trading strategy.
    Curious if this transferable?

    • @SMDS_Studio
      @SMDS_Studio  ปีที่แล้ว +3

      Well, actually this is just a pretrained model
      We just get the weights on to our local machine and then use .predict function
      This way of using a pretrained model mostly works in any project
      Again, code file in the description
      Cheers

  • @trendsculture
    @trendsculture 5 หลายเดือนก่อน

    Can we do it to predict winning lottery number

    • @SMDS_Studio
      @SMDS_Studio  5 หลายเดือนก่อน +1

      It might not be very accurate
      As you know lottery is very very very vague

    • @trendsculture
      @trendsculture 5 หลายเดือนก่อน +1

      @@SMDS_Studioyes i know but if we had excell sheet with all numbers 99 results can we predict the next winning lottery winning numbers with machine learning or data analysis or some AI statistics or mathematics !? Can we try it bro just for fun I will send you the excel!?

  • @MinerH2O
    @MinerH2O ปีที่แล้ว +7

    HI, I enjoyed the code. I tried running your script but I'm getting a compatibility error between Python latest version and NeuralProphet. What version of Python are you using?

    • @SMDS_Studio
      @SMDS_Studio  ปีที่แล้ว +6

      Hi! I am glad you enjoyed the code. Python 3.9 was used in this video. I am not sure if your python version is updated to the latest and I recommend trying to upgrade it to 3.9 or higher, as NeuralProphet may have updates that align better with newer Python releases. Let me know if that helps!

  • @nicholasfriedrich4549
    @nicholasfriedrich4549 11 หลายเดือนก่อน +1

    Two questions:
    1. You trained the model on the training data, then used it to predict the training data, so naturally it will look accurate. What was the idea or purpose behind this? I am genuinely just curious to see if I am missing something
    2. The model forecasts for weekends too and Saturday and Sunday are included in time series. Naturally, stock's do not trade on weekends. Can this be adapted in the model? Perhaps the model can only identify existing trends?

    • @SMDS_Studio
      @SMDS_Studio  11 หลายเดือนก่อน +1

      Let's answer this 1 by 1
      1.) So I took the first 80 percent of the data and gave it to the model for training.
      Now it doesn't know anything about the rest 20 percent. Then I made predictions with the model for the duration of which we know the actual values but then the model doesn't
      Then I plotted both actual and predicted values to compare
      2.) Here, I just use the forecast function which will give predictions continuously for the mentioned days
      So this goes to say, that the project itself is just a demonstration of how the prophet model
      Where as when it comes to real world stocks project, there are many other factors we have to consider for modeling
      We have planned a sequel video on that....soon

    • @joelknapp9112
      @joelknapp9112 7 หลายเดือนก่อน

      @@SMDS_Studio this helped me a lot with time series forecasting. I'm curious when you split the model 80/20 though? I don't see that step in the video. Thanks for helping me out!

  • @TradeNvesteasy
    @TradeNvesteasy ปีที่แล้ว +1

    That's awesome 🎉

    • @SMDS_Studio
      @SMDS_Studio  ปีที่แล้ว +1

      I value your acknowledgement ;)
      In fact, I believe you would like our latest video as well
      Here's the link:- th-cam.com/video/FP10wx_yP3A/w-d-xo.html

  • @79_e665
    @79_e665 ปีที่แล้ว +2

    excellent. Thank you!

    • @SMDS_Studio
      @SMDS_Studio  ปีที่แล้ว +2

      SO happy that you liked this video! well continue to post such type of videos upto your expectations

  • @mohammedsaleh-ck8jf
    @mohammedsaleh-ck8jf 11 หลายเดือนก่อน +1

    thanks bro 👋

    • @SMDS_Studio
      @SMDS_Studio  11 หลายเดือนก่อน

      Welcome 👍

  • @stukannote3
    @stukannote3 ปีที่แล้ว +1

    I ran your code in Pycharm and it failed to run at the line:
    stocks = pd.read_csv('stock_data_Samsung.csv')
    unless I change it to
    stocks: DataFrame = pd.read_csv('stock_data_Samsung.csv')

    • @SMDS_Studio
      @SMDS_Studio  ปีที่แล้ว +2

      This I am not really sure, I mean it should be working in the first case itself but then I recommend you to have a look at your python version

  • @deniszhuravlev9874
    @deniszhuravlev9874 ปีที่แล้ว +1

    How did you make it to work?
    It doesn't install in anaconda for jupyter notebook.
    It installs in google colab, but when I tries to train it, it reset colab processes.

    • @SMDS_Studio
      @SMDS_Studio  ปีที่แล้ว +1

      I recommend you taking a look at the python version you are using..
      NeuralProphet works best on python versions 3.9 or above
      Let me know if it helps

    • @manwong9852
      @manwong9852 ปีที่แล้ว +1

      yes ,i cant run python 3.6 & python 3.10 but can run python 3.9

  • @ikkeik6075
    @ikkeik6075 11 หลายเดือนก่อน +1

    Great.

    • @SMDS_Studio
      @SMDS_Studio  11 หลายเดือนก่อน

      Appreciate your response 😃. Thanks!!

  • @stukannote3
    @stukannote3 ปีที่แล้ว +5

    By the way, please provide code listing if you can!

    • @SMDS_Studio
      @SMDS_Studio  ปีที่แล้ว +3

      My Bad, Here you go:-
      github.com/SMDS-Studio/Predict-Trends-Code-File/blob/main/NeuralProphet.ipynb

  • @MrHarsha8
    @MrHarsha8 11 หลายเดือนก่อน +1

    subscribed..

    • @SMDS_Studio
      @SMDS_Studio  11 หลายเดือนก่อน

      Amazing! Ty 😊

  • @block_hacks
    @block_hacks ปีที่แล้ว +1

    can you try this for bitcoin please

    • @SMDS_Studio
      @SMDS_Studio  ปีที่แล้ว +1

      As I mentioned in the video, the model itself is very unreliable and by no means this would be a financial advice
      Ofc you can use the bitcoin data to see predictions but again I wanna say that this is just a representation of how a prophet model works

  • @HansMcMurdy
    @HansMcMurdy ปีที่แล้ว +1

    lol and here is where you lose all your money.
    *video ends*
    🤣

    • @SMDS_Studio
      @SMDS_Studio  ปีที่แล้ว +2

      😂Think of a Machine giving a reply to this