Recursive Feature Elimination Technique | Recursive feature elimination in machine learning

Recursive Feature Elimination Technique | Recursive feature elimination in machine learning
#RecursiveFeatureElimination #UnfoldDataScience
Hello ,
My name is Aman and I am a Data Scientist.
About this video:
In this video, I explain recursive feature elimination technique in machine learning. I explain the usability of feature selection and how to use Recursive feature elimination in machine learning. Below topics are discussed in this video:
1. Recursive feature elimination technique
2. How to do recursive feature elimination
3. How to use recursive feature elimination
4. Scikit learn recursive feature elimination
5. Recursive feature elimination explained
About Unfold Data science: This channel is to help people understand basics of data science through simple examples in easy way. Anybody without having prior knowledge of computer programming or statistics or machine learning and artificial intelligence can get an understanding of data science at high level through this channel. The videos uploaded will not be very technical in nature and hence it can be easily grasped by viewers from different background as well.
If you need Data Science training from scratch . Please fill this form (Please Note: Training is chargeable)
docs.google.com/forms/d/1Acua...
Book recommendation for Data Science:
Category 1 - Must Read For Every Data Scientist:
The Elements of Statistical Learning by Trevor Hastie - amzn.to/37wMo9H
Python Data Science Handbook - amzn.to/31UCScm
Business Statistics By Ken Black - amzn.to/2LObAA5
Hands-On Machine Learning with Scikit Learn, Keras, and TensorFlow by Aurelien Geron - amzn.to/3gV8sO9
Ctaegory 2 - Overall Data Science:
The Art of Data Science By Roger D. Peng - amzn.to/2KD75aD
Predictive Analytics By By Eric Siegel - amzn.to/3nsQftV
Data Science for Business By Foster Provost - amzn.to/3ajN8QZ
Category 3 - Statistics and Mathematics:
Naked Statistics By Charles Wheelan - amzn.to/3gXLdmp
Practical Statistics for Data Scientist By Peter Bruce - amzn.to/37wL9Y5
Category 4 - Machine Learning:
Introduction to machine learning by Andreas C Muller - amzn.to/3oZ3X7T
The Hundred Page Machine Learning Book by Andriy Burkov - amzn.to/3pdqCxJ
Category 5 - Programming:
The Pragmatic Programmer by David Thomas - amzn.to/2WqWXVj
Clean Code by Robert C. Martin - amzn.to/3oYOdlt
My Studio Setup:
My Camera : amzn.to/3mwXI9I
My Mic : amzn.to/34phfD0
My Tripod : amzn.to/3r4HeJA
My Ring Light : amzn.to/3gZz00F
Join Facebook group :
groups/41022...
Follow on medium : / amanrai77
Follow on quora: www.quora.com/profile/Aman-Ku...
Follow on twitter : @unfoldds
Get connected on LinkedIn : / aman-kumar-b4881440
Follow on Instagram : unfolddatascience
Watch Introduction to Data Science full playlist here : • Data Science In 15 Min...
Watch python for data science playlist here:
• Python Basics For Data...
Watch statistics and mathematics playlist here :
• Measures of Central Te...
Watch End to End Implementation of a simple machine learning model in Python here:
• How Does Machine Learn...
Learn Ensemble Model, Bagging and Boosting here:
• Introduction to Ensemb...
Build Career in Data Science Playlist:
• Channel updates - Unfo...
Artificial Neural Network and Deep Learning Playlist:
• Intuition behind neura...
Natural langugae Processing playlist:
• Natural Language Proce...
Understanding and building recommendation system:
• Recommendation System ...
Access all my codes here:
drive.google.com/drive/folder...
Have a different question for me? Ask me here : docs.google.com/forms/d/1ccgl...
My Music: www.bensound.com/royalty-free...

