Skip to content

Commit

Permalink
Update imdb notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
sgugger committed Feb 20, 2019
1 parent 6402c51 commit 37a497d
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions nbs/dl1/lesson3-imdb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
"metadata": {},
"outputs": [],
"source": [
"data = TextDataBunch.load(path)"
"data = load_data(path)"
]
},
{
Expand Down Expand Up @@ -551,7 +551,7 @@
" .label_for_lm() \n",
" #We want to do a language model so we label accordingly\n",
" .databunch(bs=bs))\n",
"data_lm.save('tmp_lm')"
"data_lm.save('data_lm.pkl')"
]
},
{
Expand All @@ -569,7 +569,7 @@
"metadata": {},
"outputs": [],
"source": [
"data_lm = TextLMDataBunch.load(path, 'tmp_lm', bs=bs)"
"data_lm = load_data(path, 'data_lm.pkl', bs=bs)"
]
},
{
Expand Down Expand Up @@ -950,7 +950,7 @@
" #label them all with their folders\n",
" .databunch(bs=bs))\n",
"\n",
"data_clas.save('tmp_clas')"
"data_clas.save('data_clas.pkl')"
]
},
{
Expand All @@ -959,7 +959,7 @@
"metadata": {},
"outputs": [],
"source": [
"data_clas = TextClasDataBunch.load(path, 'tmp_clas', bs=bs)"
"data_clas = load_data(path, 'data_clas.pkl', bs=bs)"
]
},
{
Expand Down Expand Up @@ -1279,6 +1279,31 @@
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
},
"toc": {
"base_numbering": 1,
"nav_menu": {},
"number_sections": false,
"sideBar": true,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
}
},
"nbformat": 4,
Expand Down

0 comments on commit 37a497d

Please sign in to comment.