powered by
An internal function, producing the correct bias penalisation for use in predictive model fitting.
get_K( gen_model, p_norm, training_matrix, marker_training_values = NULL, method = max )
(list) A generative mutation model, fitted by fit_gen_model().
(numeric) Scaling factor between coefficients of p and parameters of generative model (see paper for details).
(sparse matrix) A sparse matrix of mutations in the training dataset, produced by get_mutation_tables().
(dataframe) A dataframe containing training values for the biomarker in question.
(function) How to select a representative biomarker value from the training dataset. Defaults to max().
A numerical value, to be used as a penalty weighting in the subsequent group lasso optimisation.
# NOT RUN { K <- get_K(example_gen_model, 1, example_tables$train$matrix) print(K) # }
Run the code above in your browser using DataLab