No components in PCA when using Tidymodels

Hi all,

I'm trying to follow one of Julia Silge's Tidymodel tutorials on Youtube as I attempt to brush up on my ML experience. In this tutorial she demonstrates 2 or 3 different approaches for dimensionality reduction.

Julia uses a billboard dataset and tries to predict the number of weeks in the charts whereas I am using the Ames housing dataset and trying to predict Sale_Price.

Where I am coming unstuck is at 23:51 when she preps a recipe and tidies the result. In her tidied result she has a column called component which I am missing which is preventing me from moving to the next step.

I am stuck at line 104-108 in my file as I don't have a component field, could anyone enlighten me please?

My file is available here on github.

Thanks,

John

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.