You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
statgpu currently provides semiparametric Cox models but no maintained parametric accelerated-failure-time family. AFT models are the next bounded survival extension after the Cox Phase-1 baseline and complement, rather than replace, proportional-hazards analysis.
Roadmap: PR #89. Nonparametric Kaplan-Meier/Nelson-Aalen work is tracked in #94.
Goal
Implement an initial three-backend AFT framework with Weibull, log-normal, and log-logistic distributions, explicit parameterization, model-based inference, formula support, and survival prediction functions.
Design requirements
Before implementation, document:
the location/scale and acceleration-factor parameterization;
coefficient sign convention;
distribution-specific scale/shape mappings;
whether a common AFTRegression interface or distribution-specific classes are public;
intercept and ancillary/scale parameter treatment;
result and summary object shape;
sample-weight semantics;
censoring and entry support;
optimizer and convergence contract;
relationship to the existing loss/solver framework.
Do not claim alignment with R survreg or lifelines without an explicit mapping of their coefficient, scale, and shape conventions.
Initial statistical scope
Distributions:
Weibull;
log-normal;
log-logistic.
Data:
right-censored (time, event) observations;
positive finite durations;
optional analytic sample weights only if their likelihood interpretation is fixed and externally validated;
delayed entry/start-stop may be deferred unless fully supported by the selected likelihood.
Outputs:
coefficients and ancillary parameters;
log-likelihood;
convergence diagnostics;
model-based covariance, standard errors, test statistics, p-values, and confidence intervals;
AIC/BIC with a documented parameter count;
survival, CDF, hazard, cumulative hazard, and quantile predictions;
conditional median/quantile survival where defined.
Backend contract
NumPy CPU;
CuPy CUDA;
Torch CUDA;
backend-native likelihood, gradient, Hessian or Hessian-vector products, and prediction;
explicit device requests must not silently fall back;
dtype and numerical-stability rules must be tested;
known domain failures during line search may be handled narrowly, while unrelated runtime/device/OOM errors remain fatal.
Formula contract
formula/dataframe and array paths must produce aligned design matrices;
intercept behavior must be explicit;
categorical terms, interactions, transforms, missing-data row alignment, and prediction column ordering must follow current formula rules;
ancillary/scale formulas are out of scope unless separately designed.
Context
statgpu currently provides semiparametric Cox models but no maintained parametric accelerated-failure-time family. AFT models are the next bounded survival extension after the Cox Phase-1 baseline and complement, rather than replace, proportional-hazards analysis.
Roadmap: PR #89. Nonparametric Kaplan-Meier/Nelson-Aalen work is tracked in #94.
Goal
Implement an initial three-backend AFT framework with Weibull, log-normal, and log-logistic distributions, explicit parameterization, model-based inference, formula support, and survival prediction functions.
Design requirements
Before implementation, document:
AFTRegressioninterface or distribution-specific classes are public;Do not claim alignment with R
survregor lifelines without an explicit mapping of their coefficient, scale, and shape conventions.Initial statistical scope
Distributions:
Data:
(time, event)observations;Outputs:
Backend contract
Formula contract
External alignment
Use matched comparisons against:
survival::survreg;Compare:
Non-goals
Required validation
Acceptance criteria
PR decomposition
Prefer staged PRs: