Skip to contents

This helper function inspects the results from compile_keras_grid() and prints a formatted, easy-to-read summary of any compilation errors that occurred.

Usage

inform_errors(compiled_grid, n = 10)

Arguments

compiled_grid

A tibble, the result of a call to compile_keras_grid().

n

A single integer for the maximum number of distinct errors to display in detail.

Value

Invisibly returns the input compiled_grid. Called for its side effect of printing a summary to the console.

Details

Display a Summary of Compilation Errors

This is most useful for interactive debugging of complex tuning grids where some hyperparameter combinations may lead to invalid Keras models.

Examples

if (FALSE) { # \dontrun{
# Continuing the example from `compile_keras_grid`:

# `compiled_grid` contains one row with an error.
# This will print a formatted summary of that error.
inform_errors(compiled_grid)
} # }