% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kaf-fit.R
\name{predict.kaf_fit}
\alias{predict.kaf_fit}
\title{Predict from a fitted KAF model}
\usage{
\method{predict}{kaf_fit}(
  object,
  newdata,
  type = c("response", "prob", "class", "link"),
  threshold = 0.5,
  as_tensor = FALSE,
  ...
)
}
\arguments{
\item{object}{A fitted object returned by \code{kaf_fit()}.}

\item{newdata}{Matrix, data frame, vector, or 2D torch tensor.}

\item{type}{Character. Prediction type. \code{"response"} returns regression
predictions for regression, probabilities for classification. \code{"prob"}
returns probabilities for classification. \code{"class"} returns predicted
classes. \code{"link"} returns raw model logits/outputs.}

\item{threshold}{Numeric. Classification threshold used for binary class
predictions.}

\item{as_tensor}{Logical. If \code{TRUE}, return a torch tensor where supported.}

\item{...}{Unused.}
}
\value{
Predictions as a vector, matrix, factor, or torch tensor.
}
\description{
Predict from a fitted KAF model
}
