Skip to content

Commit bb4b895

Browse files
committed
Fix bug in FlatRule
1 parent 5bdd3c6 commit bb4b895

File tree

6 files changed

+1
-1
lines changed

6 files changed

+1
-1
lines changed

src/lrp_rules.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ LRP-Flat rule. Similar to the [`WSquareRule`](@ref), but with all parameters set
182182
[1]: S. Lapuschkin et al., Unmasking Clever Hans predictors and assessing what machines really learn
183183
"""
184184
struct FlatRule <: AbstractLRPRule end
185-
modify_param!(::FlatRule, p) = fill!(p, 0)
185+
modify_param!(::FlatRule, p) = fill!(p, 1)
186186
modify_input(::FlatRule, input) = ones_like(input)
187187

188188
"""
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)