Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Sep 26, 2022
1 parent 4c83910 commit 38b6b60
Show file tree
Hide file tree
Showing 30 changed files with 187 additions and 105 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
*.swp
_book/
/.quarto/
.gitattributes
models/
tmp/
Expand Down
4 changes: 2 additions & 2 deletions 18_CAM.ipynb → CAM.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"! [ -e /content ] && pip install -Uqq fastbook\n",
"import fastbook\n",
"fastbook.setup_book()"
Expand All @@ -20,7 +20,7 @@
},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"from fastbook import *"
]
},
Expand Down
42 changes: 42 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
project:
type: book
preview:
port: 3000
browser: false

book:
title: "Practical Deep Learning for Coders, 2nd Ed (Preview)"
author: "Jeremy Howard and Sylvain Gugger"
chapters:
- index.qmd
- production.ipynb
- intro.ipynb
- ethics.ipynb
- mnist_basics.ipynb
- pet_breeds.ipynb
- multicat.ipynb
- sizing_and_tta.ipynb
- collab.ipynb
- tabular.ipynb
- nlp.ipynb
- midlevel_data.ipynb
- nlp_dive.ipynb
- convolutions.ipynb
- resnet.ipynb
- arch_details.ipynb
- accel_sgd.ipynb
- foundations.ipynb
- CAM.ipynb
- learner.ipynb
- conclusion.ipynb
- app_blog.ipynb
- app_jupyter.ipynb

bibliography: references.bib

format:
html:
theme: cosmo
pdf:
documentclass: scrreprt

