Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/jindongwang/transferlearning
/ mmd_loss
Function
mmd_loss
code/deep/DaNN/main.py:26–27 ·
view source on GitHub ↗
(x_src, x_tar)
Source
from the content-addressed store, hash-verified
24
25
26
def
mmd_loss(x_src, x_tar):
27
return
mmd.mix_rbf_mmd2(x_src, x_tar, [GAMMA])
28
29
30
def
train(model, optimizer, epoch, data_src, data_tar):
Callers
1
train
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected