This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '''Trains an LSTM model on the IMDB sentiment classification task. | |
| The dataset is actually too small for LSTM to be of any advantage | |
| compared to simpler, much faster methods such as TF-IDF + LogReg. | |
| # Notes | |
| - RNNs are tricky. Choice of batch size is important, | |
| choice of loss and optimizer is critical, etc. | |
| Some configurations won't converge. |