def _define_kernel(self): pv = self._pv self._k1 = pv[0] * ESn2K(1 / pv[1], pv[2], ndim=3, dim=0) * ESK( 1 / pv[3], ndim=3, dim=0) self._k2 = pv[4] * ESK(1 / pv[5], ndim=3, dim=1) * ESK( 1 / pv[6], ndim=3, dim=2) self._k = self._k1 + self._k2
def _define_kernel(self): pv = self._pv self._k1 = pv[0] * ESn2K(pv[1], pv[2], ndim=3, dim=0) self._k2 = ( pv[3] * ESK(pv[4], ndim=3, dim=1) * ESK(pv[5], ndim=3, dim=2) + pv[6] * ESK(pv[7], ndim=3, dim=0)) self._k = self._k1 + self._k2
def _create_kernel(self): self.covids = (2, 3, 4, 5, 6) self.standardize = [] nd = len(self.covids) logv = self.logwnvar.mean() kernel_sk = ESK(10, bounds=((None, None),), ndim=nd, axes=0) kernel_am = ESK(1, bounds=((None, None),), ndim=nd, axes=1) kernel_xy = ESK(2, metric_bounds=((0, 20),), ndim=nd, axes=[2, 3]) kernel_en = ESK(1, bounds=((None, None),), ndim=nd, axes=4) self.kernels = kernel_sk, kernel_am, kernel_xy, kernel_en return CK(logv, bounds=((-18, -7),), ndim=nd) * kernel_sk * kernel_am * kernel_xy * kernel_en
def _define_kernel(self): pv = self.map_pv(self._pv) self._k1 = pv[0] * ESK(1/pv[1], ndim=3, axes=0) self._k2 = pv[2] * ESK(1/pv[3], ndim=3, axes=1) * ESK(1/pv[4], ndim=3, axes=2) self._k = self._k1 + self._k2
def _define_kernel(self): pv = self.map_pv(self._pv) self._k1 = pv[0] * ESn2K(gamma=1/pv[1], log_period=log(pv[2]), ndim=3, axes=0) * ESK(1/pv[3], ndim=3, axes=0) self._k2 = pv[4] * EK(1/pv[5], ndim=3, axes=1) * EK(1/pv[6], ndim=3, axes=2) self._k = self._k1 + self._k2