Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in summary.connection(connection) : invalid connection #9

Open
peuclide opened this issue Jun 6, 2019 · 3 comments
Open

Error in summary.connection(connection) : invalid connection #9

peuclide opened this issue Jun 6, 2019 · 3 comments

Comments

@peuclide
Copy link

peuclide commented Jun 6, 2019

Hi Alex,

I think I am having an issue with the doParallel portion of the assign.kfold() and assign.MC() functions. When I was running the scripts I made a issue so killed the run to start over and when I tried again I got the following error "Error in summary.connection(connection) : invalid connection"

my script was:

assign.kfold( genin80_3pops_rd, k.fold=c(3, 4, 5), train.loci=c( 1),

  •          loci.sample="random", model="svm", dir="./Baseline_analysis/assignPOP/Result_kf_3pop_svm_grand_comb/", multiprocess = T)
    

the output I got was:
7 cores/threads of CPU will be used for analysis...
Error in summary.connection(connection) : invalid connection

through some searching I found that I think it has something to do with stopCluster(), but was have not been able to fix it and get anything to run in parallel (the multiprocesses=FALSE method works just fine).

Thanks for your help!

Peter

@alexkychen
Copy link
Owner

Hi Peter,

Thank you for reporting this issue. It looks like there is a for-loop issue in my codes, and therefore it doesn't allow you to run multiple sets of K-fold (e.g., k.fold=c(3,4,5) ) with parallel computing. At this point, you can only set one k-fold at a time (e.g., k.fold=c(3) ) in order to run in parallel.

I will see if I can fix this bug in the next few days, and let you know.

Thanks.

@alexkychen
Copy link
Owner

Hi Peter,

I updated the function assign.kfold, and now it should run multiple sets of K-fold in parallel. Please update or reinstall your library to v.1.1.6 and see if it works.

Thanks.

@peuclide
Copy link
Author

peuclide commented Jun 10, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@alexkychen @peuclide and others