Milestone 3. Predicting English Words
Now that you have trained the model on a simple sequence it's time to see how well it performs on an English corpus: warandpeace.txt. To do this, uncomment the read_file line at the beginning of the training section and re-run your code.
Now that we're using real data you will notice a few things, first the training will take much longer per epoch as the dataset is much larger. Second, training may not proceed as smoothly as it did before. This is because the relationships between characters in english is much more complex than in the simple sequence, so we will need to revisit our hyperparameters.
Your task: Get your RNN working on the real data by adjusting your training hyperparameters.
Tips
In addition to the tips provided in Milestone 1, here's some specific tips.
If you use the full warandpeace.txt dataset you can get a well-trained model in 1 epoch. And with a reasonable selection of hyperparameters, this epoch will take 5-10 minutes.
If you don't see a significant jump after the first epoch, you shouldn't wait, change the parameters and try again.
If you're losing patience, try taking a fraction of the dataset so you don't have to wait as long, and then run it on the full set after that's working.
Don't expect a perfect model. What would it mean to have 90% accuracy on this model, is that realistic? You'd have created a novel writing masterpiece of a model! Realistically your performance will be much lower, around 50-60% with a loss around 1.5. But even with this "low performance" you should see words (or pseudo-words) in your output but not meaningful sentences.
Milestone 4. Final Report
In your report, describe your experiments and observations when training the model with two datasets: (1) the sequence "abcdefghijklmnopqrstuvwxyz" * 100 and (2) the text from warandpeace.txt.
Include the final train and test loss values for both datasets and discuss how the generated text differed between the two. Explain the impact of changing the temperature parameter on the text generation, and provide examples. Reflect on the challenges you faced, your thought process during implementation, and the key insights you gained about RNNs and sequence modeling.
This section should be about 1-2 paragraphs in length and can include a table or figure if it helps your explanation. You can put this report at the end of this readme or in a separate markdown file.
What to Submit
Your completed char_rnn_starter.py file with all TODOs filled in.
A PDF of your Final Report.
How to generate a pdf of your Final Report Section:
On your Github repository after finishing the assignment, click on README.md to open the markdown preview.
Use your browser 's "Print to PDF" feature to save your PDF.
Please submit to Assignment 7 Neural Complete on Gradecsope.
TODO: Fill out your Final Report here
How many late days are you using for this assignment?
Describe your experiments and observations
Analysis on final train and test loss for both datasets
Explain impact of changing temperature
Reflection
what do you need to know from me to fill out this report