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

Remove the multi dense layer #2222

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading