PCA Code Example Using Visualization | Dimensionality Reduction Lecture - 19 | Applied AI Course

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 19

  • @samcool6569
    @samcool6569 4 года назад +3

    Very well explained sir.
    Just to add the entire code at 11:15
    dataframe = pd.DataFrame(data= new_coordinates, columns= ("1st_Principal", "2nd_Principal", "labels"))

  • @blendsadikaj888
    @blendsadikaj888 Год назад

    The reason why the 2 plots (your plot and the one from scikit-learn library) are not the same is that you are not reversing the vectors array along the columns (vectors = vectors[:, ::-1]), since eigh() is returning the vectors on ascending order and you need them on descending order.

  • @niharjamdar4869
    @niharjamdar4869 3 года назад +1

    One of the best explaination on PCA so far on RUclips thanks a lot ❤️

  • @prashantsingh1096
    @prashantsingh1096 6 лет назад +2

    why1/n is not multiplied with covar_matrix? Is it done in fit_transform(data) function?

    • @PrasannaChowdharyborn9th
      @PrasannaChowdharyborn9th 3 года назад

      As said in the appliedAI website under this video description:
      correction: The formula for covariance matrix is 1/n * (X^T*X) (we missed out in 1/n in the video) there is a typo in the ipython notebook, as eigenvalues generated are in ascending order, when we multiply vector*sample_data^T vector[0]*X[i] will be second principle component vector[1]*x[i] will be first principle component

  • @nehamanpreet1044
    @nehamanpreet1044 4 года назад

    Why you did the transpose you could have performed matmul(sample_data,vectors) ?

  • @harshavardhanambati5963
    @harshavardhanambati5963 4 года назад +1

    can you please upload the code by any link

  • @nidhi_singh9494
    @nidhi_singh9494 2 года назад

    Should we have to add labels according to row manually?

  • @abhinavsinghtawar9157
    @abhinavsinghtawar9157 3 года назад

    where we are setting the number of principal components in the first expaination ?

  • @Will-bb4zy
    @Will-bb4zy 3 года назад

    in the data frame , the column part should include label as well. you did not show

  • @laposanti534
    @laposanti534 2 года назад

    Straightforward explanation. Thanks for the great content!!

  • @aliceiceberg581
    @aliceiceberg581 4 года назад +1

    Extremely useful. Thank you!

  • @dursundurmaz915
    @dursundurmaz915 5 лет назад

    can we take your code for investigate

  • @sachindubey4315
    @sachindubey4315 4 года назад

    sir from where i get the dataset used in this video
    please provide link of the dataset

    • @AppliedAICourse
      @AppliedAICourse  4 года назад +2

      That's just a Google search away. Just search for " MNIST dataset download" and you will get multiple sources for this data. This dataset is also inbuilt in most libraries like Scikit Learn.

  • @username42
    @username42 5 лет назад +1

    where is the github link ?