Bases: numerical_kernel_based_interdependence
Source code in tinybig/interdependence/numerical_kernel_interdependence.py
| class custom_hybrid_kernel_interdependence(numerical_kernel_based_interdependence):
def __init__(self, kernels: List[Callable[[np.matrix], np.matrix]], weights: List[float] = None, name: str = 'custom_hybrid_kernel_interdependence', *args, **kwargs):
custom_hybrid_kernel_func = functools.partial(custom_hybrid_kernel, kernels=kernels, weights=weights)
super().__init__(kernel=custom_hybrid_kernel_func, name=name, *args, **kwargs)
|