sta-363-s20 / community

Discussion, Q&A, everything you want to say, formatted nicely
1 stars 0 forks source link

Code semantics tune_grid() #58

Closed jdtrat closed 4 years ago

jdtrat commented 4 years ago

Hi, I'm having an issue with the tune_grid function. Below are different ways to pull the results of a model. The first three have an error, but the last one does not. To me, they are equivalent, but I'm not sure if they actually are the same. Before continuing the lab, I want to make sure that by using the fourth method, I get the correct results. More so, I'm wondering why does the fourth method work but the first three do not?

Screen Shot 2020-03-16 at 7 19 42 PM
LucyMcGowan commented 4 years ago

Hmm I'm wondering if you have an old version of tidymodels (or tune?) What version to you currently have installed? If you run ?tidymodels you should see the version at the bottom of the help file (should be at least 0.1.0) the same for ?tune should be 0.0.1.9. If your tune package is out of date run:

devtools::install_github("tidymodels/tune")

In the console. Let me know if that helps!

jdtrat commented 4 years ago

Thanks, Dr. McGowan! I updated tune (along with dplyr and other packages). Now when I run the code (fourth way in screenshot above), I get the following message. Apparently last_fit() is also affected.

Should I keep my code using the fourth method or change it?

Thanks!

image

LucyMcGowan commented 4 years ago

I would actually suggest the first way - let me know if that doesn’t work!

On Sun, Mar 22, 2020 at 9:22 PM jdtrat notifications@github.com wrote:

Thanks, Dr. McGowan! I updated tune (along with dplyr and other packages). Now when I run the code (fourth way in screenshot above), I get the following message. Apparently last_fit() is also affected.

Should I keep my code using the fourth method or change it?

Thanks!

[image: image] https://user-images.githubusercontent.com/51417262/77270667-f595b980-6c82-11ea-85e8-f2dac6354339.png

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/sta-363-s20/community/issues/58#issuecomment-602314959, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKSGO2O7EGFG32RJF55UDRI22UVANCNFSM4LMYWASA .

-- Lucy D'Agostino McGowan, PhD Assistant Professor of Statistics Department of Mathematics and Statistics Wake Forest University ✉️ mcgowald@wfu.edu 🌐 lucymcgowan.com https://www.lucymcgowan.com

michaeljurgens commented 4 years ago

When I try to run devtools::install_github("tidymodels/tune") in the console I'm now getting this errorError in loadNamespace(name) : there is no package called ‘devtools’. Is there some other package I need to install?

jdtrat commented 4 years ago

Try running install.packages("devtools") and retry

michaeljurgens commented 4 years ago

Yes that worked thank you so much, tried it before but forgot to put quotes

jdtrat commented 4 years ago

Ofc!