10 changes: 5 additions & 5 deletions 16_accel_sgd.ipynb → accel_sgd.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"! [ -e /content ] && pip install -Uqq fastbook\n",
"import fastbook\n",
"fastbook.setup_book()"
Expand All @@ -20,7 +20,7 @@
},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"from fastbook import *"
]
},
Expand Down Expand Up @@ -75,7 +75,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide_input\n",
"#|hide_input\n",
"def get_data(url, presize, resize):\n",
" path = untar_data(url)\n",
" return DataBlock(\n",
Expand Down Expand Up @@ -494,7 +494,7 @@
}
],
"source": [
"#hide_input\n",
"#|hide_input\n",
"#id img_momentum\n",
"#caption An example of momentum\n",
"#alt Graph showing an example of momentum\n",
Expand Down Expand Up @@ -541,7 +541,7 @@
}
],
"source": [
"#hide_input\n",
"#|hide_input\n",
"#id img_betas\n",
"#caption Momentum with different beta values\n",
"#alt Graph showing how the beta value influences momentum\n",
Expand Down
2 changes: 1 addition & 1 deletion app_blog.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
"\n",
"To blog with a notebook, just pop it in the *\\_notebooks* folder in your blog repo, and it will appear in your list of blog posts. When you write your notebook, write whatever you want your audience to see. Since most writing platforms make it hard to include code and outputs, many of us are in the habit of including fewer real examples than we should. This is a great way to instead get into the habit of including lots of examples as you write.\n",
"\n",
"Often, you'll want to hide boilerplate such as import statements. You can add `#hide` to the top of any cell to make it not show up in output. Jupyter displays the result of the last line of a cell, so there's no need to include `print()`. (Including extra code that isn't needed means there's more cognitive overhead for the reader; so don't include code that you don't really need!)"
"Often, you'll want to hide boilerplate such as import statements. You can add `#|hide` to the top of any cell to make it not show up in output. Jupyter displays the result of the last line of a cell, so there's no need to include `print()`. (Including extra code that isn't needed means there's more cognitive overhead for the reader; so don't include code that you don't really need!)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion app_jupyter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"! [ -e /content ] && pip install -Uqq fastbook\n",
"import fastbook\n",
"fastbook.setup_book()"
Expand Down
8 changes: 4 additions & 4 deletions 15_arch_details.ipynb → arch_details.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"! [ -e /content ] && pip install -Uqq fastbook\n",
"import fastbook\n",
"fastbook.setup_book()"
Expand All @@ -18,7 +18,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"from fastbook import *"
]
},
Expand Down Expand Up @@ -143,7 +143,7 @@
}
],
"source": [
"#hide_output\n",
"#|hide_output\n",
"create_head(20,2)"
]
},
Expand Down Expand Up @@ -261,7 +261,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"from fastai.vision.all import *\n",
"path = untar_data(URLs.PETS)\n",
"files = get_image_files(path/\"images\")\n",
Expand Down
8 changes: 4 additions & 4 deletions 08_collab.ipynb → collab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"! [ -e /content ] && pip install -Uqq fastbook\n",
"import fastbook\n",
"fastbook.setup_book()"
Expand All @@ -18,7 +18,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"from fastbook import *"
]
},
Expand Down Expand Up @@ -1239,7 +1239,7 @@
}
],
"source": [
"#hide_input\n",
"#|hide_input\n",
"#id parabolas\n",
"x = np.linspace(-2,2,100)\n",
"a_s = [1,2,5,10,50] \n",
Expand Down Expand Up @@ -1692,7 +1692,7 @@
}
],
"source": [
"#hide_input\n",
"#|hide_input\n",
"#id img_pca_movie\n",
"#caption Representation of movies based on two strongest PCA components\n",
"#alt Representation of movies based on two strongest PCA components\n",
Expand Down
2 changes: 1 addition & 1 deletion 20_conclusion.ipynb → conclusion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"! [ -e /content ] && pip install -Uqq fastbook\n",
"import fastbook\n",
"fastbook.setup_book()"
Expand Down
10 changes: 5 additions & 5 deletions 13_convolutions.ipynb → convolutions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"! [ -e /content ] && pip install -Uqq fastbook\n",
"import fastbook\n",
"fastbook.setup_book()"
Expand All @@ -18,7 +18,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"from fastai.vision.all import *\n",
"from fastbook import *\n",
"\n",
Expand Down Expand Up @@ -129,7 +129,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"Path.BASE_PATH = path"
]
},
Expand Down Expand Up @@ -1265,7 +1265,7 @@
}
],
"source": [
"#hide_output\n",
"#|hide_output\n",
"df = pd.DataFrame(im3_t[:10,:20])\n",
"df.style.set_properties(**{'font-size':'6pt'}).background_gradient('Greys')"
]
Expand Down Expand Up @@ -2719,7 +2719,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"Path.BASE_PATH = path"
]
},
Expand Down
Binary file added cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion 03_ethics.ipynb → ethics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"! [ -e /content ] && pip install -Uqq fastbook\n",
"import fastbook\n",
"fastbook.setup_book()"
Expand Down
2 changes: 1 addition & 1 deletion 17_foundations.ipynb → foundations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"! [ -e /content ] && pip install -Uqq fastbook\n",
"import fastbook\n",
"fastbook.setup_book()"
Expand Down
6 changes: 6 additions & 0 deletions index.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Preface {.unnumbered}

This is a Quarto book.

To learn more about Quarto books visit <https://quarto.org/docs/books>.

30 changes: 15 additions & 15 deletions 01_intro.ipynb → intro.ipynb

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions intro.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Introduction

This is a book created from markdown and executable code.

See @knuth84 for additional discussion of literate programming.
6 changes: 3 additions & 3 deletions 19_learner.ipynb → learner.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"! [ -e /content ] && pip install -Uqq fastbook\n",
"import fastbook\n",
"fastbook.setup_book()"
Expand All @@ -18,7 +18,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"from fastbook import *"
]
},
Expand Down Expand Up @@ -1783,7 +1783,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide_output\n",
"#|hide_output\n",
"learn.fit(8)"
]
},
Expand Down
4 changes: 2 additions & 2 deletions 11_midlevel_data.ipynb → midlevel_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"! [ -e /content ] && pip install -Uqq fastbook\n",
"import fastbook\n",
"fastbook.setup_book()"
Expand All @@ -18,7 +18,7 @@
"metadata": {},
"outputs": [],
"source": [
"#hide\n",
"#|hide\n",
"from fastbook import *\n",
"from IPython.display import display,HTML"
]
Expand Down
Loading

0 comments on commit 38b6b60

Please sign in to comment.