extract_keras_history: Extract Keras Training History

View source: R/keras_tools.R

extract_keras_historyR Documentation

Extract Keras Training History

Description

Extracts and returns the training history from a parsnip model_fit object created by kerasnip.

Usage

extract_keras_history(object)

Arguments

object

A model_fit object produced by a kerasnip specification.

Details

Extract Keras Training History

The history object contains the metrics recorded during model training, such as loss and accuracy, for each epoch. This is highly useful for visualizing the training process and diagnosing issues like overfitting. The returned object can be plotted directly.

Value

A keras_training_history object. You can call plot() on this object to visualize the learning curves.

See Also

keras_evaluate, extract_keras_model


kerasnip documentation built on Nov. 5, 2025, 7:32 p.m.