Learn R Programming

spartan (version 3.0.2)

emulate_efast_sampled_parameters: Emulate simulations for a set of eFAST generated parameter values

Description

This method runs an ensemble for all parameter value sets specified in a CSV file generated from spartan eFAST sampling techniques. The output is a set of CSV files that can then be analysed using the spartan analysis methods detailed in Technique 4.

Usage

emulate_efast_sampled_parameters(filepath, surrogateModel, parameters,
  measures, num_curves, ensemble_set = TRUE, normalise = FALSE,
  timepoint = NULL, csv_file_input = TRUE, spartan_sample_obj = NULL,
  write_csv_file_out = TRUE, normalise_result = FALSE)

Arguments

filepath

Path to the folder containing the set of CSV files for eFAST analysis

surrogateModel

Ensemble or emulator to use to emulate the simulation responses for those sets

parameters

Simulation parameter names

measures

Simulation output response names

num_curves

Number of resample curves used in eFAST sampling

ensemble_set

Boolean stating whether this analysis is being run using an ensemble of machine learning methods (TRUE), or a single emulator (FALSE)

normalise

Whether the parameters in the sampling CSV files need to be normalised before input to the emulator (which must take values between 0 and 1)

timepoint

Simulation timepoint being analysed, if more than one. See the vignette for analysing more than one timepoint

csv_file_input

Whether parameters to emulate are being supplied in a CSV file. Default is TRUE, with spartanDB this is false

spartan_sample_obj

Where spartanDB is used, or another application that supplied parameter values as an R object created by spartan's sampling method, the name of that R object

write_csv_file_out

Whether results for each curve should be output to a CSV file. SpartanDB instead requires an R object containing this data, which is returned

normalise_result

Whether the resultant predictions should be normalised