Principle Component Analysis(PCA) | Part 3 | Code Example and Visualization

Поділитися
Вставка
  • Опубліковано 16 лип 2024
  • In this video, we provide a code example and visualization to showcase how to implement PCA in Python. Follow along and see the power of PCA in action, simplifying data and enhancing visualization for better insights.
    Code used: github.com/campusx-official/1...
    TASK PCA: colab.research.google.com/dri...
    Task PCA Solution : colab.research.google.com/dri...
    ============================
    Do you want to learn from me?
    Check my affordable mentorship program at : learnwith.campusx.in/s/store
    ============================
    📱 Grow with us:
    CampusX' LinkedIn: / campusx-official
    CampusX on Instagram for daily tips: / campusx.official
    My LinkedIn: / nitish-singh-03412789
    Discord: / discord
    E-mail us at support@campusx.in
    ⌚Time Stamps⌚
    00:00 - Practical Example on MNIST Dataset
    01:30 - PCA Code Demo
    21:50 - 2D Visualization
    28:50 - Explained Variance
    30:48 - Finding Optimum number of principle components required
    34:34 - PCA Code Demo
    39:35 - When does PCA not work?
    43:00 - Outro

КОМЕНТАРІ • 77

  • @mridang2064
    @mridang2064 Рік тому +50

    Honestly you deserve Bharat Ratna . Teachers like you are rare as heck !!
    I thank the stars for finding your channel. If I ever make something of myself in this field I won't forget you and would help you in any way I can.
    Dhanyavaad dil se

    • @amitnakrani
      @amitnakrani Рік тому +1

      To contribute, you can join his paid service. Just a thought.

    • @SwiftMind11
      @SwiftMind11 Рік тому

      @@amitnakrani you're right, we all should do the same. It will be the best form of appreciation to him as well as encouragement to produce more resources in future.

    • @vinayakmane7569
      @vinayakmane7569 Рік тому

      bharat ratna ?

    • @arjunshankar1673
      @arjunshankar1673 Рік тому +1

      @@vinayakmane7569 🤣🤣🤣🤣

    • @user-fo5uz8oe1s
      @user-fo5uz8oe1s 3 місяці тому

      And madan puraskar too love from Nepal

  • @radhikawadhawan4235
    @radhikawadhawan4235 Місяць тому +2

    A lot of beautiful statistical concepts were left from this video. eg why eigenvectors are orthogonal, etc.

  • @ankitbiswas8380
    @ankitbiswas8380 Рік тому +16

    PCA has never been clearer . The three videos of PCA in this playlist is very powerful and has definitely understand the PCA better

    • @Raj-gc2rc
      @Raj-gc2rc Рік тому +1

      Not entirely though. you can go much deeper by understanding the covariance matrix is symmetric positive semi-definite this implies that the eigenvectors are orthogonal and Eigenvalues are all real

    • @ankitbiswas8380
      @ankitbiswas8380 Рік тому +2

      @@Raj-gc2rc honestly not required any deeper than this for my regular professional data science work . Thanks for your concern though

    • @Raj-gc2rc
      @Raj-gc2rc Рік тому

      @@ankitbiswas8380 it depends on what work you are doing .... which application are you working on ?

  • @soumenkhatua4001
    @soumenkhatua4001 Рік тому +5

    You are not a teacher a you are absolutely genius.................

  • @nakulmehta797
    @nakulmehta797 2 місяці тому +1

    For the first time i can say that I am enjoying learning , especially coding .. All thanks to you sir .

  • @ahsanzafar4921
    @ahsanzafar4921 Рік тому +3

    In the last part of video, where you explained how to count the number of components to keep by plotting a graph, I want to add that it can be done very easilt, PCA n_components argument that takes number of components to create also takes in a float value like 0.80 or 0.90, which automatically tells PCA keep upto the number of components that explains this much variance f data, reference of is book "Hands on Machine Learning with Scikit Learn chapter PCA", Thank you, all three videos excellently cover the topic.

  • @arun5351
    @arun5351 3 роки тому +15

    Great job mate!
    Can you please start time series and it's algorithms. In many of the interviews I attended, the client expectation is that time series is a fundamental concept and one should be adroit in time series problems. Surprisingly, very few trainers on UA-cam are exploring this topic and that too just on the surface.
    I request you to please start time series lectures as it's very intuitive topic and you're exceptional in explaining complex topics.
    Regards

    • @Raj-gc2rc
      @Raj-gc2rc Рік тому

      Are they expecting from us to know theory of random variables and random process ... like wide sense stationary , ergodic process in the time series interviews

  • @jayeshparmar2603
    @jayeshparmar2603 7 місяців тому +1

    It was just a perfect explanation of pca, Loved it.
    Without pca on wine data accuracy score 94% with pca 99perc ❤

  • @gouravjaiswal4616
    @gouravjaiswal4616 Рік тому

    You are the best I can arrure you. There is not a single channel on youtube on ML and data science that can beat you.

  • @itz_me_imraan02
    @itz_me_imraan02 7 місяців тому

    till now you are the best in explanation💚💚🔥...you dont skip even 1 single point

  • @santoshkamble9189
    @santoshkamble9189 2 роки тому

    Awesome and information video, great job bro.. Looking for more from you on Deep learning as well.. Thanks a lot..

  • @architasingh5659
    @architasingh5659 Місяць тому

    This is really wonderful Explanation...tysm sir for providing such a valuable vedio

  • @ParthivShah
    @ParthivShah 4 місяці тому +1

    Thank You Sir.

  • @alishaw9999
    @alishaw9999 2 роки тому

    Wonder sir, you explanation is wonderful

  • @devadasdamodharan1511
    @devadasdamodharan1511 8 місяців тому

    Awesome video. Thank you 😍

  • @sanaayakurup5453
    @sanaayakurup5453 Рік тому

    Brilliant as always. PCA can also be added as a pipeline component in the sklearn pipeline video that you made!

  • @kislaykrishna8918
    @kislaykrishna8918 2 роки тому

    thanku sir for such a great explanation 🙏

  • @thatsfantastic313
    @thatsfantastic313 Рік тому +1

    I even forget to comment, your videos are that much interesting!!!!!! love from Pakistan.😍

  • @avishinde2929
    @avishinde2929 2 роки тому

    great job sir ji
    Thank you so much

  • @vivaanyadav1st
    @vivaanyadav1st 8 місяців тому

    Nice Explanation ❤❤

  • @krithwal1997
    @krithwal1997 2 роки тому +1

    Bhai ki explanation 🙌❤

  • @shaktijain8560
    @shaktijain8560 Рік тому

    Amazing!!

  • @muhammadmobeen8682
    @muhammadmobeen8682 Рік тому

    Simply.. Awslme

  • @radhikawadhawan4235
    @radhikawadhawan4235 Місяць тому +1

    One of the main drawback of PCA is: you lose your original features and hence interpretability and explainability

  • @complexaayush9281
    @complexaayush9281 8 місяців тому

    amazing

  • @siddhigolatkar8558
    @siddhigolatkar8558 Рік тому

    Thank you

  • @Naman_Bansal102
    @Naman_Bansal102 2 місяці тому

    Bhai Best Video Hai🥰🥰🥰🥰🥰🥰

  • @FindMultiBagger
    @FindMultiBagger Рік тому

    Great 😃

  • @arshad1781
    @arshad1781 3 роки тому

    thanks

  • @namanmodi7536
    @namanmodi7536 2 роки тому

    sir best video

  • @shrutianand285
    @shrutianand285 Рік тому

    Sir can you please make video on Binary particle swarm optimisation and how it is used for feature selection.

  • @AbcdAbcd-ol5hn
    @AbcdAbcd-ol5hn Рік тому

    Thank you so much😭😭😭😭

  • @shivombhargava2166
    @shivombhargava2166 Рік тому

    This guy is a Gem. Getting such amazing quality content for data science that too in Hindi is almost a miracle.

  • @manojrangera5955
    @manojrangera5955 2 роки тому

    Sir.. Please can you tell me where I can find deployment of ml model using flask and heroku, preferred dl model... Please reply

  • @PiyushASupe
    @PiyushASupe 2 роки тому

    How can we run online predictions on model trained using features extracted by PCA. How to apply pca transform in this case?

  • @mustafachenine7942
    @mustafachenine7942 2 роки тому

    Is it possible to have an example of pictures to classify them into two categories?
    If the dimensions are reduced in pca and classification in knn is better , please

  • @souvikghosh6509
    @souvikghosh6509 8 місяців тому

    One question remains, if we have a depolyed model, how the PCA would be applied on it?? Because, at that time there won't be any matrix (here we have test data so it can calculate test data's cov matrix's eigen vector and eigen value and multiply with the test data) Only observation points will come as vector.. the same question arises while doing the mean centering or standard scaling..
    Please let me know if there is any clarity required in that question.

  • @yashjain6372
    @yashjain6372 Рік тому

    best

  • @Shisuiii69
    @Shisuiii69 Рік тому

    Sir last me Jo ap ne data ki example di thi k un data me help nhi krega tow wo plot kaise kre ge data pr Sirf y label data ko dekhna hota hai ya sare x features data pr plot kr k dekhna hoga k data ka shape
    Please tell me

  • @tanb13
    @tanb13 Рік тому +1

    Sirjee, LDA and t-SNE to reh gaya PCA ke baad, pls uske videos ahi bana deejeye !

  • @kumji1922
    @kumji1922 Рік тому

    loved the visualization felt that happiness

  • @anshulsharma7080
    @anshulsharma7080 Рік тому

    Sir ye plotting ka code yd krna hota h kya?

  • @goyanii
    @goyanii Рік тому

    you deserve Bharat Ratna

  • @tusharshukla9361
    @tusharshukla9361 Рік тому

    Hey, PCA(n_components=3) is not working ??? showing this error: ValueError: n_components=3 must be between 0 and min(n_samples, n_features)=2 with svd_solver='full' (what to do please help)

  • @ahsanulkyumsiam8774
    @ahsanulkyumsiam8774 4 місяці тому

    Sir, Kaggle code is not available here. Only previous video github link available.

  • @wahabali828
    @wahabali828 Рік тому +2

    love from Pakistan

  • @siddheswarmondal595
    @siddheswarmondal595 9 місяців тому

    PCA is applicable for continuous or discrete data ;can we use it for catagorical data in this video you use it for catagorical data which i think is not correct

  • @JustPython
    @JustPython 7 місяців тому

    Sir, This specific class source code is not available on github. please share the source code.

  • @1981Praveer
    @1981Praveer Рік тому +1

    #CampusX How would PCA will know which features should be excluded? Or, how could I know which features are used to process @16:44 ?

    • @abdulhannan-go8hl
      @abdulhannan-go8hl Рік тому

      features are selected by PCA on the basis of Eigen values and Eigen vectors, which is explained in the last video. We always select n_estimator where accuracy is higher. we can run the loop in intervals of 100,200,300 and so on to check where the n_estimator gives the best accuracy rate.

  • @manojrangera5955
    @manojrangera5955 2 роки тому

    Please reply sir....
    Can we use PCA to reduce Dimensionality of highly non-lenear dataset?

  • @mellmiss8522
    @mellmiss8522 3 роки тому

    I need pca code in spyder 3.8

  • @sidindian1982
    @sidindian1982 Рік тому

    Sir Code & dataset(Mnist ) are missing , pls reload the same ;-)

  • @descendantsoftheheroes_660
    @descendantsoftheheroes_660 11 місяців тому

    sir where is topic LDA

  • @historyofislam7509
    @historyofislam7509 Рік тому

    so difficult

  • @ytg6663
    @ytg6663 3 роки тому

    Sir , regression task me PCA apply ho sakta h kya ???

  • @sodiqrafiu9072
    @sodiqrafiu9072 3 роки тому

    English Please.............................

    • @campusx-official
      @campusx-official  3 роки тому +14

      Sir, the thing is I am much more comfortable teaching in hindi. So its a conscious decision from side. I am really sorry if you are facing inconvenience. I hope you understand

    • @sodiqrafiu9072
      @sodiqrafiu9072 3 роки тому

      @@campusx-official Sure, I get you. Thanks anyways

    • @todaystrending1992
      @todaystrending1992 3 роки тому

      Sir, please continue in hindi

    • @ytg6663
      @ytg6663 3 роки тому +8

      If you want English why dont you switch to other videos, UA-cam is already filled with English ...
      We need this content in Hindi that is very rare..👍👍👍🔥🔥❤️❤️

    • @ytg6663
      @ytg6663 3 роки тому +3

      @@campusx-official Ha sir, Aap Hindi hee continue Rakhiye 😊😊😊🙂🙂🙂

  • @mellmiss8522
    @mellmiss8522 3 роки тому

    I need pca code in spyder 3.8