yobx.sklearn.sksurv.linear_model#
- yobx.sklearn.sksurv.linear_model.sklearn_ipc_ridge(g: GraphBuilderExtendedProtocol, sts: Dict, outputs: List[str], estimator: IPCRidge, X: str, name: str = 'ipc_ridge') str[source]#
Converts a
sksurv.linear_model.IPCRidgeinto ONNX.IPCRidgefits a Ridge regression on the log-transformed survival time using Inverse Probability of Censoring Weighting (IPCW). At inference time the prediction formula is:y = exp(X @ coef_ + intercept_)
that is, a linear combination of the features followed by an exponential transformation to map back to the original (non-log) time scale.
Graph structure:
X ──Gemm(coef, intercept, transB=1)──Exp──► predictions
- Parameters:
g – the graph builder to add nodes to
sts – shapes and types defined by scikit-learn
outputs – desired output tensor names
estimator – a fitted
IPCRidgeX – name of the input tensor
name – prefix used for names of nodes added by this converter
- Returns:
output tensor name