Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions intermediate_source/char_rnn_classification_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

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