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

[1]Daemen, A., De Moor, B., “Development of a kernel function for clinical data”. Annual International Conference of the IEEE Engineering in Medicine and Biology Society, 5913-7, 2009