View source: R/fn_spongeffects_utility.R
calibrate_model | R Documentation |
tests and trains a model for a disease using a training and test data set (e.g., TCGA-BRCA and METABRIC)
calibrate_model( Input, modules_metadata, label, sampleIDs, Metric = "Exact_match", tunegrid_c = c(1:100), n_folds = 10, repetitions = 3 )
Input |
Features to use for model calibration. |
modules_metadata |
metadata table containing information about samples/patients |
label |
Column of metadata to use as label in classification model |
sampleIDs |
Column of metadata containing sample/patient IDs to be matched with column names of spongEffects scores |
Metric |
metric (Exact_match, Accuracy) (default: Exact_match) |
tunegrid_c |
defines the grid for the hyperparameter optimization during cross validation (caret package) (default: 1:100) |
n_folds |
number of folds (default: 10) |
repetitions |
number of k-fold cv iterations (default: 3) |
modules |
return from enrichment_modules() function |
returns a list with the trained model and the prediction results Calibrate classification RF classification model
returns a list with the trained model and the prediction results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.