emba (version 0.1.1)

get_fitness_from_models_dir: Load the models fitness scores

Description

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.

Usage

get_fitness_from_models_dir(models.dir)

Arguments

models.dir

string. A dir with .gitsbe files/models

Value

a numeric vector with elements the fitness scores and the names of the models included in the names attribute.

Examples

Run this code
# NOT RUN {
models.dir = system.file("extdata", "models", package = "emba", mustWork = TRUE)
models.fitness = get_fitness_from_models_dir(models.dir)

# }

Run the code above in your browser using DataCamp Workspace