Skip to content

Instantly share code, notes, and snippets.

@DanielDaCosta
Created May 6, 2020 02:10
Show Gist options
  • Save DanielDaCosta/43eb9060fb125d748925ae080eea12a9 to your computer and use it in GitHub Desktop.
Save DanielDaCosta/43eb9060fb125d748925ae080eea12a9 to your computer and use it in GitHub Desktop.
Output Binary Crossentropy Medium
output_array = []
metrics_array = {}
loss_array = {}
for i, dense_layer in enumerate(output_columns_binary):
name = f'binary_output_{i}'
# A Dense Layer is created for each output
binary_output = Dense(1, activation='sigmoid', name=name)(x)
output_array.append(binary_output)
metrics_array[name] = 'binary_accuracy'
loss_array[name] = 'binary_crossentropy'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment