This commit is contained in:
Sylvain Gugger 2020-03-30 17:49:36 -07:00
parent 75bb9dcf4d
commit 48fc6c075b
2 changed files with 3 additions and 3 deletions

View File

@ -1172,7 +1172,7 @@
"source": [
"#hide\n",
"# for idx in cleaner.delete(): cleaner.fns[idx].unlink()\n",
"# for idx,cat in cleaner.change(): shutil.move(cleaner.fns[idx], path/cat)"
"# for idx,cat in cleaner.change(): shutil.move(str(cleaner.fns[idx]), path/cat)"
]
},
{
@ -1188,7 +1188,7 @@
"To move images where we've selected a different category, we would run:\n",
"\n",
"```python\n",
"for idx,cat in cleaner.change(): shutil.move(cleaner.fns[idx], path/cat)\n",
"for idx,cat in cleaner.change(): shutil.move(str(cleaner.fns[idx]), path/cat)\n",
"```\n",
"\n",
"> s: Cleaning the data or getting it ready for your model are two of the biggest challenges for data scientists; they say it takes 90% of their time. The fastai library aims at providing tools to make it as easy as possible.\n",

View File

@ -668,7 +668,7 @@
"source": [
"#hide\n",
"# for idx in cleaner.delete(): cleaner.fns[idx].unlink()\n",
"# for idx,cat in cleaner.change(): shutil.move(cleaner.fns[idx], path/cat)"
"# for idx,cat in cleaner.change(): shutil.move(str(cleaner.fns[idx]), path/cat)"
]
},
{