Skip to content

Commit

Permalink
Fix test models to output logits and work with default loss functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jklaise committed Oct 12, 2023
1 parent 7f1c2f3 commit 6aca56d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions alibi/explainers/tests/test_simiarlity/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ def tf_linear_model(input_shape, output_shape):
tf.keras.layers.InputLayer(input_shape=input_shape),
tf.keras.layers.Flatten(),
tf.keras.layers.Dense(output_shape),
tf.keras.layers.Softmax()
])


Expand All @@ -167,7 +166,6 @@ def __init__(self, input_shape, output_shape):
self.linear_stack = nn.Sequential(
nn.Flatten(start_dim=1),
nn.Linear(input_shape, output_shape),
nn.Softmax()
)

def forward(self, x):
Expand Down

0 comments on commit 6aca56d

Please sign in to comment.