60 - How to use Random Forest in Python?

  Рет қаралды 40,562

DigitalSreeni

DigitalSreeni

Күн бұрын

Пікірлер: 81
@pontefract
@pontefract 3 жыл бұрын
This is the best random forest tutorial on KZbin, thank you.
@kepstein8888
@kepstein8888 3 жыл бұрын
This was excellent. Most tutorials on these stop somewhere in the middle, and never get to the feature importances, which are the entire point of these models. Not sure why, but thanks for being comprehensive.
@davisongudo372
@davisongudo372 5 жыл бұрын
You are precise and to the point, and cover what a learner needs.
@DigitalSreeni
@DigitalSreeni 5 жыл бұрын
Thank you for your kind feedback.
@cdhanunjay5497
@cdhanunjay5497 5 жыл бұрын
I am getting accuracy of 1 when i did the same using the iris data set
@DigitalSreeni
@DigitalSreeni 5 жыл бұрын
@@cdhanunjay5497 That is highly accurate :)
@flanker6212
@flanker6212 3 жыл бұрын
The fact you use real datasets likely to be used in real life for this script is amazing - thank you. Keep it up
@rominamir8057
@rominamir8057 4 жыл бұрын
great job on explaining, and I loved that you used an actual real dataset!
@jubieralonsojimenezcamargo5732
@jubieralonsojimenezcamargo5732 2 жыл бұрын
¡Thanks Sreeni! Your contents helped me to give that extra mile on my Ph.D. research, kind regards!
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
Thank you very much for your generous donation. I am glad you found my videos to be useful towards your doctorate. This is exactly the reason why I started my channel - to help students and researchers.
@lakshyavaibhavdatta9098
@lakshyavaibhavdatta9098 3 жыл бұрын
This is a beautiful explanation, man! Thanks! It's my first exposure to actual implementation of ML, and I honestly couldn't have asked for a better walkthrough. Thanks! :)
@rezaniazi4352
@rezaniazi4352 3 жыл бұрын
Easy to understand and detailed ,no bla bla bla and codin with out explanation ! Awsome
@fading_images
@fading_images 3 жыл бұрын
Thank you for your explanations and detail. This was very helpful in learning a Random Forest with Python.
@nethravathis7726
@nethravathis7726 4 жыл бұрын
I do not comment usually on youtube videos but this tutorial is exceptional. Great explanation.
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
Glad you liked it!
@f.r8120
@f.r8120 2 жыл бұрын
Straight to the point! I got it at first go. Thank you so much for the tutorial.
@aiz_i564
@aiz_i564 7 ай бұрын
Thank you so much! Very clear explanation and straight to the point! Thanks a ton, Sir!
@lukaskocian6377
@lukaskocian6377 3 жыл бұрын
thank you so much, I couldn't get it from others but you have explained it so good . Because you can explain it to beginners and I highly appreciate it
@yasinkhan4899
@yasinkhan4899 Жыл бұрын
Thankyou very much, great insights based on real problem. Best wishes.
@adoniskon1783
@adoniskon1783 3 жыл бұрын
you are the best please keep it up ! love your teaching High quality content very well explained please create more!! Respect from GREECE !
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
Much appreciated!
@NeeRaja_Sweet_Home
@NeeRaja_Sweet_Home 4 жыл бұрын
Nice Intuition!!! Looking forward for more ML concepts. Thanks,
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
You're most welcome!
@shivd5235
@shivd5235 4 жыл бұрын
excellent job! this really helped me to understand random forest and how to apply it.. much appreciated!
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
Great to hear!
@jayarambhat9213
@jayarambhat9213 2 жыл бұрын
Thank you sir , good implementation of code in python
@haoduong6565
@haoduong6565 2 жыл бұрын
Hi, very nice video! do you have any video which helps to find optimal threshold/cut-off for continuous variables such as age, time. Thanks!
@sridharvishwanath7391
@sridharvishwanath7391 4 жыл бұрын
Perfect!! Thanks for posting the video!! Very clear explanation. I liked your presentation skills!! Keep it up!
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
Thanks a lot!
@PyCode.academe
@PyCode.academe 4 жыл бұрын
Great explaining, thanks a lot, please keep recording videos about ml!!!
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
Keep watching my channel, you will discover 100s of ML related videos :)
@srivathsansanthanam639
@srivathsansanthanam639 Жыл бұрын
I really need you to help me Sreeni. How to find feature importances in image classification problem and determine which GABOR was most impactful? Thanks a ton for making these videos. You shud know that your videos have impacted a lot of ppl including me. Even "I" could code and do ML coz of you.
@DigitalSreeni
@DigitalSreeni Жыл бұрын
May be you will find this video useful: kzbin.info/www/bejne/lWbXaY2qh96Vipo
@srivathsansanthanam639
@srivathsansanthanam639 Жыл бұрын
Omg. Thanks a lot for your prompt response. Btw I tried both Boruta and feature importances. Feature importances is showing me the most important pixels (some 76670th pixel) in the descending order when I expect it to show the filter to which that pixel belonged to. I think I am going wrong in some matrix dimension. Would be helpful if u could help me out. Really thanks a lot for this .
@srivathsansanthanam639
@srivathsansanthanam639 Жыл бұрын
Wow... Issue sorted after logical thinking. Added all the pixel wise importances filter wise The filter which has the highest magnitude is most important.
@subhadeepsarkar8434
@subhadeepsarkar8434 Жыл бұрын
wonderfully explained, sir. I have a question. Is there any way that I can print the prediction in terms of probabilities instead of 1 and 2, similar to light GBM or XGBoost?
@vineetjainorg
@vineetjainorg 4 жыл бұрын
20:20: In newer sklearn versions (0.22 +) default n_estimators = 100.
@albertojim04
@albertojim04 3 жыл бұрын
Great video! Very helpful and explained it very well! Thank You
@umairrasool9580
@umairrasool9580 4 жыл бұрын
I have a question please, i am working on my raster dataset for prediction like ANN, RF and CNN, i have converted the rasters into numeric and then train and test the data and got very good accuracy. Now i need to convert my test data into raster again as final prediction map but i don't know how to do this, please guide me thanks.
@randommemories378
@randommemories378 3 жыл бұрын
Same issue here. Would like to get some guidance. Thanks.
@hasanshaikh2014
@hasanshaikh2014 3 жыл бұрын
@DigitalSreeni when I run this code with my dataset then it shows: "ValueError: Input contains NaN, infinity or a value too large for dtype('float32')." how can I handle this error do you have any source where I can get the solutions and also why I face this problem. I know you are a busy person but it is appreciable if you help me out with this problem.
@Abhishek-ek9gw
@Abhishek-ek9gw 3 жыл бұрын
Great sir, Thank you so much for this..❤
@priyankakomreddiwar8641
@priyankakomreddiwar8641 3 жыл бұрын
Hi sir, could u plz tell me how to use random forest algorithm for continuous target variable..
@cedricvumisa7416
@cedricvumisa7416 4 жыл бұрын
yes i found it very very very useful...thank you very much
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
Glad to hear that
@wenfangwu7148
@wenfangwu7148 3 жыл бұрын
Hi I follow your steps and redo a model, yet I got accuracy = 1 and I don't know how to fix it >< May you give me some advices? or I can email if you need the details thanks!
@manasranjanpanda9859
@manasranjanpanda9859 3 жыл бұрын
Thank You so much, Sir, for this video. I have one request for you. Can you please make a video using random forest regression and multivariate regression for the raster dataset, considering the Landsat ETM land use data, ASTER DEM (Elevation data), road network data, etc as independent variables and GDP data as the dependent variable for a region or country or city and please show us how the results changes with these two different regression models. Thank You in advance, Sir.
@manasranjanpanda9859
@manasranjanpanda9859 3 жыл бұрын
I keep sharing your videos in our research community, particularly those who are working on GIS, hydrology, earth science, atmospheric science domain. It would be a great help for them if you make a video on this problem.
@srivathsansanthanam639
@srivathsansanthanam639 Жыл бұрын
Thanks
@DigitalSreeni
@DigitalSreeni Жыл бұрын
Thank you vey much.
@jihadfakrach6733
@jihadfakrach6733 Жыл бұрын
can you give us the dataset link please !!
@nourelislam8565
@nourelislam8565 4 жыл бұрын
Thanks for ur explanations, I just wondering. What is the impact of Random_state parameter in the algorithm! What is the difference between 20 or any integer and zero or None!! Thanks in advance
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
Random_state fixes the random numbers that gets used in the code so you get repeatable results. Otherwise, you end up with different results each time you run the code. The exact seed doesn't matter, but it needs to be the same to generate same random numbers. In reality, random number generators are not random, they use a seed to generate numbers and if the seed is kept constant you will get same random numbers each time.
@bijulijin812
@bijulijin812 3 жыл бұрын
Can you do video on k fold cross validation
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
Sure. I will add it to my list. Thanks for the suggestion.
@MuhammadHassan-lg1ti
@MuhammadHassan-lg1ti 3 жыл бұрын
how to use gabor features in random forest?
@Myers-ft6vm
@Myers-ft6vm 3 жыл бұрын
This is great. Thank you much.
@saivarun7298
@saivarun7298 3 жыл бұрын
SIR WHAT IS ESTIMATOR=10 IN THIS PROGRAM
@cliffordtarimo1511
@cliffordtarimo1511 4 жыл бұрын
Great. I wish to perform this model using STATA. Can you please provide any links? thanks!
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
I am sorry, I have no clue what STATA is!!!
@GATE-DA-CSE-RaviKantGupta
@GATE-DA-CSE-RaviKantGupta 2 жыл бұрын
Explained well, please consider imbalance case
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
I’ve recorded videos on working with imbalanced data. Please check them out.
@Shubhankarsps
@Shubhankarsps 4 жыл бұрын
Very good explanation
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
Thanks and welcome
@Shubhankarsps
@Shubhankarsps 4 жыл бұрын
This helped me for my project... thanks
@akzzz7706
@akzzz7706 3 жыл бұрын
While creating Y, it comes valueError: invalid literal for int() with base 10 How to solve this error sir?
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
You seem to be converting strings to integer. Please verify where this is happening and fix it. I recommend looking at data types for all variables to find the culprit.
@akzzz7706
@akzzz7706 3 жыл бұрын
@@DigitalSreeni yes sir I was trying the same In this session you were converting good and bad words, in the same way I tried to convert it into integers using different dataset. In my dataset it is divided into 7 kinds ,where as in your dataset it was 2 kinds
@akzzz7706
@akzzz7706 3 жыл бұрын
What changes should I do sir? Is there any other methods?
@hasanshaikh2014
@hasanshaikh2014 3 жыл бұрын
@@akzzz7706 do you get the solution because I also got struck to this problem which you currently facing.
@akzzz7706
@akzzz7706 3 жыл бұрын
@@hasanshaikh2014 No bro , I tried another method , it's showing valueError: could not convert string to float
@chiragagrawal7104
@chiragagrawal7104 4 жыл бұрын
how to tune ccp_alpha value?
@aparajuusharani7638
@aparajuusharani7638 4 жыл бұрын
How can we visualise the decision trees in the random forest
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
You can do that using export_graphviz. Here is good explanation on how to do it.. towardsdatascience.com/how-to-visualize-a-decision-tree-from-a-random-forest-in-python-using-scikit-learn-38ad2d75f21c
@rezaniazi4352
@rezaniazi4352 3 жыл бұрын
well commented code in github double like
@vzinko
@vzinko Жыл бұрын
No need to convert categorical to numeric as all tree-based models can natively handle categorical variables
@anjanyrisqiati8836
@anjanyrisqiati8836 4 жыл бұрын
Can we get your data for learning?
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
Yes, of course. You can find it on my github page: github.com/bnsreenu/python_for_microscopists
@ibrahimcetin8656
@ibrahimcetin8656 4 жыл бұрын
U are the best
@DigitalSreeni
@DigitalSreeni 4 жыл бұрын
I know :)
61 - How to create Gabor feature banks for machine learning
16:04
DigitalSreeni
Рет қаралды 17 М.
59 - What is Random Forest classifier?
21:46
DigitalSreeni
Рет қаралды 18 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Random Forest Algorithm Explained with Python and scikit-learn
11:49
Ryan & Matt Data Science
Рет қаралды 15 М.
Random Forest Algorithm Clearly Explained!
8:01
Normalized Nerd
Рет қаралды 670 М.
Convert Image into Matrix - Like a Pro!
11:16
Python Simplified
Рет қаралды 84 М.
Random Forest Regressor in Python: A Step-by-Step Guide
15:21
Ryan & Matt Data Science
Рет қаралды 13 М.
Random Forest Classification | Machine Learning | Python
17:29
Stats Wire
Рет қаралды 36 М.
Decision forests in TensorFlow | Session
9:22
TensorFlow
Рет қаралды 18 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН