R/checkSubdirs.R

Defines functions checkSubdir

#--------------------------------------------------------------------------------------------------
#--------------------------------------------------------------------------------------------------

checkSubdir = function(algo, space, subdir) {
  my.path = paste0("data/hptuning_", space, "_space/", algo, "/", subdir)
  v1 = dir.exists(path = my.path)
  v2 = (length(list.files(path = my.path)) != 0)
  return(v1 & v2)
}

#--------------------------------------------------------------------------------------------------
#--------------------------------------------------------------------------------------------------
rgmantovani/TuningAnalysis documentation built on Feb. 11, 2024, 6:07 p.m.