Пікірлер: 125

  • @nicolejacobo2351
    @nicolejacobo23512 жыл бұрын

    Fantastic and thorough explanation. Thank you, Aman, for helping out the community with these videos!

  • @chertify
    @chertify Жыл бұрын

    Thank you, Aman, for explaining this so well! I just subscribed to your channel.

  • @hari325
    @hari3252 жыл бұрын

    Just discovered your channel, and your explanations are amazing! Will check out more videos. Thanks for taking the time out to make such content:)

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Thanks Hari. Your words mean a lot

  • @TheOriginalAnorflame
    @TheOriginalAnorflame Жыл бұрын

    Exellent video, for me you explained it with exactly the right amount of depth!

  • @hp6hp1
    @hp6hp13 жыл бұрын

    Whenever coming on your YT Page, just getting Good information! Well Done Aman!!!:)

  • @UnfoldDataScience

    @UnfoldDataScience

    3 жыл бұрын

    Thanks for your words Himalay.

  • @bobby5625
    @bobby5625 Жыл бұрын

    Great video!

  • @ravinduabeygunasekara833
    @ravinduabeygunasekara8332 жыл бұрын

    I watched your channel for the first time. I must say you are a great lecturer. Your explanations are superb! Please keep uploading more videos

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Thanks Ravindu.

  • @rukiakuchiki629
    @rukiakuchiki6292 жыл бұрын

    Omg i really love ur explanation 😭👍

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Cheers.

  • @anishdeshpande395
    @anishdeshpande395 Жыл бұрын

    Very useful information. Thank you :)

  • @vtechguruG
    @vtechguruG Жыл бұрын

    Aman sir ..very well explained & Rfe concept is understood very well..i have been enrolled for carrieer in datascience.

  • @anaskhan4841
    @anaskhan48412 жыл бұрын

    Thanks Aman

  • @SadeepPriyankara
    @SadeepPriyankara Жыл бұрын

    As usual great explanation Aman...

  • @UnfoldDataScience

    @UnfoldDataScience

    Жыл бұрын

    Thanks a ton Sandeep.

  • @pritam_narwade
    @pritam_narwade Жыл бұрын

    Thankyou so much for this topic 🙏

  • @UnfoldDataScience

    @UnfoldDataScience

    Жыл бұрын

    Keep watching Pritam.

  • @gayanath009
    @gayanath00915 күн бұрын

    Supper explanation as usual, thank you

  • @charanyadav2395
    @charanyadav23953 жыл бұрын

    Thanks for this explanation .. keep continuing good work sir ..... I learnt many topics which has helped me in most cases

  • @UnfoldDataScience

    @UnfoldDataScience

    3 жыл бұрын

    Keep watching Charan. Thanks a lot.

  • @vaggelisntaloukas2016
    @vaggelisntaloukas20162 жыл бұрын

    Great, Thanks a ton!

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    You're welcome!

  • @somanathking4694
    @somanathking46947 ай бұрын

    Thank You very much sir!

  • @UnfoldDataScience

    @UnfoldDataScience

    7 ай бұрын

    Most welcome!

  • @sandipansarkar9211
    @sandipansarkar92112 жыл бұрын

    finished watching

  • @muhammadaliabid5793
    @muhammadaliabid57933 жыл бұрын

    Thankyou for an informative lecture. As you mentioned when we apply RFE using Decision Tree algorithm we get different features importances than when we apply RFE using Linear algorithm (coefficients in this case). My question is how do we interpret it i.e. how do we conclude which feature is the most important one in such a case?

  • @FranklinKondum
    @FranklinKondum Жыл бұрын

    Thank you for the RFE video. Your explanation was very good! I have a question: I have an already existing linear equation with 7 variables (feature) including the target feature. However, I want to elimination 3 less important features. Please, how can I custom fit this equation (algorithm): that is I want a user defined algorithm for the RFE. This will help me to eliminate the less important features.

  • @meenakshirao4990
    @meenakshirao49902 жыл бұрын

    Thanks. Keep going. 👍🏼 I wanted to know exactly, based on what concept or what parameters it will eliminate?! Hope I will get the answer if I learn little more. Another clarification required: RFE inside algorithms working varies from each other but output features must be same right?! If that varies which algorithm to trust?! Good explanation.

  • @leamon9024
    @leamon90242 жыл бұрын

    Hi, Thanks for the awesome explanation. Could you also talk about Genetic algorithm?

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Thanks, for sure.

  • @weightsandbias
    @weightsandbias2 жыл бұрын

    Very relatable when u said most ml developers are .fit and .predict people lol. I started learning ml a month ago and same way thought ml is easier than I thought but when I started learning more complicated algos I'm learning the importance of stuff like this, be it feature engineering or selection or another thing I got to learned today: class imbalance. I'm learning off of internet and projects so it's a little hard road but youtubers like u are blessings 🙌 . An idea- Can u maybe make a vid explaining a real life ml problem and how would u go about it, like churn prediction, sales prediction, etc

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    I create videos on these topics . you can watch here: kzread.info/dash/bejne/hYefl7ZuiJi8ZJM.html

  • @sadhnarai8757
    @sadhnarai87573 жыл бұрын

    Good one again.

  • @rai183

    @rai183

    3 жыл бұрын

    Thank you.

  • @farihamubasshira8824
    @farihamubasshira88242 жыл бұрын

    Hey Aman, As you said, you will upload videos about RFE and RFECV with python examples. I looked everywhere in your channel but couldn’t find those. Could you please give me the link to those videos?

  • @rafibasha1840
    @rafibasha18402 жыл бұрын

    Hi Aman,on what basis RFE choose best features

  • @mani0536
    @mani05367 ай бұрын

    Nice explanation Aman .. ❤

  • @UnfoldDataScience

    @UnfoldDataScience

    7 ай бұрын

    Thanks a lot.

  • @weii321
    @weii3217 ай бұрын

    Is it a must to split data into x_train, x_test, y_train, y_test when using RFE?

  • @nivednambiar6845
    @nivednambiar68452 жыл бұрын

    Hi sir, this is nice, thanks for your super explanation

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Thanks Nived.

  • @Sane_Circle
    @Sane_Circle2 жыл бұрын

    may my God bless you sir for this distinctly and succinctly explained lecture on RFE and RFECV. It was revealing and understandable for an average mind. Pls open a school sir, i'd gladly be your student.

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    You are most welcome

  • @beautyisinmind2163
    @beautyisinmind21632 жыл бұрын

    Sir, In wrapper exhaustive feature selection method we find the optimal subset of feature using certain Machine learning algorithm, so in finding optimal subset can we use any algorithm or there are only specific algorithms that should be used only? I’m confused in implementing this

  • @krishnabhadke6161
    @krishnabhadke61612 жыл бұрын

    thank u sir

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Welcome Krishna

  • @AshutoshKumar-on5jc
    @AshutoshKumar-on5jc9 ай бұрын

    Can you suggest that Bluetooth transfer can be seen through data leakage software. If the system is offline

  • @hrushikeshsahasrabuddhe5103
    @hrushikeshsahasrabuddhe5103 Жыл бұрын

    Can you also explain Orthogonal Matching Pursuit?

  • @5minutesfacts876
    @5minutesfacts8763 жыл бұрын

    Aman you are rocking in your every video..... inspiring me at the age of 40 😁 to go for it

  • @rai183

    @rai183

    3 жыл бұрын

    Cheers Sir 😀

  • @santukarmaker6358
    @santukarmaker63586 күн бұрын

    Aman tell me one thing on when to use which technique of feature selection

  • @UmairMehmood
    @UmairMehmood3 жыл бұрын

    Very Nice!

  • @UnfoldDataScience

    @UnfoldDataScience

    3 жыл бұрын

    Thank you Umair! Cheers!

  • @satyanarayanad920
    @satyanarayanad920 Жыл бұрын

    How the DT model will select which is least feature? Can you answer please?

  • @arjunbhardwaj4725
    @arjunbhardwaj47252 жыл бұрын

    HI, based on which criteria does the model decides the importance of the feature?

  • @saisnehayachamaneni9320
    @saisnehayachamaneni93202 жыл бұрын

    Good video, thank you. Can you please share link of follow up video?

  • @vtechguruG
    @vtechguruG Жыл бұрын

    becoz i am a new learner...can u make a video for EDA part to make it easy to go through..

  • @saswatleo
    @saswatleo2 жыл бұрын

    Nicely explained !! Can you make some videos on How to do Outliers detection with coding implementation as well ??

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Ok Saswat. Sure

  • @shrawansahu9500
    @shrawansahu95002 жыл бұрын

    what basis feature importance is decided by RFE algorithm?

  • @bharathbala5943
    @bharathbala59432 жыл бұрын

    Thank u for the super information. Which is the best method to select the features

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    You are welcome Bharath, Video is on the way, Sunday 4PM IST

  • @abhinavkale4632
    @abhinavkale46323 жыл бұрын

    Amazing content Aman sir!! cheers.. I have a doubt, on what parameter the RFE is eliminating the features? Is it the r2 score or the adjusted r2 score? How is it different from forward and backward elimination?

  • @UnfoldDataScience

    @UnfoldDataScience

    3 жыл бұрын

    Kindly do not confuse RFE with search algorithms that search over all possible subsets of features. RFE does something similar, but not check all possible combinations.

  • @TheGreatAnnouncer
    @TheGreatAnnouncer Жыл бұрын

    thanks buddy

  • @UnfoldDataScience

    @UnfoldDataScience

    Жыл бұрын

    Welcome

  • @gayathrikamath446
    @gayathrikamath4462 жыл бұрын

    I have query. U put decision tree classifier or logistic regression for rfe to select features. After using rfe do we have to apply classification algorithm to generate model using different algorithm. Can we use svm, rf, knn algorithm.

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Yes don't confuse feature selection with modelling. RFE - Feature selection technique svm, rf, knn algorithm.

  • @mayankjindal9144
    @mayankjindal91443 жыл бұрын

    Where is the next video for this? This video is really helpful. Can you please provide link for next video of the same.

  • @UnfoldDataScience

    @UnfoldDataScience

    3 жыл бұрын

    Hi Mayank, thanks for asking, please search on playlist.

  • @sumankumarsinha9168
    @sumankumarsinha91682 жыл бұрын

    Thanks Aman for this very informative video! Can you please tell on what basis feature importance is decided by RFE algorithm? is it based on p-value and VIF?

  • @nicolejacobo2351

    @nicolejacobo2351

    2 жыл бұрын

    My understanding is that it is based on the algorithm that you input into it. So in the case of this example, a Decision Tree algorithm will use the feature importance which is (using the TowardsDataScience definition) "the decrease in node impurity weighted by the probability of reaching that node". RFE is like a secondary step to add on to it. Like backward stepwise regression, which isn't a standalone thing, you still need to decide which statistic you are basing your steps off of. I could be off though and someone can correct me if I am wrong!

  • @m.randayandika3779
    @m.randayandika37793 жыл бұрын

    Great explanation, thanks! but i have a question... after using this RFE, we got useful and useless features. what are the parameters used to get those features? cv scores? or something else?

  • @shreyjain6447

    @shreyjain6447

    2 жыл бұрын

    Let's suppose you create an instance with the name "rfe". Use rfe.support_ to get the useful and eliminated features. It returns a Boolean array where True means that feature is kept and False means that feature is eliminated

  • @shreyjain6447
    @shreyjain64472 жыл бұрын

    Is there any way to use multiple models in rfe and then select the features from the model which give the best performance?

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Yes possible, you can run in loop all models.

  • @aidars5196
    @aidars51962 жыл бұрын

    Thank you for amazing video! We need some examples in python! Please could you make some practic examples?

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Thanks Aidar. Sure.

  • @khalidmahmud2855
    @khalidmahmud28552 жыл бұрын

    Many Thanks for your excellent style to teach important basics of data science. Would you please give the link of your video showing RFE/RFECV usage in Python; I am looking for that video particularly. Thanks in advance.

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Thanks Khalid. I think I am unable to find it now. Probably I will search once more or meanwhile this link will help machinelearningmastery.com/rfe-feature-selection-in-python/

  • @khalidmahmud2855

    @khalidmahmud2855

    2 жыл бұрын

    @@UnfoldDataScience Many thanks for the link; It's helpful. I will also be waiting for your VIDEO.

  • @khalidmahmud2855

    @khalidmahmud2855

    2 жыл бұрын

    Would you please clarify one thing; I am supposed to use RF algorithm for my prediction problem. Do I still need to screen the predictor variables by RFE/RFECV before training the model?

  • @ARROBACOMPUTERS
    @ARROBACOMPUTERS2 жыл бұрын

    First off, thank you for a great explanation. I do have a question though. When does the RFECV algorithm know when to stop removing features? With RFECV, does the algorithm stop removing features once the CV score goes down ? Thanks.

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Good question!, we can set this throguh parameters

  • @pramodyadav4422
    @pramodyadav44223 жыл бұрын

    No one touches these topics the way you're doing. It makes concept more clear. Please can you also make a video on parameters we pass in each algorithm. E.g. init,n_init,n_clusters,max_iter in kmeans clustering. It confuses a lot. Due to this many people don't touch those parameters

  • @UnfoldDataScience

    @UnfoldDataScience

    3 жыл бұрын

    Thanks Pramod. Noted.

  • @kunalchakraborty3037
    @kunalchakraborty30373 жыл бұрын

    Can you make a video on LDA its derivation of the discriminant function

  • @UnfoldDataScience

    @UnfoldDataScience

    3 жыл бұрын

    Noted Kunal. Thank you.

  • @Suryapoosarla
    @Suryapoosarla2 жыл бұрын

    sir, can you explain the difference between selectkbest and RFE..

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Sure, will add this topic in my to do list.

  • @XiaoLou-kt1wy
    @XiaoLou-kt1wy Жыл бұрын

    I really appreciate the explanation though, I cannot agree with your point about the feature importance in linear regression is measured by their coefficients. I think we should use p-value to measure the importance instead.

  • @UnfoldDataScience

    @UnfoldDataScience

    Жыл бұрын

    You have a valid point, can we say its a combination of both through which I can meansure how important my variable is?

  • @vibhorbhardwaj1876
    @vibhorbhardwaj1876 Жыл бұрын

    Thanks for explaining .. I am getting these two error : 1. __init__() takes 2 positional arguments but 3 were given 2. 'RFE' object has no attribute 'ranking_'

  • @UnfoldDataScience

    @UnfoldDataScience

    Жыл бұрын

    Check latest package and function names. easy issue to fix.

  • @eekobi1644
    @eekobi1644 Жыл бұрын

    why rfecv don't work for neural network and svm rbf kernel?

  • @UnfoldDataScience

    @UnfoldDataScience

    Жыл бұрын

    Not work meaning?

  • @carlmemes9763
    @carlmemes97632 жыл бұрын

    Sir it is also known as backward elimination feature selection? Or it is different

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Similar to that little different

  • @kunalkrsinha38
    @kunalkrsinha383 жыл бұрын

    Nice... Can you pls tell how to REF METHOD write in python..

  • @UnfoldDataScience

    @UnfoldDataScience

    3 жыл бұрын

    Sure Kunal.

  • @mohanreddy9168
    @mohanreddy91682 жыл бұрын

    Which one is better forword feature selection or recursive feature elimination.

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    As it depends on case to case.

  • @umamaheswariyarlagadda9033
    @umamaheswariyarlagadda90332 жыл бұрын

    Can you please post the link where python program is also explained on the same topic.

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    drive.google.com/drive/folders/1XdPbyAc9iWml0fPPNX91Yq3BRwkZAG2M

  • @malavikadutta1011
    @malavikadutta10112 жыл бұрын

    Hi Aman, Can you please make a video on propensity model.Have been looking for it for a long time but couldn't get good resources online. Please help me in understanding it using python

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Yes Malavika, these models are mostly used in Risk Domain in Finance or in marketing analytics type of scenario. I have some friends working on these models, I will get an idea and try to present.

  • @datapointcomputeracademy5458

    @datapointcomputeracademy5458

    2 жыл бұрын

    @@UnfoldDataScience thank you so much

  • @dr.shambhujha3999
    @dr.shambhujha3999 Жыл бұрын

    So how RFE is treated differently than backward elimination techniques

  • @mani0536

    @mani0536

    7 ай бұрын

    RFE eliminates by taking all the features in the model , ranking them based on coefficients then removing the features whereas in the case of BFE , for eg one feature is dropped then possible combinations of features to model then it checks the accuracy of model , then next iteration based on selected features... Hope it explains

  • @uddeshjari2698
    @uddeshjari26982 жыл бұрын

    SIR PLZ UPLOAD PYTHON IMPLEMENTATION...YOUR NEXT VIDEO

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    Will upload soon, its simple only

  • @hemantsharma7986
    @hemantsharma79862 жыл бұрын

    Then what is the diff between this and backward elimination?

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    RFE - target individual variable, backward elemination - target model as a whole

  • @ravinduabeygunasekara833
    @ravinduabeygunasekara8332 жыл бұрын

    According to this, we do REF on the training data. That means we do REF after splitting the initial data set into TRAIN and TEST samples. if so, what happens to the recursive features in the TEST set?

  • @UnfoldDataScience

    @UnfoldDataScience

    2 жыл бұрын

    You score model only on the features which were used to train the model.

  • @iswariyaravi9134
    @iswariyaravi91343 жыл бұрын

    Its doesn't seem to be RFE you're explaining backward elimination method

  • @UnfoldDataScience

    @UnfoldDataScience

    3 жыл бұрын

    Will check.

  • @shreyjain6447

    @shreyjain6447

    2 жыл бұрын

    No it is rfe...backwards elimination is totally different

  • @jaihindyadav3889
    @jaihindyadav3889 Жыл бұрын

    kya new batya

  • @sandipansarkar9211
    @sandipansarkar92112 жыл бұрын

    finished watching

  • @ahmedelsabagh6990
    @ahmedelsabagh69903 жыл бұрын

    Great video!

  • @UnfoldDataScience

    @UnfoldDataScience

    3 жыл бұрын

    Thanks Ahmed.