Use this function to merge the fitness scores from all models into a single
vector (the fitness score is a value between 0 and 1 and denotes how close
was the model fitted to one or more training data observations). Each model's
fitness value is loaded from the respective .gitsbe file that can be
found inside the given models.dir
directory (other kind of files are
discarded).
get_fitness_from_models_dir(models.dir)
models.dir | string. A dir with .gitsbe files/models |
---|
a numeric vector with elements the fitness scores and the names of the models included in the names attribute.
models.dir = system.file("extdata", "models", package = "emba", mustWork = TRUE) models.fitness = get_fitness_from_models_dir(models.dir)