extract_keras_model: Extract Keras Model from a Fitted Kerasnip Object

View source: R/keras_tools.R

extract_keras_modelR Documentation

Extract Keras Model from a Fitted Kerasnip Object

Description

Extracts and returns the underlying Keras model object from a parsnip model_fit object created by kerasnip.

Usage

extract_keras_model(object)

Arguments

object

A model_fit object produced by a kerasnip specification.

Details

Extract the Raw Keras Model from a Kerasnip Fit

This is useful when you need to work directly with the Keras model object for tasks like inspecting layer weights, creating custom plots, or passing it to other Keras-specific functions.

Value

The raw Keras model object (keras_model).

See Also

keras_evaluate, extract_keras_history


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