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

Extend normalization to other p norms #225

Merged
merged 14 commits into from Dec 22, 2020
Merged

Conversation

mberr
Copy link
Member

@mberr mberr commented Dec 21, 2020

When choosing normalize=True for LpRegularizer, the term is normalized by the expected norm value to isolate the regularization weight effects from the embedding dimension. Before, only p=1 and p=2 were supported. This PR extends this to any p != inf.

src/pykeen/regularizers.py Outdated Show resolved Hide resolved
@cthoyt cthoyt added the enhancement New feature or request label Dec 21, 2020
@mberr
Copy link
Member Author

mberr commented Dec 21, 2020

@PyKEEN-bot would you mind to test this?

@mberr
Copy link
Member Author

mberr commented Dec 21, 2020

@PyKEEN-bot please test one more time

Copy link
Member

@cthoyt cthoyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@mali-git
Copy link
Member

Ready to merge?

@mberr mberr merged commit 45e20b4 into master Dec 22, 2020
@mberr mberr deleted the update-lp-regularizer-normalize branch December 22, 2020 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants