You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to add the Aqua package to CounterfactualExplanations.jl repository. I have run into the following problem:
Initially, I started with the regular Aqua.test_all(CounterfactualExplanations but it threw almost 90 ambiguities, and basically none of them was from the package itself. For example:
I noticed there's no such problem when running Aqua.test_ambiguities([CounterfactualExplanations]; recursive=false, broken=false). Then, there are only two relevant ambiguities detected.
After quick digging in the codebase, I noticed the test set for ambiguity in the test_all() method includes some additional modules in the function call, i.e.:
@testset "Method ambiguity" begin
if ambiguities !== false
test_ambiguities([testtarget, Base, Core]; askwargs(ambiguities)...)
end
end
I suppose that's what causes the discrepancies.
I would be very thankful if someone who knows the package better could pivot me in the right direction.
The text was updated successfully, but these errors were encountered:
The issue with Aqua.test_ambiguities([CounterfactualExplanations]; recursive=false, broken=false) is that it only finds ambiguities between functions of your package. Ambiguities that you introduce to a Base function may be skipped. Furthermore, there are some problems with ambiguities in constructors.
Once I find some time for #180, you would get better possibilities to use the ambiguity test. For the time being, I recommend to either use your workaround (and miss some ambiguities) or skip the test altogether.
I have been trying to add the Aqua package to CounterfactualExplanations.jl repository. I have run into the following problem:
Initially, I started with the regular
Aqua.test_all(CounterfactualExplanations
but it threw almost 90 ambiguities, and basically none of them was from the package itself. For example:is from the
SentinelArrays
package.I noticed there's no such problem when running
Aqua.test_ambiguities([CounterfactualExplanations]; recursive=false, broken=false)
. Then, there are only two relevant ambiguities detected.After quick digging in the codebase, I noticed the test set for ambiguity in the
test_all()
method includes some additional modules in the function call, i.e.:I suppose that's what causes the discrepancies.
I would be very thankful if someone who knows the package better could pivot me in the right direction.
The text was updated successfully, but these errors were encountered: