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

Make last layer activation of committor an explicit block #135

Merged
merged 2 commits into from
May 21, 2024

Conversation

EnricoTrizio
Copy link
Collaborator

@EnricoTrizio EnricoTrizio commented May 20, 2024

Description

To allow easy deactivation of the last layer sigmoid activation, it would be better to treat it as a block or as a post-processing.

See also #134

Status

  • Ready to go

@EnricoTrizio EnricoTrizio requested a review from andrrizzi May 20, 2024 09:58
Copy link

codecov bot commented May 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.51%. Comparing base (f5598d5) to head (0d85fde).

Additional details and impacted files

Copy link
Collaborator

@andrrizzi andrrizzi 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! Any reason to keep the underscore in Custom_Sigmoid and Shifted_Softplus?

@EnricoTrizio
Copy link
Collaborator Author

Any reason to keep the underscore in Custom_Sigmoid and Shifted_Softplus?

Shifted_Softplus has always been that way, so I just followed that.
We can also change it, it shouldn't be a problem. It only appears in nn.utils and in some notebooks' output cells in the model summaries.

@andrrizzi
Copy link
Collaborator

I see, thanks. In principle, if Shifted_Softplus was in a previous release, we'd have to deprecate it and remove it only when we'll release 2.0. If that's the case, we could just change their name and do

class Shifted_Softplus(ShiftedSoftplus):
    def __init__(...):
        warn('Shifted_Softplus is deprecated use ShiftedSoftplus instead.')
        super().__init__(...)

@EnricoTrizio EnricoTrizio merged commit 3f9adeb into main May 21, 2024
12 checks passed
@EnricoTrizio EnricoTrizio deleted the committor_activ branch May 21, 2024 13:53
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.

2 participants