projects
/
valse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Package as sent to CRAN
[valse.git]
/
pkg
/
R
/
constructionModelesLassoRank.R
diff --git
a/pkg/R/constructionModelesLassoRank.R
b/pkg/R/constructionModelesLassoRank.R
index
6e18409
..
7a02967
100644
(file)
--- a/
pkg/R/constructionModelesLassoRank.R
+++ b/
pkg/R/constructionModelesLassoRank.R
@@
-83,7
+83,7
@@
constructionModelesLassoRank <- function(S, k, mini, maxi, X, Y, eps, rank.min,
# For each lambda in the grid we compute the estimators
out <-
if (ncores > 1) {
# For each lambda in the grid we compute the estimators
out <-
if (ncores > 1) {
- parLapply(cl, seq_len(length(S) * Size), computeAtLambda)
+ par
allel::par
Lapply(cl, seq_len(length(S) * Size), computeAtLambda)
} else {
lapply(seq_len(length(S) * Size), computeAtLambda)
}
} else {
lapply(seq_len(length(S) * Size), computeAtLambda)
}