Feature Selection in Python | Machine Learning Basics | Boston Housing Data

Тәжірибелік нұсқаулар және стиль

Hey Everyone! I'm a first year machine learning PhD student. My research focuses on recommender systems applications in sports science including case-based reasoning techniques to support marathon runners. I have a KZread channel about my experience doing a PhD and productivity tips but I also have made a few videos related to my research. This video is about feature selection in Python using an example of a kNN regressor on the Boston Housing Data. There are timestamps in the description as well as the python notebook available for download. I hope this will be of interest to some of you and be sure to subscribe if you would like to see more.
Previous videos on Machine Learning:
Supervised vs Unsupervised Learning: • Supervised vs Unsuperv...
Case-Based Reasoning: • Case-Based Reasoning |...
kNN: • Introduction to kNN: k...
Link to downloadable python notebooks: drive.google.com/open?id=10jx...
Timestamps:
00:00 - intro
0:55 - what is feature selection / why
3:30 - description of the Boston Housing Dataset
6:00 - recap of the last model
7:47 - filtering features by variance
10:20 - filtering features by correlation
15:40 - feature selection using a wrapper - sequential feature selection
21:24 - relationships between variables
Purchase my PhD Student and Productivity Notion Templates store.phdandproductivity.com
Try the Notion template before you buy: www.notion.so/PhD-Planning-VI...
Join my email list for regular PhD and Productivity advice and a 10% discount on my Products: www.phdandproductivity.com/
Support My Channel: If you would like my content and want to support my channel and get access to exclusive content, then join the channel membership here, starting from €1.99 a month: / @phdandproductivity
Connect with Me
Instagram: / phdandproductivity
Twitter: / phdproductivity
For business enquiries only: ciara@phdandproductivity.com
Shop my Favourites for Working from Home and Productivity: www.amazon.co.uk/shop/ciaraxf...
Check out my Startup Daysier
website:
Instagram: / daysier.co
** Disclaimer ** Some of the links are affiliate links meaning that if you make a purchase using the link, I earn a small commission with no extra charge to you. If you do decide to use one of these links then thank you for you support. ******
machine learning in python,feature selection,machine learning,what is feature selection,boston housing data eda,correlation analysis and feature selection,data science,what is feature selection in machine learning,feature selection in python,recursive feature elimination,feature selection in machine learning,scikit learn,sequential feature selection,stepwise feature selection,knn regression,stepwise regression,python tutorial,machine learning basics,beginner

