Comments (1)
Here is another bug in the last cell of softmax-regression-concise.ipynb
d2l.train_ch3(net, train_iter, test_iter, loss, num_epochs, trainer)
Here is the bug detail
AssertionError Traceback (most recent call last)
in <cell line: 2>()
1 num_epochs = 2
----> 2 d2l.train_ch3(net, train_iter, test_iter, loss, num_epochs, trainer)
/usr/local/lib/python3.10/dist-packages/d2l/tensorflow.py in train_ch3(net, train_iter, test_iter, loss, num_epochs, updater)
318 animator.add(epoch + 1, train_metrics + (test_acc,))
319 train_loss, train_acc = train_metrics
--> 320 assert train_loss < 0.5, train_loss
321 assert train_acc <= 1 and train_acc > 0.7, train_acc
322 assert test_acc <= 1 and test_acc > 0.7, test_acc
AssertionError: 0.5710129758199056
ImportError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/IPython/core/formatters.py in call(self, obj)
339 pass
340 else:
--> 341 return printer(obj)
342 # Finally look for special method names
343 method = get_real_method(obj, self.print_method)
12 frames
/usr/local/lib/python3.10/dist-packages/matplotlib/backends/backend_svg.py in
16 import matplotlib as mpl
17 from matplotlib import _api, cbook, font_manager as fm
---> 18 from matplotlib.backend_bases import (
19 _Backend, _check_savefig_extra_args, FigureCanvasBase, FigureManagerBase,
20 RendererBase)
ImportError: cannot import name '_check_savefig_extra_args' from 'matplotlib.backend_bases' (/usr/local/lib/python3.10/dist-packages/matplotlib/backend_bases.py)
from d2l-en.
Related Issues (20)
- Notebooks are not working on Colab HOT 3
- AttributeError: module 'd2l.torch' has no attribute 'train_ch3' HOT 5
- module 'd2l.torch' has no attribute 'count_corpus' HOT 3
- A question about 4.7.3.3. Label Shift Correction HOT 1
- PyTorch Colab of Chapter 13.5 is having an IndexError HOT 2
- Free copy for the first 100 contributors
- Ethics?
- MLX support HOT 1
- Add type hinting to functions HOT 1
- Incorrect Use of torch.no_grad() in fit_epoch Method in d2l/torch.py::Trainer::fit_epoch HOT 2
- Not able to render :begin_tab:toc
- [**emergency**] the comment block is down, please fix it right now HOT 1
- Chinese version of the code is out of date
- The discussion link can not be accessed. HOT 7
- The mlm loss computation in the function _get_batch_loss_bert seems wrong in d2l pytorch code HOT 2
- Can't build the book on MacOS when trying to add MLX implementation
- Some issues with the book
- WikiText-2 is not a zip file HOT 2
- question about ”d2l = sys.modules[__name__]“
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d2l-en.