-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify handling of dropout Factor out layer_generator in generate_dense_network Refactor dense_per_flavor_network Move setting of last nodes to generate_nn Add constant arguments Add constant arguments Move dropout to generate_nn Move concatenation of per_flavor layers into generate_nn Make the two layer generators almost equal remove separate dense and dense_per_flavor functions Add documentation. Simplify per_flavor layer concatenation Reverse order of loops over replicas and layers Fixes for dropout Fixes for per_flavour Fix issue with copying over nodes for per_flavour layer Fix seeds in per_flavour layer Add error for combination of dropout with per_flavour layers Add basis_size argument to per_flavour layer Fix model_gen tests to use new generate_nn in favor of now removed generate_dense and generate_dense_per_flavour Allow for nodes to be a tuple Move dropout, per_flavour check to checks Clarify layer type check Co-authored-by: Juan M. Cruz-Martinez <juacrumar@lairen.eu> Clarify naming in nn_generator Remove initializer_name argument clarify comment Co-authored-by: Juan M. Cruz-Martinez <juacrumar@lairen.eu> Add comment on shared layers Rewrite comprehension over replica seeds Add check on layer type Merge prefactors into single layer Add replica dimension to preprocessing factor in test Update preprocessing layer in vpinterface Remove assigning of weight slices Simplify loading weights from file Update regression data Always return a single NNs model for all replicas, adjust weight getting and setting accordingly Revert "Update regression data" This reverts commit 6f79368. Change structure of regression weights Remove now unused postfix Update regression weights Give explicit shape to scatter_to_one Update developing weights structure fix prefix typo add double ticks rename layer name constants use constants defined in metamodel.py for layer names Explain need for is_stacked_single_replicas shorten line fix constant loading Simplify get_replica_weights NNs -> all_NNs Clarify get_layer_replica_weights Co-authored-by: Juan M. Cruz-Martinez <juacrumar@lairen.eu> Clarify set_layer_replica_weights Remove comment about python 3.11 Co-authored-by: Juan M. Cruz-Martinez <juacrumar@lairen.eu> Fix typo in comment Co-authored-by: Tanjona Rabemananjara <rrabeman@nikhef.nl> Fix formatting in docstring Co-authored-by: Tanjona Rabemananjara <rrabeman@nikhef.nl> Rewording docstring Co-authored-by: Tanjona Rabemananjara <rrabeman@nikhef.nl>
- Loading branch information
1 parent
f706be2
commit 8810e11
Showing
12 changed files
with
202 additions
and
161 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
from n3fit.backends.keras_backend.internal_state import ( | ||
set_initial_state, | ||
clear_backend_state, | ||
set_eager | ||
) | ||
from n3fit.backends.keras_backend import callbacks, constraints, operations | ||
from n3fit.backends.keras_backend.MetaLayer import MetaLayer | ||
from n3fit.backends.keras_backend.MetaModel import MetaModel | ||
from n3fit.backends.keras_backend.MetaModel import ( | ||
NN_LAYER_ALL_REPLICAS, | ||
NN_PREFIX, | ||
PREPROCESSING_LAYER_ALL_REPLICAS, | ||
MetaModel, | ||
) | ||
from n3fit.backends.keras_backend.base_layers import ( | ||
Concatenate, | ||
Input, | ||
concatenate, | ||
Lambda, | ||
base_layer_selector, | ||
concatenate, | ||
regularizer_selector, | ||
Concatenate, | ||
) | ||
from n3fit.backends.keras_backend import operations | ||
from n3fit.backends.keras_backend import constraints | ||
from n3fit.backends.keras_backend import callbacks | ||
from n3fit.backends.keras_backend.internal_state import ( | ||
clear_backend_state, | ||
set_eager, | ||
set_initial_state, | ||
) | ||
|
||
print("Using Keras backend") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.