print_model_summary_pro | R Documentation |
Prints a formatted summary of the evaluation metrics for a prognostic model, either from training data or new data evaluation.
print_model_summary_pro(model_name, results_list, on_new_data = FALSE)
model_name |
A character string, the name of the model (e.g., "lasso_pro"). |
results_list |
A list containing model evaluation results, typically
an element from the output of |
on_new_data |
Logical, indicating whether the results are from applying
the model to new, unseen data ( |
NULL. Prints the summary to the console.
if (requireNamespace("E2E", quietly = TRUE) &&
"train_pro" %in% utils::data(package = "E2E")$results[,3]) {
data(train_pro, package = "E2E")
initialize_modeling_system_pro()
results <- models_pro(data = train_pro, model = "lasso_pro")
# Print summary for the trained model
print_model_summary_pro("lasso_pro", results$lasso_pro, on_new_data = FALSE)
# Example for a failed model
failed_results <- list(evaluation_metrics = list(error = "Training failed"))
print_model_summary_pro("MyFailedModel", failed_results)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.