-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
last_fit() $ operator is invalid for atomic vectors #716
Comments
Thanks for the issue! There's unfortunately not much we can do here without a reproducible example. Could you upload |
Thanks for your response, @simonpcouch. I have emailed you Please confirm if you received the data. |
Sure thing! I did receive the data though I'm unable to reproduce the error you've shown. |
Thanks for confirming. That was fast, did you run the code on the full dataset? How did you modify the code above? Could it be outdated package versions? |
Just loaded tidyverse, tidymodels, parallel, and doParallel as needed. If you're able to put together a reprex with more minimal input data we'll be glad to take a look. Given our inability to reproduce with the provided information, I'm going to go ahead and close. |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
The problem
I am creating multiple random forest and support vector machines models for a classification problem. Each model is run 4 times using a different set of variables. I want to see how the variable selection impacts model accuracy. All my models work fine, except for one. The error occurs trying to fit the finalized workflow using the best performing model from the tune_bayes() object using a svm_rbf() model from kernlab. However, all the random forest models work without errors.
Reproducible example
I am unable to provide a small reproducible example, since evetime I change my dataset, the model works. I am happy to share the dataset directly to the developer for testing and trouble shooting.
The funny thing is that I got the same error on one of the other dataset using a svm_rbf() model , but after adding step_string2factor(Species) to my recipe fixed the issue, but not for this example. My reading led me to this thread #150 (comment)
Any advise on what is happening here?
Session Info
The text was updated successfully, but these errors were encountered: