wfondrie / mokapot

Fast and flexible semi-supervised learning for peptide detection in Python
https://mokapot.readthedocs.io
Apache License 2.0
41 stars 15 forks source link

Add copy to multiprocessing #106

Closed wfondrie closed 1 year ago

wfondrie commented 1 year ago

When using multiprocessing to train models, we need to make a copy of the data, otherwise the same training set is used for all of the folds. Fixes #104.

codecov[bot] commented 1 year ago

Codecov Report

Merging #106 (97aaf47) into main (2bc1613) will increase coverage by 0.36%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #106      +/-   ##
==========================================
+ Coverage   85.00%   85.36%   +0.36%     
==========================================
  Files          19       19              
  Lines        1640     1640              
==========================================
+ Hits         1394     1400       +6     
+ Misses        246      240       -6     
Files Changed Coverage Δ
mokapot/brew.py 94.69% <100.00%> (+3.53%) :arrow_up:

... and 1 file with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more