You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There maybe a wrong with CORAL Loss loss = torch.norm(torch.mul((source_covariance-target_covariance), (source_covariance-target_covariance)), p="fro")
It should be loss = torch.norm((source_covariance-target_covariance), p="fro")
The text was updated successfully, but these errors were encountered:
According to the Deep CORAL paper (https://arxiv.org/pdf/1607.01719.pdf), the CORAL loss is defined as the squared matrix of the Frobenius norm (see equation 1, section 3.1).
My understanding when implementing this method is that if I just take
loss = torch.norm((source_covariance-target_covariance), p="fro")
I am just computing the Frobenius norm but not taking the squared multiplication into account. This means, I am just doing || • ||_F
By adding torch.mul((source_covariance-target_covariance), (source_covariance-target_covariance)), I am making sure that I am computing the squared matrix Frobenius norm, i.e. || • ||²_F
There maybe a wrong with CORAL Loss
loss = torch.norm(torch.mul((source_covariance-target_covariance), (source_covariance-target_covariance)), p="fro")
It should be
loss = torch.norm((source_covariance-target_covariance), p="fro")
The text was updated successfully, but these errors were encountered: