Commit Graph

122 Commits

Author SHA1 Message Date
bentrevett
b4efbefa47 started writing nbow model text 2021-07-15 22:41:50 +01:00
bentrevett
5c2ac07720 added transformers notebook 2021-07-08 19:05:29 +01:00
bentrevett
ef687f9e92 added tqdm 2021-07-08 19:05:18 +01:00
bentrevett
e8f7d1ef96 remove unnecessary semicolons 2021-07-08 15:14:05 +01:00
bentrevett
a610a6cf0b add cnn model 2021-07-08 15:13:04 +01:00
bentrevett
bd32e23e1d add plots to lstm model and change hyperparams 2021-07-08 15:12:30 +01:00
bentrevett
838cc46826 add plots to nbow model 2021-07-08 15:11:54 +01:00
bentrevett
c8d4c1d136 fix lstm notebook
- added missing pad_index to embedding layer
- increased dropout
2021-07-08 11:43:28 +01:00
bentrevett
bc5e0f492a cleanup dataset.map functions 2021-07-08 11:26:28 +01:00
bentrevett
0b62a21dc0 added lstm with torchtext 0.10 2021-07-08 11:12:50 +01:00
bentrevett
b7debfc0a2 added parameter count
- added function to count parameters
- small variable name change, text -> ids, and labels -> label
2021-07-08 11:12:28 +01:00
bentrevett
d2e7c9a2a3 fix max_length in 1_nbow
- actually use max_length arg when getting tokens from text
2021-07-07 18:30:46 +01:00
bentrevett
3f9eedb4d4 added notebook for torchtext 0.10 2021-07-07 18:04:25 +01:00
bentrevett
bc5b2e0221 added torchtext 0.10 imdb on nbow 2021-07-07 14:43:27 +01:00
bentrevett
2b666b3cba update to torchtext 0.9 2021-03-12 13:25:47 +00:00
bentrevett
d925186eb4 Merge branch 'master' of https://github.com/bentrevett/pytorch-sentiment-analysis 2021-03-12 13:16:24 +00:00
bentrevett
6b43b7ca90 lint readme 2021-03-12 13:04:25 +00:00
bentrevett
12646431b9 update readme 2021-03-12 13:01:37 +00:00
bentrevett
ba82b9231e updated tutorials + readme with latest versions of libs. 2021-02-17 12:52:57 +00:00
bentrevett
3cea8e83b8 updated readme for experimental requirements 2020-11-16 21:50:28 +00:00
bentrevett
69fc4b0c69 refactor of data loading
- ignore trying to keep things as generators
2020-10-13 21:54:44 +01:00
bentrevett
db59992e69 updated experimental transformer notebook
- now construct each element from "scratch"
- view attention averaged over each head
- show why problematic example is always negative
2020-10-13 17:12:12 +01:00
bentrevett
9a5f417d06 added nbow with embeddingbag example 2020-09-14 22:31:16 +01:00
bentrevett
f128236623 updated readme to mention experimental must be run from torchtext master. 2020-09-13 22:12:20 +01:00
bentrevett
b15b88ae50 fix bug with max_length in tokenizer. improved loading vectors. added weight initialization 2020-09-13 22:10:45 +01:00
bentrevett
42e9e4850d updated transformer with init 2020-09-08 23:04:30 +01:00
bentrevett
2e9c4f7f9d updates 2020-09-08 16:28:04 +01:00
bentrevett
d9520e6aad added experimental cnn and transformer 2020-08-27 17:31:40 +01:00
bentrevett
270c1e16c1 updated experimental 2020-08-25 18:15:24 +01:00
Ben Trevett
c0a31c6b17 updated experimental 2020-08-18 22:37:09 +01:00
bentrevett
ac71dbd87d fixed experimental folder link. 2020-08-10 11:45:45 +01:00
Ben Trevett
d88f3c6deb
Merge pull request #82 from bentrevett/experimental
Experimental
2020-08-10 11:43:30 +01:00
bentrevett
b8ca165eb7 moved experimental to /experimental (for now). updated readme. 2020-08-10 11:42:45 +01:00
bentrevett
e48124f292 added experimental nbow model 2020-08-10 11:30:17 +01:00
bentrevett
d7be1abb54 added experimental nbow model 2020-08-03 22:58:48 +01:00
Ben Trevett
cac01789be
Merge pull request #80 from Spiderpig86/master
Fixed broken PyTorch setup link
2020-07-18 19:45:45 +01:00
Stanley Lim
fd40c22a9a
Fixed broken PyTorch setup link 2020-07-17 23:46:16 -07:00
bentrevett
79bb86abc9 clarified loading own datasets 2020-01-28 09:53:16 +00:00
bentrevett
4aa27b0db3 (#63) fixed typo in transformer model 2020-01-10 13:47:27 +00:00
bentrevett
9210842371 updated readme to mention updated pytorch version requirement 2019-11-25 14:45:30 +00:00
bentrevett
97b909cdef removed commented out imports 2019-11-06 16:06:58 +00:00
bentrevett
086d9ef5a6 updated readme with details about transformer 2019-11-06 16:04:40 +00:00
bentrevett
2e3ea700d5 renamed transformers tutorial, added initial comments 2019-11-06 15:52:50 +00:00
bentrevett
492b6d572a added batch_first to remove a permute 2019-11-06 14:01:23 +00:00
bentrevett
9ae32cf124 added transformer notebook results 2019-11-06 00:35:56 +00:00
bentrevett
96fe748dac added initial transformers tutorial 2019-11-05 23:36:23 +00:00
bentrevett
0e8eca1e85 updated gitignore for vs code 2019-11-05 23:36:06 +00:00
bentrevett
0356b3c035 fixed appendix C loading incorrect embeddings from cache 2019-09-24 16:35:57 +01:00
bentrevett
67eba4df76 added colab links for all tutorials 2019-09-20 11:42:39 +01:00
bentrevett
a43251b47d testing adding colab badge/links 2019-09-20 11:39:59 +01:00