% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api.R
\name{.make_scorer}
\alias{.make_scorer}
\title{Build a scorer function for bandwidth search}
\usage{
.make_scorer(family = "gaussian", threshold = 0.5)
}
\arguments{
\item{family}{Character; `"gaussian"` or `"binomial"`.}

\item{threshold}{Numeric; classification threshold (binomial only).}
}
\value{
A function with signature `scorer(context, bandwidth)`.
}
\description{
Returns a closure that fits the full GWPR engine for a given bandwidth and
returns the score (MSE for linear, log_loss for logistic), together with
aggregate metrics.
}
\keyword{internal}
