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
Seems like some sort of binding is missing to the plotting library to support the library specific structs. Do I need additional dependencies or loaded modules? I created a Dockerfile and a script for reproducibility:
FROM julia:rc-bookworm
# Set the working directory
WORKDIR /usr/src/app
# Install required Julia packages
RUN julia -e 'using Pkg; Pkg.add(url="https://github.com/JuliaTrustworthyAI/TaijaData.jl")'
RUN julia -e 'using Pkg; Pkg.add(url="https://github.com/JuliaTrustworthyAI/CounterfactualExplanations.jl")'
RUN julia -e 'using Pkg; Pkg.add("Plots")'
# Copy the Julia script into the container
COPY script.jl .
# Command to run the script
CMD ["julia", "script.jl"]
For completeness, here is the code from script.jl:
using CounterfactualExplanations, TaijaData, Plots
n = 500
data = TaijaData.load_moons(n)
counterfactual_data = CounterfactualExplanations.DataPreprocessing.CounterfactualData(data...)
X = counterfactual_data.X
y = counterfactual_data.y
plt = plot()
scatter!(counterfactual_data)
Best Regards
Felix
The text was updated successfully, but these errors were encountered:
Hi Felix, the piece that's missing here is using TaijaPlotting. That part of the code is omitted in the tutorial although it probably shouldn't be. Sorry about this and thanks for flagging. I'll keep this issue open as a reminder to update the docs.
I am trying to follow the tutorial and run into problems. This is the error I get for the first code snippet on the page:
Seems like some sort of binding is missing to the plotting library to support the library specific structs. Do I need additional dependencies or loaded modules? I created a Dockerfile and a script for reproducibility:
For completeness, here is the code from
script.jl
:Best Regards
Felix
The text was updated successfully, but these errors were encountered: