kumulant

Logit

@Serializable
@SerialName(value = "Logit")
data object Logit : Link(source)

Bernoulli response: mean sigmoid(eta), curvature mu * (1 - mu), loss softplus(eta) - y * eta. Expects binary targets.

Functions

curvature

open override fun curvature(eta: Double): Double(source)

Second derivative of the per-observation negative log-likelihood at eta.

invMean

open override fun invMean(eta: Double): Double(source)

Inverse link: maps the linear predictor eta to the response mean.

loss

open override fun loss(eta: Double, y: Double): Double(source)

Per-observation fit error: squared error for Identity, negative log-likelihood up to response-only constants for Logit and Log.