Skip to content

Commit

Permalink
Update MMD_RBF.py
Browse files Browse the repository at this point in the history
  • Loading branch information
YangYu-NUAA authored Mar 28, 2023
1 parent 1e643af commit 36d557e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MMD_RBF.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import numpy as np
import torch
import torch.nn.functional as F

def mmd_rbf(source, target, kernel_mul=2.0, kernel_num=5, fix_sigma=None):
'''
计算MMD距离,使用RBF核函数
Expand Down

0 comments on commit 36d557e

Please sign in to comment.