-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Hi there!
This is a follow up on #36 and on #40. I can use https://github.com/kdm9's extra parallelized code to generate a collection of .Robj results for different runs, but I'm having trouble figuring out how they be loaded to run standardize.xvals and write.xvals.
I've tried iterating through loading the files and adding each to a list and then run standardize.xvals and write.xvals on that, but I don't think it's doing the trick. It sounds like it should be possible, from the text below, but I'm not doing it right.
Any thoughts?
Thanks!
Joanna
Ok so I _think_ this is salvageable. Inside the `x.validation` call there are 4 main things that happen:
- it makes the data partitions
- it performs all the cross-validation replicates (parallelized, if that was specified)
- it standardizes the cross-validation results
- it writes out the output
Your run got truncated part of the way through Step 2 above, but I think you should be able to finish the remaining runs by loading the data.partitions object created in your initial run and then calling the internal function x.validation.rep (using the ::: syntax to call an unexported function; e.g., conStruct:::x.validation.rep). Once you've completed all the runs, I think you should be able finish out Steps 3 and 4 above. Inside x.validation, those steps are accomplished via:
names(x.val) <- paste0("rep_", 1:n.reps)
x.val <- lapply(x.val, standardize.xvals)
save(x.val,file=paste0(prefix,".xval.results.Robj"))
write.xvals(x.val,prefix)
I think you should be able to take all the same steps, again using the ::: syntax to call standardize.xvals and write.xvals, which are unexported functions in the conStruct package.
Let me know if you hit snags along the way - I'm happy to help troubleshoot!
Originally posted by @gbradburd in #40 (comment)