Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing computation #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

williampiat3
Copy link

This version inspired from the original code aims at fixing few issues:
Firstly only one kernel was implemented, I outsourced the kernel so that the potential users can implement whichever they like. They can even make it a nn.Module class so that the gradient can be backpropagated to the kernel itself, one can now implement multiple gaussian kernel as the origin author did but also Mattern or polynomial to plug them to the MMD loss
Secondly the original code was meant for a source and a target that had the same size which is not the general case, it has been fixed here
Finally I made a utility function to outsource the broadcasting operations useful for computing the kernel

This version inspired from the original code aims at fixing few issues:
    Firstly only one kernel was implemented, I outsourced the kernel so that the potential users can implement anyone even in a nn.Module class so that the gradient can be backpropagated to the kernel itself, one can now implement multiple gaussian kernel as the origin author did but also Mattern or polynomial
    Secondly the original code was meant for a source and a target that had the same size which is not the general case, it has been fixed here
    Finally I made a utility function to outsource the broadcasting operations useful for computing the kernel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant