mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
rename download_and_unzip to make it more specific
This commit is contained in:
@@ -170,7 +170,7 @@
|
||||
"from pathlib import Path\n",
|
||||
"import pandas as pd\n",
|
||||
"from previous_chapters import (\n",
|
||||
" download_and_unzip,\n",
|
||||
" download_and_unzip_spam_data,\n",
|
||||
" create_balanced_dataset,\n",
|
||||
" random_split\n",
|
||||
")\n",
|
||||
@@ -181,7 +181,7 @@
|
||||
"extracted_path = \"sms_spam_collection\"\n",
|
||||
"data_file_path = Path(extracted_path) / \"SMSSpamCollection.tsv\"\n",
|
||||
"\n",
|
||||
"download_and_unzip(url, zip_path, extracted_path, data_file_path)\n",
|
||||
"download_and_unzip_spam_data(url, zip_path, extracted_path, data_file_path)\n",
|
||||
"\n",
|
||||
"df = pd.read_csv(data_file_path, sep=\"\\t\", header=None, names=[\"Label\", \"Text\"])\n",
|
||||
"balanced_df = create_balanced_dataset(df)\n",
|
||||
@@ -1415,7 +1415,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.4"
|
||||
"version": "3.10.6"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
Reference in New Issue
Block a user