View source: R/run_simulations.R
compute_function | R Documentation |
Generates simulated with a certain seed, evaluates the data using the model and returns a list with the results from the various evaluation metrics.
compute_function(seed, data_params, model_params, eval_func_list)
seed |
The seed |
data_params |
List object containing the parameters required for generating the functional data and its characterics. Must include function named generate_data that accepts the data params list and returns a matrix of curves in the rows. Must also include vector named true_cluster_assignments that contains the actual cluster assignments for each curve. Must also include vector named seeds that contains seeds the seed for each iteration of the simulation. Other then these requirements, anything can be included in the data_params object. |
model_params |
List object containing the parameters required for modelling the data and generating the cluster assignments. Must include function named model_func that accepts Y, data_params and model_params and returns a vector containing the cluster assignment of each curve. Must also include list plot_params as with the requirements as referenced above. Other then these requirements, anything can be included in the model_params object. |
eval_func_list |
List object containing the functions corresponding to the various evaluations metrics evaluation the performance of the algorithim. Each function must accept a vector cluster_assignments that is generated from the function model_func in the model_params list as well as the data_params object which contains the vector true cluster assignments as referenced above. |
A list with the accuracy metrics as indexes
compute_function(seed, data_params, model_params, eval_func_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.