Skip to content

Commit

Permalink
omg
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-alt committed Dec 7, 2023
1 parent ab91387 commit 0150597
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/objectives/loss_functions.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Distributions
using ..Generators
using LinearAlgebra

"""
Expand Down Expand Up @@ -62,5 +63,5 @@ function hinge_loss_ir(ce::AbstractCounterfactualExplanation)
@warn "Invalidation rate is only defined for InvalidationRateConvergence. Returning 0."
return 0.0
end
return max(0, invalidation_rate(ce) - ce.convergence.invalidation_rate)
return max(0, Generators.invalidation_rate(ce) - ce.convergence.invalidation_rate)
end

0 comments on commit 0150597

Please sign in to comment.