Jin Yong Yoo
6273b19c19
make WordSwapGradientBased work with get_grad
2020-11-01 00:58:16 -04:00
Yanjun Qi
c78aa66980
fix all flake8 found whitespacing trailing issues
2020-10-26 08:18:55 -04:00
Yanjun Qi
23d0de6b43
clean up the docstring of each module and module content section
2020-10-25 23:15:07 -04:00
Jin Yong Yoo
e496280286
fix missed change
2020-09-30 00:49:46 -04:00
Jin Yong Yoo
88024e1f49
change --dataset-from-datasets to --dataset-from-huggingface
2020-09-30 00:33:08 -04:00
Jin Yong Yoo
428b19a511
change all mentions of nlp to datasets
2020-09-28 22:37:21 -04:00
Jack Morris
af7f31d265
update black formatting
2020-08-30 15:25:56 -04:00
Jack Morris
0291a6fbdb
| -> ^
2020-08-06 10:30:30 -04:00
Jack Morris
ae575cfeb5
attack recipes -> classes
2020-08-06 07:42:47 -04:00
Jack Morris
b589baf985
update test - : -> |
2020-07-29 15:40:03 -04:00
Jack Morris
618e815eea
update model training code
2020-07-27 10:40:19 -04:00
Jack Morris
29432d88c8
fix hotflip & model wrappers
2020-07-26 15:56:36 -04:00
Jack Morris
e6d671e918
remove dead imports; model wrappers work
2020-07-26 13:57:27 -04:00
Hanyu-Liu-123
f5e1a731d2
Update Comments
2020-07-24 18:16:53 -04:00
Hanyu Liu
ac95db5611
Final Update (hopefully)
...
Log to file by using `--log-to-txt` and `---log-to-csv`
If no argument is given, default file name and path is used
Otherwise, file name/path specified by argument
test command changed to accompany new `--log-to-csv` name
use `--csv-style` to switch between fancy to plain
2020-07-24 17:34:00 -04:00
Jack Morris
7255a9ac28
":" -> "|"; add distilbert-base-uncased-mr
2020-07-24 16:51:48 -04:00
Hanyu-Liu-123
9c8b9b6b8a
Full Functions
...
Supports saving to txt and csv file, given:
1. Default directory and filename --out-file-txt output.txt
2. User specifies directory, but not filename e.g. --out-file-txt my_outputs_dir/
3. User specifies full filepath, e.g. --out-file-txt my_outputs_dir/my_filename.txt
2020-07-21 11:37:13 -04:00
Hanyu-Liu-123
6f4dc29d00
Simplify lines to get timestamp
2020-07-20 12:13:15 -04:00
Hanyu-Liu-123
32ed762a3e
Correct Filename Error
2020-07-20 12:09:09 -04:00
Hanyu-Liu-123
92797cb643
Adjustment 3
2020-07-19 22:01:13 -04:00
Hanyu-Liu-123
a7fdef9875
Adjustment 1 & 2
...
Simplified timestamp; deleted "CSV-AttackResult"; Using f-string
2020-07-19 19:43:52 -04:00
Hanyu Liu
055a1f6829
auto format change
2020-07-18 19:04:46 -04:00
Hanyu Liu
36ebda0452
choose your own filename for txt and csv
2020-07-18 19:04:06 -04:00
Hanyu Liu
410c77fea0
Update attack_args_helpers.py
2020-07-18 18:09:14 -04:00
Jack Morris
576876257f
merge and format
2020-07-12 20:40:22 -04:00
Jack Morris
3853928a44
remove dead imports
2020-07-12 19:07:41 -04:00
Jack Morris
ba3b412658
fix remaining flake8 things, ignore the rest
2020-07-12 19:03:47 -04:00
Jake Grigsby
3ad73f7dc3
Merge pull request #204 from QData/adv_train
...
augmentation updates, adversarial training
2020-07-12 11:37:10 -04:00
jakegrigsby
da7273ac6e
fix eval bug with multiarg nlp datasets
2020-07-11 23:51:27 -04:00
Hanyu Liu
700d26f4ce
Flake8 Fix with 'make format'
2020-07-11 01:01:22 -04:00
Hanyu Liu
c2c7c00f5e
Reformatting-try3
2020-07-10 22:44:14 -04:00
Hanyu Liu
974061c0aa
Reformatting-try1
2020-07-10 19:21:02 -04:00
Jack Morris
5b9827387d
shuffle=True default & better word matching when printing in color
2020-07-08 18:14:48 -04:00
Jack Morris
58609feac1
raise warning (not error) when too few samples to attack
2020-07-07 22:08:51 -04:00
Jack Morris
7e3b90e979
fix multilabel load for pre-trained lstm/cnn; add benchmarked results for MR
2020-07-07 21:16:39 -04:00
Jack Morris
c0a3a734d8
adding AG News models
2020-07-07 20:45:51 -04:00
Jack Morris
718a74b036
update eval and add models README
2020-07-06 16:37:33 -04:00
Jack Morris
94a98f59e5
nlp summarization with gigaword
2020-06-30 19:00:51 -04:00
Jack Morris
46b0f38967
remove dead code; update T5
2020-06-30 17:47:12 -04:00
Jack Morris
4c56832253
re-map label names
2020-06-28 19:25:59 -04:00
Jack Morris
c0edd5e08b
add MR models and SNLI
2020-06-28 19:22:57 -04:00
Jack Morris
c45d6aa638
make outputs_dir when it does not exist
2020-06-26 10:01:28 -04:00
Jack Morris
70a254e157
Merge branch 'master' into train
2020-06-24 16:43:41 -04:00
Jack Morris
4d4fb77ead
Merge pull request #150 from QData/cache-dir
...
universal cache dir
2020-06-24 14:26:10 -04:00
Jack Morris
249f6e4841
updates; examples; docs
2020-06-24 14:15:56 -04:00
Jack Morris
4b2cb255cb
update and pass tests
2020-06-24 00:58:27 -04:00
Jack Morris
2d98ce0114
smart cache dir, synchronous post-install hook, better constraint caching
2020-06-23 22:35:00 -04:00
Jack Morris
5991aa6d4e
entailment works; add peek-dataset command
2020-06-23 20:22:03 -04:00
Jin Yong Yoo
153b095eea
fix attack-resume command
2020-06-23 14:33:41 -04:00
Jack Morris
5d75d02a47
Merge pull request #144 from QData/remove-choices
...
remove choices from parser
2020-06-22 16:45:07 -04:00