vis_model_fit function

Visualise Generative Model Fit

Visualise Generative Model Fit

A function to visualise how well a general model has fitted to a mutation dataset across cross-validation folds. Designed to produce a similar output to glmnet's function plot.cv.glmnet.

vis_model_fit( gen_model, x_sparsity = FALSE, y_sparsity = FALSE, mut_type = NULL )

Arguments

  • gen_model: (list) A generative model fitted by fit_gen_model()
  • x_sparsity: Show model sparsity on x axis rather than lambda.
  • y_sparsity: Show model sparsity on y axis rather than deviance.
  • mut_type: Produce separate plots for each mutation type.

Returns

Summary plot of the generative model fit across folds.

Examples

p <- vis_model_fit(example_gen_model)
  • Maintainer: Jacob R. Bradley
  • License: MIT + file LICENSE
  • Last published: 2021-11-15

Useful links