Giter Club home page Giter Club logo

Comments (6)

Jim89 avatar Jim89 commented on September 10, 2024

I think I have found the cause of this - I did not have kernlab installed.

With a bit of debug()-ing, I got to rs <- rlang::eval_tidy(code_path) inside tune_grid_workflow().

There, code_path evaluated to tune_mod_with_formula(rs, grid, object, perf, control), and debug() of tune_mod_with_formula() showed me errors due to kernlab not being found.

Installing kernlab has resolved the issue, and I can now reproduce the output in the article/vignette. This may be related to #44, although I'm very sorry that I'm not currently able to offer a solution to that issue, though.

from tune.

Jim89 avatar Jim89 commented on September 10, 2024

It's just been pointed out to me that kernlab is in Suggests (as in #59), so maybe it needs to be moved to Imports if it's needed for tuning? (Or maybe I just need to be smarter about how I install stuff...)

from tune.

jonthegeek avatar jonthegeek commented on September 10, 2024

It's only needed for tuning models that need it, though. I can understand not making someone install xgboost, for example, if they don't actually need xgboost.

I think better error messages would solve this, as in #44. Just need to figure out how to get there :)

from tune.

Jim89 avatar Jim89 commented on September 10, 2024

Yeah that's fair. Pretty sure at least part of this issue is due to a pebkac.

@topepo you asked in #59 if we were using parallel processing. I wasn't explicitly asking for it, but as I was passing ctrl <- grid_control(verbose = FALSE) to tune_grid() and the default for allow_par in grid_control() is TRUE, there's a chance that I was.

Either way, I think we've identified what was going wrong here, and it looks like #63 will resolve it.

from tune.

Jim89 avatar Jim89 commented on September 10, 2024

And having read the parallel section of the docs https://tidymodels.github.io/tune/articles/extras/optimizations.html#parallel-processing a bit more closely, I think the answer is: no, I'm not using parallel processing.

from tune.

github-actions avatar github-actions commented on September 10, 2024

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.

from tune.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.