visualize_parameter_values: Visualize parameter values from the output of...

visualize_parameter_valuesR Documentation

Visualize parameter values from the output of run_nsga2R_cluster.

Description

visualize_parameter_values will take as input the output of run_nsga2R_cluster and visualize the data source weights and hyperparameters of the best and worst solutions

Usage

visualize_parameter_values(result_nsga2r, source_names, top_ns = c(5, 10, -10, -25))

Arguments

result_nsga2r

The output of run_nsga2R_cluster.

source_names

Character vector containing the names of the data sources.

top_ns

Numeric vector indicating how many of the best and worst solutions should be considered (negative values indicate the worst solutions; default: c(5, 10, -10, -25)).

Value

A list containing two ggplot objects, one for the data source weights and one for the hyperparameters.

Examples

## Not run: 
results <- run_nsga2R_cluster(model_evaluation_optimization_nsga2r, varNo=n_param, objDim=n_obj,
     lowerBounds=lower_bounds, upperBounds=upper_bounds, popSize = 360, tourSize = 2, generations = 15, ncores = 8)

# Visualize the best and worst 5 solutions
visualize_parameter_values(results, source_names, top_ns = c(5, -5))

## End(Not run)


saeyslab/nichenetr documentation built on Sept. 7, 2024, 10:27 a.m.