Commit Graph

9 Commits

Author SHA1 Message Date
bentrevett
bf8cc46e48 added parameter count and epoch timer functions to all notebooks. also added cnn1d imlementation to notebook 4 2019-03-21 22:48:21 +00:00
bentrevett
cd09d20b65 fixed out of glove vector initialization and missing generate bigrams functions in fasttext implementation 2019-03-21 17:22:25 +00:00
bentrevett
14edc64ff8 fixed wording on notebook 2 2019-03-10 15:37:09 +00:00
César de Pablo
5571f93cb8
Remove an incomplete phrase (#1) 2018-12-08 22:16:55 +01:00
bentrevett
61bf7da1d0 Update for TorchText 0.3
- reworded a lot of the explanations
- fixed a lot of typos
- updated some images and moved new ones to assets folder

- fixed deterministic evaluation with `torch.backends.cudnn.deterministic = True`

- tensor_type in Fields becomes dtype
- changed train, valid, test TorchText dataset objects to be named train_data, valid_data and test_data

- TorchText iterators now have `repeat = False` by default, so removed
- TorchText iterators now take a `torch.device` instead of an int representing the GPU number (and -1 for CPU)

- `F.sigmoid` is now `torch.sigmoid`

- padding sentences in the CNN model is now fixed (before spaCy would tokenize the <pad> token into three separate tokens)
2018-10-17 17:54:31 +01:00
bentrevett
01c6f59c69 fixed train/valid splits not being deterministic 2018-07-05 12:47:04 +01:00
bentrevett
1b8a778297 removed unnecessary passing of optimizer to evaluate function 2018-07-05 11:40:41 +01:00
bentrevett
73bc184c46 added simple, upgraded and faster sentiment analysis 2018-06-05 22:16:05 +01:00
bentrevett
4010422b7a added tutorial notebook 2018-05-31 23:55:32 +01:00