tidymodels / TMwR

Code and content for "Tidy Modeling with R"
https://tmwr.org
Other
604 stars 285 forks source link

Data for figure 12-6 are missing #333

Open RaymondBalise opened 2 years ago

RaymondBalise commented 2 years ago

The code to make figure 12-6 starts with an object called sfd_grid. I searched the book repo and it is not defined. I loaded all the packages referenced in chapter 12 and the object is still not found. The only reference I can find to that object on the web is a blog post about Max's presentation at RStudio::Conf 2020. I can probably guestimate the values and add a tribble but the code also references a dataset called grid_contours which is missing. I don't think I can fake that without doing a lot of geometry/trigonometry.

Can you please point me to the data or share the code to make the missing objects?

juliasilge commented 2 years ago

It is loaded via load("RData/search_examples.RData") so if you want to see or use the data, you could clone the repo and get it that way. I can't find the code that generates this either, though. Should we add that script to extras/ @topepo?

RaymondBalise commented 2 years ago

I am sorry but I don't see either sfd_grid or grid_contours in the RData folder. I tried cmd-shift-f search in the RStudio IDE and could not find them.

I do not think any other books cover the concepts of searching the parameter space in a friendly format. So I would love to use this for teaching and having the code for those figures would help me bring the example to life.

juliasilge commented 2 years ago

The way to find it @RaymondBalise is to git clone the repo (or usethis::create_from_github("tidymodels/TMwR")), then open up the new local project. Once you are in the project locally, you can run in R load("RData/search_examples.RData") and then there will be three datasets in your environment. That .RData file holds three datasets related to the search examples. Doesn't get you to code to generate them, but you can see what they look like!