API¶
Module for categorical kernels
Please refer to the following papers and theses for more details:
Villegas García, Marco Antonio. “An investigation into new kernels for categorical variables.” Master’s thesis, Universitat Politècnica de Catalunya, 2013.
-
class
kernelmethods.categorical.
MatchCountKernel
(return_perc=True, skip_input_checks=False)[source]¶ Bases:
kernelmethods.base.BaseKernelFunction
Categorical kernel measuring similarity via the number of matching categorical dimensions.
- Parameters
return_perc (bool) – If True, the return value would be normalized by the number of dimensions.
References
Villegas García, Marco A., “An investigation into new kernels for categorical variables.” Master’s thesis, Universitat Politècnica de Catalunya, 2013.