How to Implement Decision Trees in Python (Train, Test, Evaluate, Explain)

How to Implement Decision Trees in Python (Train, Test, Evaluate, Explain)

Mısra Turp

3 года назад

78,336 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@isitpokharel491
@isitpokharel491 - 26.11.2023 18:31

Quick question! 😊 Does the train_test_split function automatically remove the target variable from X_test, or should it be removed manually?

I followed along with your video and encountered something interesting. When I didn't specify max_depth and ran the model, I got an accuracy score of 100%. I'm a bit confused and wondering whether it's related to the target variable being present in the test set. Any insights or explanations would be greatly appreciated!

Ответить
@johnturner8347
@johnturner8347 - 15.09.2023 15:31

Walked away from my course learning material not understanding this and gained so much more from this video. Thanks!

Ответить
@horst1991
@horst1991 - 06.07.2023 17:20

thank you Misra, you help me with my master thesis :)

Ответить
@rajamoorthy1969
@rajamoorthy1969 - 14.06.2023 17:29

Amazing explanation Misra. That unique smile on your face adds to the way you explain the complex things. I have subscribed to your channel. Thanks

Ответить
@mohammedtaherhabeeb3049
@mohammedtaherhabeeb3049 - 03.05.2023 20:56

how to implement it online

Ответить
@AHDD142
@AHDD142 - 12.04.2023 20:36

Great love ya!

Ответить
@ankushfreefire8910
@ankushfreefire8910 - 04.04.2023 21:28

thank you a lot and ramadan kareem

Ответить
@dev77cmd
@dev77cmd - 30.03.2023 17:48

A huge thank you for your effort! I understood it easily and was able to do my assignment!!!

Ответить
@adnanemehdaoui5487
@adnanemehdaoui5487 - 29.03.2023 20:41

thanks and Ramadan mubarek for all mosslims people

Ответить
@user-tj2qy3xw9o
@user-tj2qy3xw9o - 23.03.2023 11:37

Hey! Such an informative video. I just want to learn one thing, that is how do I enter a new list (consisting of only the features) and get my output as whether it is malignant or benign? Thanks a lot.

Ответить
@MisbahAli-cq6jv
@MisbahAli-cq6jv - 25.02.2023 08:46

best guide for beginners, keep it up

Ответить
@abhisheksinghyadav4970
@abhisheksinghyadav4970 - 19.02.2023 16:46

please explain eda first

Ответить
@Moiez101
@Moiez101 - 15.02.2023 16:37

Misra, thank you for this great "code-along". It really helped get a hands-on experience for the concepts that I'm learning.

Ответить
@jmdiassibonatama4355
@jmdiassibonatama4355 - 07.02.2023 03:11

Worderfull. Thanks

Ответить
@eliananavarro3434
@eliananavarro3434 - 17.01.2023 23:42

Excellent

Ответить
@thebropill4242
@thebropill4242 - 12.01.2023 22:49

How did you fo the code for feature importance i could not see line 21 properly

Ответить
@chachii1143
@chachii1143 - 03.01.2023 23:42

Hello, can you please help me. I'm using this decision tree model as a recommender system but my model can only recommend only one output. How can i recommend multiple outputs using only one sample data?

Ответить
@mandadirohitreddy8086
@mandadirohitreddy8086 - 02.01.2023 16:06

Very good explanation mam I like it

Ответить
@bl4z3_kanazaki
@bl4z3_kanazaki - 31.12.2022 19:20

thank you so muchhh Mrs!!! I found this video for hours...

Ответить
@souhamahmoudi7745
@souhamahmoudi7745 - 11.11.2022 20:38

Its really appreciated

Ответить
@xin2668
@xin2668 - 09.11.2022 21:00

Can't believe this is free! it is much well explained comparing to what my lectures and tutor's did! Definitely recommended and Subscribed! Thank you so much!

Ответить
@baneous18
@baneous18 - 30.10.2022 02:03

Why am i getting accuracy score of 1?(i am using my own dataset after feature selection)

Ответить
@babatundeayinla3273
@babatundeayinla3273 - 14.10.2022 11:07

Delivered in a friendly manner. Love it.

Ответить
@faelo_devia
@faelo_devia - 26.09.2022 09:21

