Decision Trees & Stock Market Analysis Predictions | Machine Learning # 14

Поделиться
HTML-код
  • Опубликовано: 19 сен 2024

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

  • @danmcgloven8169
    @danmcgloven8169 3 года назад +914

    00:00:00 Introduction
    00:01:11 Decision Tree Classifiers
    00:02:31 The CART Algorithm
    00:05:39 Gini Impurity
    00:10:43 CART Sub-optimality
    00:13:31 Entropy
    00:21:52 scikit-learn: Decision Tree Classifiers
    00:25:38 Viewing decision trees using graphicviz
    00:30:41 Plotting Decision Boundaries on Python
    00:38:08 Soft Decision Tree Classifiers
    00:40:45 Decision Tree Classifiers & Rotation Sensitivity
    00:46:42 Decision Tree Regression
    00:49:57 scikit-learn: Decision Tree Regressor
    00:56:11 Stock Market Analysis: Decision Trees Predicting Buy & Sell Signals

  • @aishahoura2619
    @aishahoura2619 3 года назад +97

    Love this part so much 00:56:11 Stock Market Analysis: Decision Trees Predicting Buy & Sell Signals
    Very useful

    • @ferminromojr.5011
      @ferminromojr.5011 2 года назад

      no clue how to interoperate the decision tree, I understand that 1 means buy and 2 means sell, but I dont understand where to look for the stock price? meaning if a high is EX: 112 then buy, where do I look in the decision tree for that?

  • @ottffsse12345678
    @ottffsse12345678 3 года назад +2032

    I'm sorry to inform you that your model suffers from a data leak between training and testing, so the results are not actually right.

    • @danmcgloven8169
      @danmcgloven8169 3 года назад

      Some haters commenting here 😅
      I literally tried it and it gave me satisfactory results

    • @ottffsse12345678
      @ottffsse12345678 3 года назад +3

      @@danmcgloven8169 What does 'haters' have to do with it anyway? Why just throw away silly words, I tried to help in my experience and show that there's an internal mistake when you make a prediction about a few days ahead and then mix the data so some leaks to the test. Ask yourself why it doesn't give good results to the forecast for one day ahead, but excellent results for 60 days ahead. All I'm saying is that in practice this model is not equal and the test data is incorrect.

    • @swattikchakrabarty9646
      @swattikchakrabarty9646 3 года назад +1

      Hey! thanks for pointing it out. Can you please also tell how to get rid of the leakage?
      Again thanks!

    • @marilynngrenz2137
      @marilynngrenz2137 3 года назад

      Works perfectly for data leakage.

    • @zack2415
      @zack2415 2 года назад +1

      Can you pinpoint where is the leakage ?

  • @Ali-dp2gz
    @Ali-dp2gz 3 года назад +29

    Machine Learning is so much is intuitive, fun and easy. Thanks to Ahmad Bazzi !

  • @danmcgloven8169
    @danmcgloven8169 3 года назад +8

    Very good lecture Prof. Ahmad Bazzi !

  • @bellamany3750
    @bellamany3750 3 года назад +9

    DecisionTreeClassifier() actually works for trading signals 👍🏻

    • @danmcgloven8169
      @danmcgloven8169 3 года назад

      Hey there lil mama

    • @danmcgloven8169
      @danmcgloven8169 3 года назад

      i can apply DecisionTreeClassifier on other stuff if you know what i mean 😀😜

    • @aishahoura2619
      @aishahoura2619 3 года назад +1

      I tried it for cryptocurrency. Good results. Lost 200 made 300 USD tether.

    • @xintel2001
      @xintel2001 3 года назад

      One question that boggles me is how to use this to predict if I should buy tomorrow or in the coming week. I saved the model using pickle, but then when I load the model using pickle.load, how to I get predictions using loaded_model.predict for a future date, like tomorrow or next week?

  • @mustafayoruk9483
    @mustafayoruk9483 3 года назад +49

    SAFEMOON crew, where are you ? 🚀

    • @aishahoura2619
      @aishahoura2619 3 года назад

      I'm all in on safemoon @Mustafa 💰

  • @thelinuxmann4659
    @thelinuxmann4659 3 года назад

    Very good lecture @Ahmad Bazzi 👍

  • @aishahoura2619
    @aishahoura2619 3 года назад

    Thank you Ahmad

  • @catkap5372
    @catkap5372 3 года назад +1

    Gini index has been introduced by Breiman and Entropy by Claude Shannon.

  • @OTKG
    @OTKG 3 года назад

    entendible

  • @mucahitklnc9576
    @mucahitklnc9576 3 года назад

    I'm currently learning Decision Trees and it was really ambiguous , this has helped a lot, I also do not need to understand the equations explained here because it is all intuitions. Thanks a million Professor Bazzi 👏🏻

  • @omermutluahraz5261
    @omermutluahraz5261 2 года назад

    For those asking about decision trees. According to wikipedia, a decision tree is a decision support tool that uses a tree-like model of decisions and their possible consequences, including chance event outcomes, resource costs, and utility. It is one way to display an algorithm that only contains conditional control statements.

  • @yasirklc5532
    @yasirklc5532 3 года назад

    Ahmad has been consistent since 2018, video after video, energy on top of energy. He's charged up. Enough said.

  • @peppemelia
    @peppemelia 3 года назад +10

    Liked and subbed

  • @user-on8tf1wm6e
    @user-on8tf1wm6e 2 года назад

    I tried this yesterday on some stocks in my portfolio and worked pretty fine :) Thanks a lot Ahmad !

  • @omerz54
    @omerz54 3 года назад

    Best Explanation Ever!!!

  • @ferminromojr.5011
    @ferminromojr.5011 2 года назад

    no clue how to interoperate the decision tree, I understand that 1 means buy and 2 means sell, but I dont understand where to look for the stock price? meaning if a high is EX: 112 then buy, where do I look in the decision tree for that?

  • @perumahandicianjur1247
    @perumahandicianjur1247 2 года назад

    Mantap mamang

  • @yigitdbk1190
    @yigitdbk1190 3 года назад

    You're awesome , never learned anything better than this 🥺

  • @kimberlynilsen532
    @kimberlynilsen532 3 года назад

    Thanks a lot Ahmad 👌🏻

  • @xintel2001
    @xintel2001 3 года назад

    Thanks for this tutorial. I like your simplistic explanation. One question that boggles me is how to use this to predict if I should buy tomorrow or in the coming week. I saved the model using pickle, but then when I load the model using pickle.load, how to I get predictions using loaded_model.predict for a future date, like tomorrow or next week?

  • @alicobayraktar9128
    @alicobayraktar9128 3 года назад

    #underrated

  • @candishagens988
    @candishagens988 3 года назад

    Perfect !!

  • @izaiahcarolyn1153
    @izaiahcarolyn1153 3 года назад

    Simply Fantastic!

  • @rogelioroy5134
    @rogelioroy5134 3 года назад

    Perfect place to revise my :)

  • @pubg_tr2308
    @pubg_tr2308 2 года назад

    Thanks for an awesome lecture !

  • @bakialkan2693
    @bakialkan2693 3 года назад

    Very precious sir !

  • @jrinhern23
    @jrinhern23 3 года назад

    Thanks sir.

  • @josephinebridgett1097
    @josephinebridgett1097 3 года назад

    I LOVE YOU AHMAD BAZZI ❤️

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

    This model is wrong --
    you have used close, high, low prices, and volume as features but it does not make sense because in real-time prediction if u have these values anyone can make a buy/sell decision.....if open

  • @hedeakbulut7217
    @hedeakbulut7217 2 года назад

    Please can I have the code for this ?

  • @dumbhub197
    @dumbhub197 3 года назад

    Appreciate it bro <3 :) :D

  • @bilalsonsesask4830
    @bilalsonsesask4830 3 года назад

    Hey you, if you read this, you are awesome.

  • @cangokalp4886
    @cangokalp4886 3 года назад

    T.H.A.N.K. Y.O.U. S.O. M.U.U.U.U.U.C.H!!