forked from d2l-ai/d2l-en
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/diveintodeeplearning/d2l-en
- Loading branch information
Showing
58 changed files
with
2,375 additions
and
567 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ build/chapter* | |
build/_build | ||
build/img | ||
build/data | ||
build/gluonbook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,16 @@ | |
|
||
[![Build Status](http://ci.diveintodeeplearning.org/job/en/job/master/badge/icon)](http://ci.diveintodeeplearning.org/job/en/job/master/) | ||
|
||
## Become a D2L contributor, and you will be acknowledged in the book | ||
[[Book website](http://en.diveintodeeplearning.org/)] [[STAT 157 Course at UC Berkeley, Spring 2019](http://courses.diveintodeeplearning.org/berkeley-stat-157/)] | ||
|
||
The contents of the book are under revision. We expect that the quality will be constantly improved. | ||
|
||
Feel free to contribute to this book ([learn how to contribute](http://en.diveintodeeplearning.org/chapter_appendix/how-to-contribute.html)). All the contributors (Github ID and name, if any) will be acknowledged in the book. We will also negotiate with the press to see if each contributor can receive a free book when published. Once you become a [D2L contributor](https://github.com/diveintodeeplearning/d2l-en/graphs/contributors), please email your Github ID and name to | ||
## Contribute ([learn how](http://en.diveintodeeplearning.org/chapter_appendix/how-to-contribute.html)) | ||
|
||
> [email protected] | ||
This open source book has benefited from pedagogical suggestions, typo corrections, and other improvements from community contributors. Your help is valuable for making the book better for everyone. We will [acknowledge](http://en.diveintodeeplearning.org/chapter_introduction/preface.html#Acknowledgments) each contributor in the book and send a free book (hard copy) to each contributor when it is published. | ||
|
||
Dear contributors, please email your GitHub ID and name to [email protected]. Thanks. | ||
|
||
|
||
[[Chinese version](https://github.com/diveintodeeplearning)] [[Discuss and report issues](https://discuss.mxnet.io/)] | ||
|
||
## Chinese version 《动手学深度学习》 | ||
|
||
[https://github.com/diveintodeeplearning/d2l-zh](https://github.com/diveintodeeplearning/d2l-zh) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
# Prerequisite: pip install nblint | ||
# Run 'bash build/lint.sh' | ||
# Check results in outlint | ||
|
||
OUT=outlint | ||
|
||
[ -e $OUT ] && rm $OUT | ||
|
||
for f in build/chapter*/*.ipynb; do | ||
echo '===' $f | ||
echo '===' $f >> $OUT | ||
nblint --linter pyflakes $f >> $OUT | ||
nblint $f >> $OUT | ||
done | ||
|
||
# E302 expected 2 blank lines, found 1 | ||
# E305 expected 2 blank lines after class or function definition, found 1 | ||
# E402 module level import not at top of file | ||
# E703 statement ends with a semicolon | ||
# E741 ambiguous variable name | ||
IGNORE=( 'E302' | ||
'E305' | ||
'E402' | ||
'E703' | ||
'E741' ) | ||
|
||
for ign in "${IGNORE[@]}"; do | ||
sed -i /$ign/d $OUT | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.