I love you!

Ответить
@GunishaDutt
@GunishaDutt - 07.09.2022 09:13

Great video! subscribed to your channel. Good luck :)

Ответить
@nurkholis5489
@nurkholis5489 - 31.08.2022 00:35

Miss can u show me how to use Information_gain source code in Dtree using sklearn library?? 🙂

Ответить
@tarblood
@tarblood - 28.08.2022 11:44

Thanks Misra , you are expalining purely.

Ответить
@jakobs4338
@jakobs4338 - 01.08.2022 13:09

Dear Misra, how could I conduct a multi-class prediction? Respectively what parameters would need to be changed to do so?

Ответить
@jakobs4338
@jakobs4338 - 31.07.2022 22:23

Is this actually a clustering algorithm only? How does the algorithm know what we are looking for as a target prediction, Misra? How is it possible that 'target' is a column of the 'data' but not included in the dataframe which again is based on 'data' from sklearn library?

Ответить
@laproff8290
@laproff8290 - 27.07.2022 05:15

Hello guys, I’m not a student but have a question that I was hoping someone could help me with. Is there a minimum amount of data required per variable your testing when proceeding with this form of machine learning? Any guidance would be much appreciated

Ответить
@KamiK4ze
@KamiK4ze - 05.07.2022 18:25

Decision trees use supervised learning right? I don't understand at which point we tell the algorithm which is the correct data and which isn't (is the dataset already labelled)? Wouldn't we need to give the data and say this data = cancerous and give the other data and say this data = benign etc

Ответить
@ZzZzZiggy
@ZzZzZiggy - 29.06.2022 23:26

Wonderfully explained! Quite new to the data science and ML world and it's all so very exciting!

Ответить
@dk1685
@dk1685 - 27.06.2022 11:02

Hi. I am studying this at the moment and your explanation is superb. You include what is relevant and what is useful without unnecessary deviation into obscurities or irrelevancies. Your explanation is perfect, Misra. Thankyou.

Ответить
@andrewsemenenko8826
@andrewsemenenko8826 - 18.06.2022 15:29

Really great explanation, thank you!

Ответить
@maximilianschutte9531
@maximilianschutte9531 - 11.06.2022 11:22

is it possible to traverse a decision tree based on user input and give a prediction? thx

Ответить
@keshavgokhaledivine
@keshavgokhaledivine - 27.05.2022 14:29

Thanks for the video.

Ответить
@vojhugs5365
@vojhugs5365 - 25.05.2022 20:10

can you send to me your jupyter notebook you used?

Ответить
@muhammad4575
@muhammad4575 - 22.04.2022 14:31

can u drop the code

Ответить
@ajaykushwaha-je6mw
@ajaykushwaha-je6mw - 19.04.2022 16:56

Video is good but it must have been best with hyperparameter with crossvalidation.

Ответить
@kanthikiran4021
@kanthikiran4021 - 29.03.2022 14:47

In feature importances sort values are not appearing

Ответить
@EB-ch1ih
@EB-ch1ih - 06.03.2022 13:41

By far the best explanation, thank you so much!

Ответить
@PapiJack
@PapiJack - 03.03.2022 07:21

Hello Misra, thanks for the excellent video. Any way you can make the Jupyter notebook available? Thanks.

Ответить
@StephenNewmanUK
@StephenNewmanUK - 17.02.2022 14:57

Awesome video, thank you Misra

Ответить
@mak3214
@mak3214 - 23.01.2022 14:50

Best and clear explanation By the way I have a crush on you🙂🤣😂

Ответить
@ricardodiaz8964
@ricardodiaz8964 - 03.11.2021 21:34

Awesome video, where can I find the jupyter notebook?

Ответить
@AlonAvramson
@AlonAvramson - 19.06.2021 08:31

Thank you Misra! great example

Ответить
@alifiaz7792
@alifiaz7792 - 15.06.2021 14:03

Thank you for the explanation. The feature importance plot depicts overall how important each feature is in distinguishing the two classes. Can we plot feature importance plot per class, one for malignant class and other for benign that shows feature importance score w.r.t each class, rather than whole?

Ответить
@0730pleomax
@0730pleomax - 12.06.2021 04:38

Simple and clear!

Ответить