--- title: "Censored regression SVM: linear and additive structure" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Censored regression SVM: linear and additive structure} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ## The censored regression objective For observed time $y_i$, event indicator $\delta_i$, and $f_i=b+g(x_i)$, the fitted objective is \[ \frac12\|g\|_{\mathcal H}^2+ C\sum_i\{(y_i-f_i)_++\delta_i(f_i-y_i)_+\}. \] An observed failure has a two-sided absolute loss. A censored observation penalizes predictions below its observed follow-up, but not above it. This is zero-epsilon censored support vector regression, not a ranking SVM. Every training row enters the objective, including repeated rows. Its dual is \[ \min_c\ \tfrac12 c^\top Kc-y^\top c,\qquad \mathbf1^\top c=0,\quad -C\delta_i\le c_i\le C . \] Writing $c=\alpha-D\beta$, with $D=\operatorname{diag}(\delta)$, gives the positive-semidefinite Hessian \[ H=\begin{pmatrix}K&-KD\\-DK&DKD\end{pmatrix}. \] No positive-definite projection or eigenvalue truncation is required. The package solves an equivalent sparse primal and independently checks its objective against the dual, along with primal and dual feasibility. Only fully converged and certified fits are returned. ## Exact additive representation The linear kernel uses $g(x)=x^\top w$ and penalty $\|w\|^2/2$. For the additive kernel, \[ K(x,z)=\sum_j\left(1-\frac{|x_j-z_j|}{R_j}\right),\qquad R_j=\max_{\rm train}x_j-\min_{\rm train}x_j . \] All ranges and coordinates are fixed during training. They are not recomputed from support vectors or from a prediction batch. Normalize each training coordinate to $u\in[0,1]$. The identity $1-|u-v|=1-u-v+2\min(u,v)$ and the free-intercept constraint $\sum_i c_i=0$ yield an exact piecewise-linear representation. At every distinct training value $u_{j0}<\cdots