juliasilge / supervised-ML-case-studies-course

Supervised machine learning case studies in R! 💫 A free interactive tidymodels course
https://supervised-ml-course.netlify.app/
MIT License
221 stars 76 forks source link

chapter 2, step 12...internal error...unknown 'composition' type #60

Closed joelbray closed 3 years ago

joelbray commented 3 years ago

Something appears to be going wrong at this stage in the solution code

predict(stack_glm, stack_test)

Error: Internal error: Unknown composition type. Traceback:

  1. predict(stack_glm, stack_test)
  2. predict.workflow(stack_glm, stack_test)
  3. forge_predictors(new_data, workflow)
  4. hardhat::forge(new_data, blueprint = mold$blueprint)
  5. forge.data.frame(new_data, blueprint = mold$blueprint)
  6. blueprint$forge$process(blueprint = blueprint, predictors = predictors, . outcomes = outcomes, extras = extras)
  7. forge_recipe_default_process_predictors(blueprint = blueprint, . predictors = predictors)
  8. recompose(predictors, blueprint$composition)
  9. abort("Internal error: Unknown composition type.")
  10. signal_abort(cnd)
juliasilge commented 3 years ago

Thanks for this report @joelbray! For clarity, are you saying you get this error when using the interactive course online? I just ran through Chapter 2 and it seems to be running correctly. Can you describe in more detail in what situation you are having a problem?

walinchus commented 3 years ago

Yeah I had the same issue when using the interactive course online:

image
joelbray commented 3 years ago

Mine resolved in its own. When I went back another day, I didn’t have the issue.

On Thu, Aug 12, 2021 at 3:47 PM Lucia Walinchus @.***> wrote:

Yeah I had the same issue when using the interactive course online: [image: image] https://user-images.githubusercontent.com/25959269/129259790-4fe166ad-4352-4382-9250-28df2eb1797c.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/juliasilge/supervised-ML-case-studies-course/issues/60#issuecomment-897921252, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIYQSV4YLH3MUPI2PHYAGDLT4QQO5ANCNFSM47CRK4TA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

--


Joel Bray Pronouns https://urldefense.proofpoint.com/v2/url?u=https-3A__uwm.edu_lgbtrc_support_gender-2Dpronouns_&d=DwMFAg&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=Mqoy60XcHEoD1XeoDEG-tUNBu6ipsirqCdgDCxVCW3g&m=_3ubbxC8yCtJ-lF0OfJ5Q_xBirJ__A0ft9zw09o6YY8&s=v3QmJqjqGooJmZMN348RFJ6tkVTfnzULckK0Ac9jIn0&e=: they/them/their

juliasilge commented 3 years ago

OK, I believe I have this fixed now! The models were trained and saved using older versions of tidymodels packages, but newer package versions were being installed into the Docker container that runs the course.

Thanks you for the reports 🙌 and let me know if you run into any more problems!