sksurv.kernels.clinical_kernel#
- sksurv.kernels.clinical_kernel(x, y=None)[source]#
Computes clinical kernel
The clinical kernel distinguishes between continuous ordinal,and nominal variables.
See [1] for further description.
- Parameters:
x (pandas.DataFrame, shape = (n_samples_x, n_features)) – Training data
y (pandas.DataFrame, shape = (n_samples_y, n_features)) – Testing data
- Returns:
kernel – Kernel matrix. Values are normalized to lie within [0, 1].
- Return type:
array, shape = (n_samples_x, n_samples_y)
References