sup3r.utilities.loss_metrics.gaussian_kernel#
- gaussian_kernel(x_true, x_gen, sigma=1.0)[source]#
Gaussian kernel for mmd content loss
- Parameters:
x_true (tf.tensor) – high resolution ground truth data (n_obs, spatial_1, spatial_2, temporal, features)
x_gen (tf.tensor) – synthetic generator output (n_obs, spatial_1, spatial_2, temporal, features)
sigma (float) – Standard deviation for gaussian kernel
- Returns:
tf.tensor – kernel output tensor
References
Following MMD implementation in lmjohns3/theanets