Skip to content

Commit

Permalink
Merge pull request #2222 from NNPDF/remove_multi_dense
Browse files Browse the repository at this point in the history
Remove the multi dense layer
  • Loading branch information
scarlehoff authored Nov 21, 2024
2 parents 541ab4d + 996e8e0 commit ad31fac
Show file tree
Hide file tree
Showing 14 changed files with 47 additions and 1,141 deletions.
1 change: 0 additions & 1 deletion extra_tests/regression_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"no_lagrange": 27,
"no_csr": 613,
"polarized_evol": 34,
"multi_dense": 316,
"t0theoryid": 100,
}

Expand Down
Binary file removed extra_tests/regression_fits/multi_dense.weights.h5
Binary file not shown.
82 changes: 0 additions & 82 deletions extra_tests/regression_fits/multi_dense.yml

This file was deleted.

633 changes: 0 additions & 633 deletions extra_tests/regression_fits/multi_dense_316.exportgrid

This file was deleted.

95 changes: 0 additions & 95 deletions extra_tests/regression_fits/multi_dense_316.json

This file was deleted.

6 changes: 1 addition & 5 deletions n3fit/runcards/examples/Basic_runcard_parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,8 @@ parameters: # This defines the parameter dictionary that is passed to the Model
threshold_chi2: 5.0

fitting:
sum_rules: "All"
# NN23(QED) = sng=0,g=1,v=2,t3=3,ds=4,sp=5,sm=6,(pht=7)
# EVOL(QED) = sng=0,g=1,v=2,v3=3,v8=4,t3=5,t8=6,(pht=7)
# EVOLS(QED)= sng=0,g=1,v=2,v8=4,t3=4,t8=5,ds=6,(pht=7)
# FLVR(QED) = g=0, u=1, ubar=2, d=3, dbar=4, s=5, sbar=6, (pht=7)
fitbasis: NN31IC # EVOL (7), EVOLQED (8), etc.
savepseudodata: False
basis:
# remeber to change the name of PDF accordingly with fitbasis
# smallx, largex: preprocessing ranges
Expand Down
2 changes: 1 addition & 1 deletion n3fit/src/n3fit/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
set_eager,
set_initial_state,
)
from n3fit.backends.keras_backend.multi_dense import MultiInitializer
from n3fit.backends.keras_backend.multi_initializer import MultiInitializer

print("Using Keras backend")
13 changes: 0 additions & 13 deletions n3fit/src/n3fit/backends/keras_backend/base_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from tensorflow.keras.regularizers import l1_l2

from .MetaLayer import MetaLayer
from .multi_dense import MultiDense
from .operations import concatenate_function


Expand Down Expand Up @@ -132,18 +131,6 @@ def apply_dense(xinput):


layers = {
"multidense": (
MultiDense,
{
"replica_seeds": None,
"base_seed": 0,
"kernel_initializer": "glorot_normal",
"units": 5,
"activation": "sigmoid",
"kernel_regularizer": None,
"is_first_layer": False,
},
),
"dense": (
Dense,
{
Expand Down
Loading

0 comments on commit ad31fac

Please sign in to comment.