Skip to contents

Core Functions

Functions for generating and managing custom model specifications.

create_keras_sequential_spec()
Create a Custom Keras Sequential Model Specification for Tidymodels
create_keras_functional_spec()
Create a Custom Keras Functional API Model Specification for Tidymodels
inp_spec()
Remap Layer Block Arguments for Model Specification
remove_keras_spec()
Remove a Keras Model Specification and its Registrations

Registration Helpers

Functions for registering custom Keras components like loss functions, optimizers, and metrics.

register_keras_loss()
Register a Custom Keras Loss
register_keras_metric()
Register a Custom Keras Metric
register_keras_optimizer()
Register a Custom Keras Optimizer
keras_optimizers keras_losses keras_metrics
Dynamically Discovered Keras Objects

Model Inspection and Evaluation

Functions for summarizing, evaluating, and extracting information from trained Keras models.

compile_keras_grid()
Compile Keras Models Over a Grid of Hyperparameters
extract_valid_grid()
Extract Valid Grid from Compilation Results
inform_errors()
Inform About Compilation Errors
extract_keras_history()
Extract Keras Training History
extract_keras_model()
Extract Keras Model from a Fitted Kerasnip Object
keras_evaluate()
Evaluate a Kerasnip Model

Custom recipe steps

Custom stpes for recipe which uses kerasnip models specifications

step_collapse()
Collapse Predictors into a single list-column