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

ENH: new methods added to smash.factory.Net #312

Merged
merged 28 commits into from
Sep 10, 2024

Conversation

nghi-truyen
Copy link
Member

@nghi-truyen nghi-truyen commented Sep 9, 2024

New features are added to smash.factory.Net sub-package:

  • Net.set_weight to set weights for the regionalization NN
  • Net.set_bias to set biases for the regionalization NN
  • Net.get_weight to get weights of the regionalization NN
  • Net.get_bias to get biases of the regionalization NN
  • Net.forward_pass to run a forward pass for the regionalization NN

Some tests are also added for the new methods

- More flexible NN structure for hybrid models
- Ignore conflicts on baseline
@nghi-truyen nghi-truyen added the enhancement New feature or request label Sep 9, 2024
@nghi-truyen nghi-truyen added this to the Release v1.1.0 milestone Sep 9, 2024
@nghi-truyen nghi-truyen linked an issue Sep 9, 2024 that may be closed by this pull request
Copy link
Member

@inoelloc inoelloc left a comment

Choose a reason for hiding this comment

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

Good pour moi. Je laisse @pag13 jeter un oeil avant de merge !

smash/core/simulation/_doc.py Outdated Show resolved Hide resolved
smash/factory/net/_layers.py Show resolved Hide resolved
smash/factory/net/_standardize.py Outdated Show resolved Hide resolved
smash/factory/net/net.py Show resolved Hide resolved
Copy link
Collaborator

@pag13 pag13 left a comment

Choose a reason for hiding this comment

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

Changes ok for me, thanks.

smash/core/simulation/_doc.py Outdated Show resolved Hide resolved
@nghi-truyen nghi-truyen merged commit f1d6416 into DassHydro:main Sep 10, 2024
22 checks passed
@nghi-truyen nghi-truyen deleted the enh-net-forward-pass branch September 10, 2024 11:10
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.

ENH: add a public method to run a forward pass for Net
3 participants