-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling a scikit-learn model #4
Comments
Thanks @fabiensatalia for this. The reason you get this error (also for differentiable sklearn models) is that In the meantime, the only generator that should work for sklearn models without gradient-access is │ (3) , variance::Float64) │
│ /Users/paltmeyer/.julia/packages/CounterfactualExplanations/q96hi/src/generate_counterfactual/core.jl:121 │
│ │ ╭─────────────────────────────────────────────────╮ │
│ ╰─│❯ 121 Generators.growing_spheres_generation!(ce) │ │
│ ╰─────────────────────────────────────────────────╯ │
│ │
│ growing_spheres_generation!(ce::CounterfactualExplanation) │
│ /Users/paltmeyer/.julia/packages/CounterfactualExplanations/q96hi/src/generators/non_gradient_based/growing_ │
│ (4) spheres/growing_spheres.jl:111 │
│ │ ╭───────────────────────────────────────────────────────────╮ │
│ ╰─│❯ 111 ce.s′ = counterfactual_candidates[:, counterfactual] │ │
│ ╰───────────────────────────────────────────────────────────╯ │
│ │
│ ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│ Skipped 6 frames in Base │
│ ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│ │
│ ────────────────────────────────────────────────────────── In module Base ────────────────────────────────────────────────────────── │
│ │
│ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │
│ (11) │ to_index(i::Nothing) │ │
│ │ ./indices.jl:300 │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────── ERROR LINE ───╯ │
│ │
╰──── Error Stack ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭────────────────────────────────────────────────────────────── ArgumentError ─────────────────────────────────────────────────────────────╮
│ │
│ ArgumentError: invalid index: nothing of type Nothing │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ Tagging @kmariuszk here who added support for |
Maybe I should add that I think the idea of adding general support for all If we add that sort of support anywhere, it will be right here in |
Originally posted by @fabiensatalia in JuliaTrustworthyAI/CounterfactualExplanations.jl#338 (reply in thread)
The text was updated successfully, but these errors were encountered: