sift.kernels.MappingKernel#

class sift.kernels.MappingKernel(ignore_self=False, **kwargs)[source]#

Mapping kernel.

Define a kernel based on a given mapping \(T\).

\[k(x_i, x_j) = \sum_k p_{l}(k) p_{c}(k)\]

where \(p_{l} = T / T.sum(0), p_{c} = T / T.sum(1)\)

Parameters:
  • ignore_self (bool) – Whether to ignore self transitions.

  • kwargs (Any) – Keyword arguments for the parent class.

Attributes table#

backend

The kernel's pykeops backend.

device

The kernel's device.

dtype

The kernel's data type.

k

The instantiated kernel object.

Methods table#

Attributes#

backend#

MappingKernel.backend#

The kernel’s pykeops backend.

Can be either torch or numpy.

device#

MappingKernel.device#

The kernel’s device.

dtype#

MappingKernel.dtype#

The kernel’s data type.

k#

MappingKernel.k#

The instantiated kernel object.

Methods#