More comments, more business applications, and links to pkl files

This commit is contained in:
Edward Donner
2024-10-05 10:30:21 -04:00
parent 0fba20474b
commit ca67bf1af9
4 changed files with 92 additions and 10 deletions

View File

@@ -77,6 +77,20 @@
"login(hf_token, add_to_git_credential=True)"
]
},
{
"cell_type": "markdown",
"id": "3d4995a4-f67f-4871-87df-8c6439b06366",
"metadata": {},
"source": [
"## Back to the pkl files\n",
"\n",
"Much as we enjoyed data curating in week 6, we probably don't want to go through that whole process again!\n",
"\n",
"Let's reuse the pkl files we created then. Either copy the files `train.pkl` and `test.pkl` from the Week 6 folder into this Week 8 folder, or you can also download them from here:\n",
"\n",
"https://drive.google.com/drive/folders/1f_IZGybvs9o0J5sb3xmtTEQB3BXllzrW?usp=drive_link"
]
},
{
"cell_type": "code",
"execution_count": null,
@@ -84,7 +98,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Let's avoid curating all our data again! Load in the pickle files:\n",
"# With train.pkl in this folder, you can run this:\n",
"\n",
"with open('train.pkl', 'rb') as file:\n",
" train = pickle.load(file)"

View File

@@ -83,7 +83,9 @@
"metadata": {},
"outputs": [],
"source": [
"# Load in the test pickle file:\n",
"# Load in the test pickle file\n",
"# See the section \"Back to the PKL files\" in the day2.0 notebook\n",
"# for instructions on obtaining this test.pkl file\n",
"\n",
"with open('test.pkl', 'rb') as file:\n",
" test = pickle.load(file)"