Skip to main content
Advertisement

< Back to Article

Using genomic data and machine learning to predict antibiotic resistance: A tutorial paper

Fig 5

Cross Validation.

(A) k-fold cross validation (here shown is 4-fold). (B) Stratified blocked cross validation. Code is provided for both options: regular random k-fold and for stratified blocked cross validation based on MLST. For both options, the initial training and testing data split is stratified based on labels (R, S).

Fig 5

doi: https://doi.org/10.1371/journal.pcbi.1012579.g005