Git Product home page Git Product logo

Comments (2)

16EAGLE avatar 16EAGLE commented on September 15, 2024

.paraRasterFun itself called from global environment worked fine on two different Windows machines, using the available CPUs as expected. However, there appears to be a problem when using superClass related to the caret package. On Windows, running

beginCluster()
sc <- superClass(x, trainData = train, responseCall = "class",
                 model = "rf", tuneLength = 1, trainPartition = 0.7)

causes

Error in e$fun(obj, substitute(ex), parent.frame(), e$data) : 
  unable to find variable "optimismBoot"

This does not appear if beginCluster() is not called. The issue is known by caret users when trying to run caret functions such as train in parallel (issue: topepo/caret#706). Users report that this error also occured on Linux systems. Running the above commands using the current fixed github version of caret with devtools::install_github('topepo/caret/pkg/caret') works fine, however, this version seems not to be on CRAN yet due to some downward dependencies and the issue is still open.

Seems that just waiting for caret to be updated would solve the issue related to superClass. Until now, I could not reproduce further parallelization issues on windows.

from rstoolbox.

Baitcookie avatar Baitcookie commented on September 15, 2024

On windows (better stop using this) I was successful using caret::train in parallel with parallel::makeForkCluster.

from rstoolbox.

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.