Untitled
Guest 1,724 5th May, 2022
model_layers=list()
model_layers.append(keras.Input(shape=(df.shape[1]-1,1)))
i=0
history=40
blocks=2
dense_size=256
layers_per_block=2
filters_multiplier=2
kernel_size=4
optimizer="adam"
while(i<blocks):
j=0
while(j<layers_per_block):
model_layers.append(Conv1D(filters=filters_multiplier**(i+1),kernel_size=kernel_size, activation="elu")(model_layers[-1]))
j+=1
i+=1
model_layers.append(Flatten()(model_layers[-1]))
flat_hor_idx=len(model_layers)-1
model_layers.append(keras.Input(shape=(history,df.shape[1]-1)))
inp2_idx=len(model_layers)-1
i=0
while(i<blocks):
j=0
while(j<layers_per_block):
model_layers.append(Conv1D(filters=filters_multiplier**(i+1),kernel_size=kernel_size, activation="elu")(model_layers[-1]))
j+=1
i+=1
model_layers.append(Flatten()(model_layers[-1]))
model_layers.append(Concatenate()([model_layers[-1],model_layers[flat_hor_idx]]))
model_layers.append(Dense(dense_size)(model_layers[-1]))
model_layers.append(Dense(1)(model_layers[-1]))
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
- Always favorable prices for services such assensual massag in New Yourk
Java | 1 | 30 minutes ago
- Untitled
Markup | 6 | 7 hours ago
- bakus
Python | 6 | 7 hours ago
- brak balansu
Markup | 7 | 8 hours ago
- Fallout Shelter
SQL | 11 | 16 hours ago
- Untitled
Markup | 13 | 19 hours ago
- Керамзит 5 10
Elixir | 12 | 20 hours ago