Skip to content

Commit 0053a12

Browse files
authored
Change train/test split ratio from 80/20 to 85/15 (#3644)
Typo in text I skipped the standard process because this change is so small. I do believe it's still meaningful, as a typo in a tutorial can confuse and / or dissuade learners. Happy to go through full testing procedure if required, but that will take more time. Fixes #ISSUE_NUMBER ## Description <!--- Describe your changes in detail --> ## Checklist <!--- Make sure to add `x` to all items in the following checklist: --> - [ ] The issue that is being fixed is referred in the description (see above "Fixes #ISSUE_NUMBER") - [ ] Only one issue is addressed in this pull request - [ ] Labels from the issue that this PR is fixing are added to this pull request - [ ] No unnecessary issues are included into this pull request.
1 parent a107b33 commit 0053a12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

intermediate_source/char_rnn_classification_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def __getitem__(self, idx):
205205
print(f"example = {alldata[0]}")
206206

207207
#########################
208-
#Using the dataset object allows us to easily split the data into train and test sets. Here we create a 80/20
208+
#Using the dataset object allows us to easily split the data into train and test sets. Here we create a 85/15
209209
# split but the ``torch.utils.data`` has more useful utilities. Here we specify a generator since we need to use the
210210
#same device as PyTorch defaults to above.
211211

@@ -440,4 +440,4 @@ def evaluate(rnn, testing_data, classes):
440440
# - Any word -> language
441441
# - First name -> gender
442442
# - Character name -> writer
443-
# - Page title -> blog or subreddit
443+
# - Page title -> blog or subreddit

0 commit comments

Comments
 (0)