muellerzr / classconfusion Goto Github PK
View Code? Open in Web Editor NEWA useful tool for visualizing and analyzing where our models weaknesses are
A useful tool for visualizing and analyzing where our models weaknesses are
Hi.
I’m currently going through Lesson 2 using the ClassConfusion class in Google Colab in the following way:
ClassConfusion(interp, classes, is_ordered=False, figsize=(8,8))
When I ran the cell, I was asked to enter a value for ‘k’, or the top images you will see. I didn’t know what this was about so I entered 5. I was met with the following error message:
0%| | 0/3 [00:00<?, ?it/s] 0%| | 0/3 [00:00<?, ?it/s]
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-22-6a81612b4be5> in <module>()
----> 1 ClassConfusion(interp, classes, is_ordered=False, figsize=(8,8))
4 frames
/content/ClassConfusion/classConfusion.py in _plot_imgs(self, tab, i, **kwargs)
92 img, lbl = self.interp.data.valid_ds[idx]
93 fn = self.interp.data.valid_ds.x.items[idx]
---> 94 fn = re.search('([^/*]+)_\d+.*$', str(fn)).group(0)
95 img.show(ax=ax[row, col])
96 ax[row,col].set_title(fn)
AttributeError: 'NoneType' object has no attribute 'group'
I know that we can’t really use widgets in Colab but I was under the impression that ClassConfusion would remedy that problem. Its my 1st time ever using it and I am a newbie so this is most likely on me.
Thank you.
What a great repo. Can it be used for other platforms instead of fastai, such as keras?
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.