klest94 / bellatrex Goto Github PK
View Code? Open in Web Editor NEWBuilding Explanations through a LocaLly AccuraTe Rule EXtractor
Home Page: https://ieeexplore.ieee.org/abstract/document/10105927
Building Explanations through a LocaLly AccuraTe Rule EXtractor
Home Page: https://ieeexplore.ieee.org/abstract/document/10105927
Hi there !
I tried to follow the instructions given in the README.md
file for testing the module, but it failed right from the start with the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 7, in <module>
ModuleNotFoundError: No module named 'utilities'
The problematic lines seem to be these ones:
Lines 75 to 76 in e56ec80
I guess that this part of README.md
was never updated since 69351d0.
My intent is just to bring it to your attention, as tutorial.ipynb
seems the be the new correct way to follow the tutorial (although that is nowhere mentioned).
Cheers,
Weis
Following up on #3, I tried to run the tutorial provided in the tutorial.ipynb
Jupyter Notebook. I was able to follow it successfully until the very last cell, that unfortunately crashes when executed. It gives me the following exception:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[8], line 11
7 preds_distr = np.load("example-data/bin_tutorial_y_train_preds.npy")
8 axs = plot_rules(rules, preds, baselines, weights,
9 max_rulelen=None, other_preds=other_preds, preds_distr=preds_distr,
10 )
---> 11 axs[0].set_xlim([0,1])
12 # plt.savefig("visualisation.pdf")
AttributeError: 'numpy.ndarray' object has no attribute 'set_xlim'
As indicated, the error seems to be that the axs
variable is treated as an array of matplotlib.axes.Axes
, whereas it is actually an array of array of matplotlib.axes.Axes
. I guess the problem comes from 1ff6da6, where the following change occurred in visualisation.py
(around line 199):
- return axs
+ return aaxs
Replacing axs[0]
with axs[0, 0]
in the tutorial fixed the issue and successfully plotted a graph. I'm not sure if it's the tutorial that needs to be updated or the value returned by the plot_rules
function.
Cheers,
Weis
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.