Skip to content

Commit

Permalink
Update Experiment_UCF11.py
Browse files Browse the repository at this point in the history
new convention for keras 2.x
  • Loading branch information
Tuyki authored Jul 6, 2017
1 parent 8ec968f commit 14103bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Experiment_UCF11.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def load_data(inds, mode = 'train'):
return_sequences=False,
dropout=0.25, recurrent_dropout=0.25, activation='tanh')
h = rnn_layer(masked_input)
output = Dense(output_dim=11, activation='softmax', W_regularizer=l2(alpha))(h)
output = Dense(output_dim=11, activation='softmax', kernel_regularizer=l2(alpha))(h)
model = Model(input, output)
model.compile(optimizer=Adam(1e-4), loss='categorical_crossentropy', metrics=['accuracy'])

Expand Down

0 comments on commit 14103bf

Please sign in to comment.