% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/axe_methods.R
\name{axe-kerasnip_model_fit}
\alias{axe-kerasnip_model_fit}
\alias{axe_data.kerasnip_model_fit}
\alias{axe_env.kerasnip_model_fit}
\alias{axe_call.kerasnip_model_fit}
\alias{axe_ctrl.kerasnip_model_fit}
\alias{axe_fitted.kerasnip_model_fit}
\title{Butcher axe methods for kerasnip_model_fit}
\usage{
\method{axe_data}{kerasnip_model_fit}(x, verbose = FALSE, ...)

\method{axe_env}{kerasnip_model_fit}(x, verbose = FALSE, ...)

\method{axe_call}{kerasnip_model_fit}(x, verbose = FALSE, ...)

\method{axe_ctrl}{kerasnip_model_fit}(x, verbose = FALSE, ...)

\method{axe_fitted}{kerasnip_model_fit}(x, verbose = FALSE, ...)
}
\arguments{
\item{x}{A \code{kerasnip_model_fit} object.}

\item{verbose}{Logical. Print information about memory released and
disabled functions. Default is \code{FALSE}.}

\item{...}{Not used.}
}
\value{
An axed \code{kerasnip_model_fit} object with the \code{butcher_kerasnip_model_fit}
class prepended.
}
\description{
These methods allow \code{butcher::butcher()} to reduce the memory footprint of
fitted kerasnip model objects. The Keras model itself (stored as raw bytes
in \verb{$fit$keras_bytes}) is always preserved so that \code{predict()} continues
to work after butchering.

The main saving comes from \code{axe_data()}, which removes the training history
object (\verb{$fit$history}). For long training runs this can be several MB.
}
