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
When I try to run the generate_counterfactual function in parallel as shown in the image below, I get an error about the Convergence object.
Code:
Error:
When I follow the stacktrace of the error it leads me to the get_convergence_type function in the Convergence module in the CounterfactualExplanations package. This function has 2 versions: one with AbstractConvergence as input and one with Symbol as input (see image below)
In my case, because I have created my own DecisionThresholdConvergence object, I would expect the first function to be called. However, for reason currently unknown to me, when the @with_parallelizer macro is used the function with the Symbol as input is being called. I've tested the same code without the macro and this works how it is supposed to.
@pat-alt is this enough information for someone to look into? If more details are necessary, please let me know. Solving this issue would really help me out :)
The text was updated successfully, but these errors were encountered:
That's all I need and indeed a nasty little bug. I'm working on it, but metaprogramming is always a little tricky (at least for me). In the meantime, you should be able to use the parallelize function directly, instead of the macro.
When I try to run the
generate_counterfactual
function in parallel as shown in the image below, I get an error about theConvergence
object.Code:
Error:
When I follow the stacktrace of the error it leads me to the
get_convergence_type
function in theConvergence
module in the CounterfactualExplanations package. This function has 2 versions: one withAbstractConvergence
as input and one withSymbol
as input (see image below)In my case, because I have created my own DecisionThresholdConvergence object, I would expect the first function to be called. However, for reason currently unknown to me, when the
@with_parallelizer
macro is used the function with theSymbol
as input is being called. I've tested the same code without the macro and this works how it is supposed to.@pat-alt is this enough information for someone to look into? If more details are necessary, please let me know. Solving this issue would really help me out :)
The text was updated successfully, but these errors were encountered: