Skip to contents

This function takes a model and data splits, computes validation and training errors, and then generates a plot to compare these errors.

Usage

create_plot(x, y)

Arguments

x

A machine learning model object.

y

An object containing data splits.

Value

A ggplot object visualizing the validation and training errors.

Examples

if (FALSE) {
  # Assuming lm_model and data_splits are available
  create_plot(lm_model, data_splits)
}