Comments (2)
.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.
On windows (better stop using this) I was successful using caret::train in parallel with parallel::makeForkCluster.
from rstoolbox.
Related Issues (20)
- R fatal error when using unsuperClass from RStoolbox HOT 4
- `superClass` unable to predict when there is NA in raster data HOT 3
- Fails to run `superClass` when one of the raster layer is factor HOT 3
- Fails to run superClass when providing the `model` parameter
- Fails to run ggRGB with stacked rasters HOT 4
- Implementation of Sentenel-2 Tasseled Cap
- Mesma n_models question
- Allow fitting models on raster stacks of differing extents HOT 3
- Training data error superClass HOT 1
- MTL file error HOT 2
- Please attend to retirement of rgdal, rgeos and maptools HOT 1
- No plot with ggRGB(rlogo, ggLayer = TRUE)
- Problems with readMeta
- Stale CRS in stored objects
- Please remove dependencies on **rgdal**, **rgeos**, and/or **maptools** HOT 3
- topCor
- Error: rasterCVA
- ggR with classified raster HOT 1
- CRAN Archival 2023-02-12 HOT 8
- error in evaluating the argument 'y' in selecting a method for function 'intersect': non-character object(s)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rstoolbox.