mirror of
https://github.com/fastai/fastbook.git
synced 2025-04-07 03:10:44 +00:00
* Added install commands for packages in tabular nb * Delete .gitattributes * updated mkdir command - included parents=True updated command to save a Path object to pickle save/load replaced to save_pickle/load_pickle * Updated save_pickle/load_pickle calls
This commit is contained in:
parent
41a60e44d5
commit
4b4d127083
@ -7,7 +7,7 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"#hide\n",
|
"#hide\n",
|
||||||
"!pip install -Uqq fastbook\n",
|
"!pip install -Uqq fastbook kaggle waterfallcharts treeinterpreter dtreeviz\n",
|
||||||
"import fastbook\n",
|
"import fastbook\n",
|
||||||
"fastbook.setup_book()"
|
"fastbook.setup_book()"
|
||||||
]
|
]
|
||||||
@ -384,7 +384,7 @@
|
|||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"if not path.exists():\n",
|
"if not path.exists():\n",
|
||||||
" path.mkdir()\n",
|
" path.mkdir(parents=true)\n",
|
||||||
" api.competition_download_cli('bluebook-for-bulldozers', path=path)\n",
|
" api.competition_download_cli('bluebook-for-bulldozers', path=path)\n",
|
||||||
" file_extract(path/'bluebook-for-bulldozers.zip')\n",
|
" file_extract(path/'bluebook-for-bulldozers.zip')\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -1392,7 +1392,7 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"(path/'to.pkl').save(to)"
|
"save_pickle(path/'to.pkl',to)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1434,7 +1434,7 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"#hide\n",
|
"#hide\n",
|
||||||
"to = (path/'to.pkl').load()"
|
"to = load_pickle(path/'to.pkl')"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -9828,31 +9828,6 @@
|
|||||||
"display_name": "Python 3",
|
"display_name": "Python 3",
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"name": "python3"
|
"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.8.5"
|
|
||||||
},
|
|
||||||
"toc": {
|
|
||||||
"base_numbering": 1,
|
|
||||||
"nav_menu": {},
|
|
||||||
"number_sections": false,
|
|
||||||
"sideBar": true,
|
|
||||||
"skip_h1_title": true,
|
|
||||||
"title_cell": "Table of Contents",
|
|
||||||
"title_sidebar": "Contents",
|
|
||||||
"toc_cell": false,
|
|
||||||
"toc_position": {},
|
|
||||||
"toc_section_display": true,
|
|
||||||
"toc_window_display": false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
Loading…
Reference in New Issue
Block a user