You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, there is a new issue with parallell:makeCluster() that apparently only affects new version of R on MacOS. (see here)
It causes gbm to freeze when using CV. A quick fix is to pass setup_strategy="sequential" to makeCluster in gbmCluster().
Add in your code before calling gbm:
gbmCluster = function (n)
{
if (is.null(n)) {
n <- parallel::detectCores()
}
parallel::makeCluster(n, setup_strategy = "sequential")
}
assignInNamespace("gbmCluster", gbmCluster, ns="gbm")
Hope it is useful to someone ! :)
The text was updated successfully, but these errors were encountered:
albertbuchard
changed the title
Hotfix: Parallel::MakeCluster() issue in gbmCluster()
Hotfix: CV freeze on MacOS. Parallel::MakeCluster() issue in gbmCluster()
Jul 11, 2020
albertbuchard
changed the title
Hotfix: CV freeze on MacOS. Parallel::MakeCluster() issue in gbmCluster()
Hotfix: CV freeze on MacOS due to parallel::makeCluster() issue in gbmCluster()
Jul 11, 2020
albertbuchard
changed the title
Hotfix: CV freeze on MacOS due to parallel::makeCluster() issue in gbmCluster()
CV freeze on MacOS due to parallel::makeCluster() issue in gbmCluster()
Jul 11, 2020
Hi, there is a new issue with parallell:makeCluster() that apparently only affects new version of R on MacOS. (see here)
It causes gbm to freeze when using CV. A quick fix is to pass
setup_strategy="sequential"
to makeCluster in gbmCluster().Add in your code before calling
gbm
:Hope it is useful to someone ! :)
The text was updated successfully, but these errors were encountered: