search for: onedayindex

Displaying 2 results from an estimated 2 matches for "onedayindex".

2019 Apr 05
2
Deep Replicable Bug With AMD Threadripper MultiCore
...e( groupidentifier=c( rep(11111,2000), rep(22222, 4500 ) ) ) sample$yvar <- sin(1:nrow(sample)) sample$xvar <- 1:nrow(sample) testfun <- function(dl) { with(dl, message("Working: ", first(groupidentifier), " with ", nrow(dl))) lapply( 1:nrow(dl), FUN=function(onedayindex) { if ((onedayindex %% 500) != 0) return(NULL) with(dl[1:onedayindex,], c( tryCatch( coef(lm( yvar ~ xvar, data=dl[1:onedayindex,] ))[2], error = function(e) NA ) ) ) }) } message("starting --- replicable hang with mclapply, but not lapply") o <- mcl...
2019 Apr 05
0
Deep Replicable Bug With AMD Threadripper MultiCore
...( rep(11111,2000), rep(22222, 4500 ) | ) ) | sample$yvar <- sin(1:nrow(sample)) | sample$xvar <- 1:nrow(sample) | | | testfun <- function(dl) { | with(dl, message("Working: ", first(groupidentifier), " with ", | nrow(dl))) | | lapply( 1:nrow(dl), FUN=function(onedayindex) { | if ((onedayindex %% 500) != 0) return(NULL) | with(dl[1:onedayindex,], | c( tryCatch( coef(lm( yvar ~ xvar, data=dl[1:onedayindex,] | ))[2], error = function(e) NA ) ) ) | }) | } | | | message("starting --- replicable hang with mclapply, but not lapply&q...