Skip to content

Commit

Permalink
(#3) Reformer: Hotfix: Cannot use cross entropy
Browse files Browse the repository at this point in the history
  • Loading branch information
betarixm committed Mar 23, 2022
1 parent e2224a4 commit 4aac5e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/defense/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(
input_shape: tuple,
name: str = "defense_reformer",
optimizer: keras.optimizers.Optimizer = keras.optimizers.Adam(),
loss: keras.losses.Loss = keras.losses.SparseCategoricalCrossentropy(),
loss: keras.losses.Loss = keras.losses.MeanSquaredError(),
accuracy: keras.metrics.Accuracy = keras.metrics.SparseCategoricalAccuracy(
name="accuracy"
),
Expand Down

0 comments on commit 4aac5e8

Please sign in to comment.