% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summary.R
\name{summary.base_learner}
\alias{summary.base_learner}
\title{Summarize a fitted base learner object}
\usage{
\method{summary}{base_learner}(object, cause = 1, ...)
}
\arguments{
\item{object}{\code{base_learner} returned by \code{\link[=fit_learner]{fit_learner()}}.}

\item{cause}{\code{numeric(1)} or \code{NULL}. Which cause to summarize. If \code{NULL},
returns one summary per cause.}

\item{...}{Passed to the underlying \code{summary()} method (learner-dependent).}
}
\value{
If \code{cause} is a single integer, returns the underlying model summary for
that cause. If \code{cause = NULL}, returns a list of summaries (one per cause).
}
\description{
Dispatches to the underlying fitted model’s \code{summary()} method for the selected
cause, or returns a list of summaries for all causes.
}
\examples{
d <- simulateStenoT1(30, competing_risks = TRUE)
lrn <- Learner_glmnet(
  covariates = c("sex", "value_LDL"),
  lambda = 0.01,
  cross_validation = FALSE
)
bl <- fit_learner(
  d,
  learner = lrn,
  id = "id",
  status = "status_cvd",
  event_time = "time_cvd",
  number_of_nodes = 3
)
out <- summary(bl, cause = 1)


}
