Skip to content

Commit

Permalink
3-1 -> 5-2 y 7-2
Browse files Browse the repository at this point in the history
  • Loading branch information
lytex committed Sep 6, 2024
1 parent 031ebe2 commit 0f284a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 02_entrenamiento.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def gen_model_2_levels(inputs, classes, activation = 'relu',summary=False, binar
else:
block.add(Conv1D(16*2**i, 5, activation=activation, name=f"Conv1D_{16*2**i}--{n}_gp1"))
block.add(Conv1D(16*2**i, 5, activation=activation, name=f"Conv1D_{16*2**i}--{n}_gp2"))
block.add(MaxPooling1D(pool_size=3, strides=1, name=f"MaxPool1D_3-1--{n}_{i}_gp"))
block.add(MaxPooling1D(pool_size=5, strides=2, name=f"MaxPool1D_3-1--{n}_{i}_gp"))
block.add(Flatten())
net["global_par"].append(block)

Expand All @@ -219,7 +219,7 @@ def gen_model_2_levels(inputs, classes, activation = 'relu',summary=False, binar
else:
block.add(Conv1D(16*2**i, 5, activation=activation, name=f"Conv1D_{16*2**i}--{n}_gi1"))
block.add(Conv1D(16*2**i, 5, activation=activation, name=f"Conv1D_{16*2**i}--{n}_gi2"))
block.add(MaxPooling1D(pool_size=3, strides=1, name=f"MaxPool1D_3-1--{n}_{i}_gi"))
block.add(MaxPooling1D(pool_size=5, strides=2, name=f"MaxPool1D_3-1--{n}_{i}_gi"))
block.add(Flatten())
net["global_impar"].append(block)

Expand All @@ -232,7 +232,7 @@ def gen_model_2_levels(inputs, classes, activation = 'relu',summary=False, binar
else:
block.add(Conv1D(16*2**i, 5, activation=activation, name=f"Conv1D_{16*2**i}--{n}_lp1"))
block.add(Conv1D(16*2**i, 5, activation=activation, name=f"Conv1D_{16*2**i}--{n}_lp2"))
block.add(MaxPooling1D(pool_size=3, strides=1, name=f"MaxPool1D_3-1--{n}_{i}_lp"))
block.add(MaxPooling1D(pool_size=7, strides=2, name=f"MaxPool1D_3-1--{n}_{i}_lp"))
block.add(Flatten())
net["local_par"].append(block)

Expand All @@ -245,7 +245,7 @@ def gen_model_2_levels(inputs, classes, activation = 'relu',summary=False, binar
else:
block.add(Conv1D(16*2**i, 5, activation=activation, name=f"Conv1D_{16*2**i}--{n}_li1"))
block.add(Conv1D(16*2**i, 5, activation=activation, name=f"Conv1D_{16*2**i}-5--{n}_li2"))
block.add(MaxPooling1D(pool_size=3, strides=1, name=f"MaxPool1D_3-1--{n}_{i}_li"))
block.add(MaxPooling1D(pool_size=7, strides=2, name=f"MaxPool1D_3-1--{n}_{i}_li"))
block.add(Flatten())
net["local_impar"].append(block)

Expand Down

0 comments on commit 0f284a2

Please sign in to comment.