From a1cdb56cc5eb5719f08863514dae0b42fbd8d819 Mon Sep 17 00:00:00 2001 From: stevenae Date: Mon, 10 Nov 2025 10:37:13 -0500 Subject: [PATCH] Change train/test split ratio from 80/20 to 85/15 Typo in text --- intermediate_source/char_rnn_classification_tutorial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intermediate_source/char_rnn_classification_tutorial.py b/intermediate_source/char_rnn_classification_tutorial.py index 6d56029f5d5..04cfb16f627 100644 --- a/intermediate_source/char_rnn_classification_tutorial.py +++ b/intermediate_source/char_rnn_classification_tutorial.py @@ -205,7 +205,7 @@ def __getitem__(self, idx): print(f"example = {alldata[0]}") ######################### -#Using the dataset object allows us to easily split the data into train and test sets. Here we create a 80/20 +#Using the dataset object allows us to easily split the data into train and test sets. Here we create a 85/15 # split but the ``torch.utils.data`` has more useful utilities. Here we specify a generator since we need to use the #same device as PyTorch defaults to above. @@ -440,4 +440,4 @@ def evaluate(rnn, testing_data, classes): # - Any word -> language # - First name -> gender # - Character name -> writer -# - Page title -> blog or subreddit \ No newline at end of file +# - Page title -> blog or subreddit