Skip to content

RafaelYassue/CV-Alpha

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

CV-α

The CV-α is a cross-validation methodology and was meant to create scenarios with two, three, or four replicates, regardless of the number of treatments. Each replicate is split into folds, and the number of folds will determine the percentage of training and validation population. Each fold across replicates is based on the α(0,1) lattice design aiming to reduce the concurrences of any two treatments in the same fold (block) across replicates.

Authors: Rafael Massahiro Yassue; José Felipe Gonzaga Sabadin; Giovanni Galli; Filipe Couto Alves; Roberto Fritsche-Neto

Example

source("https://github.com/allogamous/CV-Alpha/blob/master/codes.R")

example <- tenfoldCV(gid = as.character(1:906)) # Ten folds and two replicates
head(example, 12)
head(example[example$replicate == 2,], 10)
tail(example, 10)

example2 <- fivefoldCV(gid = 1:906) # Five folds and four replicates 
head(example2[[1]], 12)
example2$size
example2$rest
example2$non.ortho

References

Acknowledgements

This study was financed in part by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior - Brasil (CAPES) - Finance Code 001, Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%