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

Introduced the kwargs activation_func to margarine for choosing activ… #57

Merged
merged 3 commits into from
Feb 27, 2024

Conversation

DilyOng
Copy link
Collaborator

@DilyOng DilyOng commented Feb 23, 2024

Introducing a new keyword called activation_func to margarine to allow users to choose what activation function to use.

@htjb
Copy link
Owner

htjb commented Feb 23, 2024

This looks great @DilyOng thanks! Could you just add a description of the new kwarg to the class? In the same style as the existing descriptions of things like 'number_networks'?

It would be helpful to add a similar kwarg to the clustered.py class as well so that we keep a consistent api? It's a similar change to the one you have made in maf.py but instead of adding self.activation_func to the made object you need to add it to the call to MAF on line 229 in clustered.py. Thanks!

… Added activation_fuc kwarg to clustered.py in line 229.
@DilyOng
Copy link
Collaborator Author

DilyOng commented Feb 23, 2024

@htjb Thank you for your comments. I've implemented your suggestions in the latest updates.

@htjb
Copy link
Owner

htjb commented Feb 26, 2024

Hi @DilyOng, looks good! Could you please copy the description of the new activation function kwarg into clustered.py and you need to add the kwarg too e.g. self.activation_func = kwargs.pop('activation_func', 'tanh') to clustered.py below self.parameters in the def __init__(): function.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.41%. Comparing base (93471be) to head (f7ea848).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #57      +/-   ##
==========================================
+ Coverage   82.35%   82.41%   +0.06%     
==========================================
  Files           5        5              
  Lines         578      580       +2     
==========================================
+ Hits          476      478       +2     
  Misses        102      102              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DilyOng DilyOng merged commit 12405af into htjb:master Feb 27, 2024
5 checks passed
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.

3 participants