def get_distance_kernel(self): """ DistanceKernel object constructed from this feature's current state. :return: This feature distance kernel. :rtype: DistanceKernel """ with self._rw_lock.read_lock(): return DistanceKernel(self._id_vector, self._id_vector, self._kernel_mat, self._bg_clip_ids, self._rw_lock)