Пікірлер: 71

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

    This really is an informative video! Thanks for the concise tutorial on feature selection.

  • @chantis1794
    @chantis17944 жыл бұрын

    Thanks for this video. It is very helpful to me especially for filtering the most important features.

  • @da_ta
    @da_ta3 жыл бұрын

    Apart low sound great explanation and clear steps thank you for doing this!

  • @zeeshan3703
    @zeeshan37033 жыл бұрын

    Great Insights, and now I have SUBSCRIBED, and can't wait to see more from you. Huge Thank You!!!

  • @PhDandProductivity

    @PhDandProductivity

    3 жыл бұрын

    Thanks for subscribing Muhammad. Abs for your comment 😊

  • @caraf6562
    @caraf65623 жыл бұрын

    I skipped this video when it was posted because I wasn't really doing anything related to machine learning, but lately I've been looking more into math modeling and linear regression to find ways it can support my experimental research. Excellent tutorial and I'm excited to try to implement some of these things into my own data sets! Still on the data collection & cleaning phase but making progress :)

  • @PhDandProductivity

    @PhDandProductivity

    3 жыл бұрын

    That's great! It's seeming like more and more no matter what science (or even subject generally) you're involved with machine learning techniques will creep in!

  • @rafidhaque2722
    @rafidhaque27222 жыл бұрын

    thank you so much for providing the python scripts...your video was very helpful for me

  • @muhammadjamalahmed8664
    @muhammadjamalahmed86644 жыл бұрын

    Really helpful.. Thank you..

  • @uzhankocaman7457
    @uzhankocaman74573 жыл бұрын

    very informative. thanks!

  • @data_first
    @data_first2 жыл бұрын

    This video is great!

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

    Thanks very much for this informative post

  • @narothamreddy9310
    @narothamreddy93102 жыл бұрын

    I have a question should we remove outliers from data before feature selection process or not?

  • @dashsingh30095
    @dashsingh300953 жыл бұрын

    Doing great job

  • @markgoh8302
    @markgoh83023 жыл бұрын

    Thanks for the tutorial. I am starting out in ML. I have a question. I notice in the video you used r2 to score your feature selection. When are you concerned about in the process that you over fitted the model?

  • @saeedhassiny7454
    @saeedhassiny74543 жыл бұрын

    please how i can doing feature selection on 1D feature vector that represent the features extracted from image

  • @user-qc3vf9uo9g
    @user-qc3vf9uo9g4 жыл бұрын

    Really helpful, Thanks!

  • @PhDandProductivity

    @PhDandProductivity

    4 жыл бұрын

    I'm glad!

  • @musicbeast2079
    @musicbeast20793 жыл бұрын

    best video I have ever come across

  • @PhDandProductivity

    @PhDandProductivity

    3 жыл бұрын

    Extreme compliment 😆

  • @hussainsalih3520
    @hussainsalih35202 жыл бұрын

    amazing keep it up

  • @arindamjain6892
    @arindamjain68923 жыл бұрын

    Loved it. Thanks

  • @PhDandProductivity

    @PhDandProductivity

    3 жыл бұрын

    Glad you enjoyed it!

  • @chanellioos
    @chanellioos2 жыл бұрын

    This 🔥 Kira

  • @info-dawg
    @info-dawg3 жыл бұрын

    Amazing! Thanks

  • @PhDandProductivity

    @PhDandProductivity

    3 жыл бұрын

    Glad you like it!

  • @finnzhang1323
    @finnzhang13233 жыл бұрын

    what should we use instead of R_squared in classification problems

  • @zuhramajid
    @zuhramajid3 жыл бұрын

    thank you so much😍 pleaseee make more machine learning videos

  • @PhDandProductivity

    @PhDandProductivity

    3 жыл бұрын

    Glad you enjoyed

  • @simon-4530
    @simon-45304 жыл бұрын

    Great video 😊 thanks

  • @PhDandProductivity

    @PhDandProductivity

    4 жыл бұрын

    Glad you enjoyed it :)

  • @mengshuangfu8206
    @mengshuangfu82063 жыл бұрын

    Thanks for the detailed explanation! I have some questions, I'm running a unsupervised learning study. what if I have 200+ features, and most of them don't seem to have correlation with each other, how do I reduce features? And what's the best way to determine how many clusters I should choose?

  • @adeshinajohn3988

    @adeshinajohn3988

    2 жыл бұрын

    Hi, Fu. Im sure you would have solved your challenge. can you state what you did? thanks

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

    Thanks for the video! Its. really good. But i have problem with you code in wrapper section because i have different dataset. Can you help me to solve my problem? Thanks a lot

  • @riccardosecci2637
    @riccardosecci26374 жыл бұрын

    Thank you for this videos :)

  • @PhDandProductivity

    @PhDandProductivity

    4 жыл бұрын

    Riccardo Secci glad you like it!

  • @riccardosecci2637

    @riccardosecci2637

    4 жыл бұрын

    @@PhDandProductivity I am soon to be PhD student in a field similar to yours (Bioinformatics) 😊 so I'm trying to deepen my understanding of Machine learning! Your videos are very clear and explanatory

  • @ajaysingh001
    @ajaysingh0014 жыл бұрын

    thanks its really nice

  • @PhDandProductivity

    @PhDandProductivity

    4 жыл бұрын

    I'm glad you like it

  • @xmine9077
    @xmine90772 жыл бұрын

    Thanks a lot for this

  • @PhDandProductivity

    @PhDandProductivity

    2 жыл бұрын

    My pleasure

  • @alifiaz7792
    @alifiaz77923 жыл бұрын

    Well Explained

  • @PhDandProductivity

    @PhDandProductivity

    3 жыл бұрын

    Thank you!

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

    Hi, your video is beneficial for my study. But I have a problem. Do your methods apply to financial data analysis? For instance, financial market predictions.

  • @harshithbangera7905
    @harshithbangera79053 жыл бұрын

    Thanks 👍...

  • @PhDandProductivity

    @PhDandProductivity

    3 жыл бұрын

    Thank you too

  • @lionelshaneyfelt5607
    @lionelshaneyfelt56073 жыл бұрын

    you're awesome tank u

  • @PhDandProductivity

    @PhDandProductivity

    3 жыл бұрын

    You're awesome too. Thanks for the comment

  • @siddharthchauhan8285
    @siddharthchauhan82853 жыл бұрын

    will it be helpful to join this community for someone who is new / beginner to machine learning ?

  • @vigneshpadmanabhan
    @vigneshpadmanabhan6 ай бұрын

    We could look into data transformations as a way to enhance the model right…. I mean applying the right transformations to each column, we have the potential to maximize their effectiveness right??

  • @manishbolbanda9872
    @manishbolbanda98724 жыл бұрын

    EDA ,Feature Engg and Feature selection are these things irrespective of Machine learning Algo to be used?? any answer would be appreciated. Thanks.

  • @PhDandProductivity

    @PhDandProductivity

    4 жыл бұрын

    manish bolbanda it can depends which procedure you use because different features will work better in different learning algorithms. So often wrapper feature selection is preferred over filtering when you are using a particular algorithm.

  • @abhinavvivek3259
    @abhinavvivek32593 жыл бұрын

    I really appreciate this tutorial. Its really very helpful. However, I do have one quick question. Why haven't you use the train_test_split function to split the dataset to predict Y on the test dataset?

  • @PhDandProductivity

    @PhDandProductivity

    3 жыл бұрын

    Thanks! Because I used cross validation instead which splits into training and test several times then averages the error over the runs.

  • @dataaholic
    @dataaholic4 жыл бұрын

    Really nice video. Loved it. Can you make videos on implementing Kernels and Gaussian Processes in python? Thanks in advance

  • @PhDandProductivity

    @PhDandProductivity

    4 жыл бұрын

    Shubham Shakya unfortunately that’s not something that I’m knowledgable about.

  • @hiruki8

    @hiruki8

    2 жыл бұрын

    @@PhDandProductivity is it something you've since become more knowledgable about? 👀

  • @bouabdellahtahar5126
    @bouabdellahtahar51263 жыл бұрын

    how to select features using swarm in python

  • @voshark7586
    @voshark75862 жыл бұрын

    Sorry . Can you tell me the roles of Feature Selection, please??? Thank you so much.

  • @saikiranalagatham3555
    @saikiranalagatham35553 жыл бұрын

    Can we select features based on gain ratio or information gain? Like a tree based approach

  • @PhDandProductivity

    @PhDandProductivity

    3 жыл бұрын

    Yes that would be another option

  • @andisupriadichan5188
    @andisupriadichan51884 жыл бұрын

    Hi kira ,thank you for your video, i' chan ,but can i ask some question about u research phd, i'm still little bit confusing about novelty in phd research, i'm concern in data mining and ML. can u tell me or make a video about this ?

  • @PhDandProductivity

    @PhDandProductivity

    4 жыл бұрын

    Andi Supriadi Chan hi thanks for commenting. I’m not really sure what you are asking.

  • @pranavipatel9259
    @pranavipatel92592 жыл бұрын

    try to put codes in the webpage and put the link of it in discriptions

  • @akshitmiglani5419
    @akshitmiglani54193 жыл бұрын

    Hi there, Thank you for sharing your knowledge. I have a question: When we check the correlation, should we not check it only with continuous variables? I'm not sure what "correlation" tells us with categorical variables. Doubt(in a broad sense) : Should we not first check if our variables are continuous/categorical and then choose the methods? For example : t-test/correlation for continuous and chi-sq test for categorical variables after doing label encoding. This has always bothered me. Looking forward to find out where the gap in my understanding is. Thank you!

  • @akashprabhakar6353
    @akashprabhakar63534 жыл бұрын

    Thanks for this video...I hv several doubts.. 1.Shouldn't we exclude features based on their correlation with other features and not the dependent variable?? 2.I am working on a similar housing dataset with 61 features...so will this forward and backward wrapper methods work? How will i find the best combination of features to select as u did here as the dataset has less no. of features. 3.Could u pls explain that pipeline code line with StandardScalar() and Kneighbors....is it automatically standardizing the numerical features and then implementing KNN? 4. My dataset has many categorical variables and after getting dummy variables, no. of features have gone up. So, how do I select using forward or backward selection as selecting levels of categories will not make any sense...so how do I select important categorical features? Your reply is highly appreciated :)

  • @PhDandProductivity

    @PhDandProductivity

    3 жыл бұрын

    Hi Akash, sorry for the delay. 1. So the point of removing variables that have low correlation with the dependent variable is that they are variables that do not predict the dependent variable and so won't be useful to the model. The risk of only looking at correlation with other variables is that you could remove a potentially useful variable because of its correlation with a useless variable. 2. It works the same with larger number of features. 3. The pipeline uses cross validation with a StandardScaler so first it will divide the data into 5 splits of training and test data, train a scaler on the training data and apply to the test data, then train the Knn to the training data and test on the test data. 4. I would recommend with categorical features, if some feature levels are not useful then group some together e.g. levels 1-3, 4, 5-9 hope that helps.

  • @akashprabhakar6353

    @akashprabhakar6353

    3 жыл бұрын

    @@PhDandProductivity thank you very much for this detailed reply

  • @tommy626

    @tommy626

    3 жыл бұрын

    @@PhDandProductivity thanks for your video and reply! just a quick follow-up on this question, so for those variables that have low correlation with the dependent variable, conclusion is keep or remove them? thx!

  • @XX-vu5jo
    @XX-vu5jo4 жыл бұрын

    PhD but doing basic stuff lol

  • @cgmiguel

    @cgmiguel

    4 жыл бұрын

    That’s why she’s teaching. These are not PhD related.

Келесі