% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pptr.R
\name{predict.pptr_classification}
\alias{predict.pptr_classification}
\title{Predicts labels or per-group one-hot proportions from a pptr model (classification mode).}
\usage{
\method{predict}{pptr_classification}(object, new_data = NULL, type = NULL, ...)
}
\arguments{
\item{object}{A \code{pptr_classification} model.}

\item{new_data}{A data frame or matrix of new observations. If \code{NULL}, the first positional argument in \code{...} is used for backward compatibility.}

\item{type}{\code{"class"} (default) returns a factor of predicted labels; \code{"prob"} returns a data frame with 1.0 for the predicted group and 0.0 elsewhere.}

\item{...}{Backward-compat positional `new_data`.}
}
\value{
A factor or data frame.
}
\description{
Predicts labels or per-group one-hot proportions from a pptr model (classification mode).
}
\seealso{
\code{\link{pptr}}, \code{\link{predict.pptr_regression}}
}
