Created
July 18, 2020 21:31
-
-
Save himkt/c31ee841443f4c954b242e3a5e93417c to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"dataset_reader": { | |
"lazy": false, | |
"token_indexers": { | |
"tokens": { | |
"lowercase_tokens": true, | |
"type": "single_id" | |
} | |
}, | |
"tokenizer": { | |
"word_splitter": "just_spaces" | |
}, | |
"type": "text_classification_json" | |
}, | |
"datasets_for_vocab_creation": [ | |
"train" | |
], | |
"iterator": { | |
"batch_size": 10, | |
"type": "basic" | |
}, | |
"model": { | |
"dropout": 0, | |
"seq2vec_encoder": { | |
"embedding_dim": 34, | |
"ngram_filter_sizes": [ | |
1, | |
2, | |
3, | |
4, | |
5 | |
], | |
"num_filters": 30, | |
"output_dim": 17, | |
"type": "cnn" | |
}, | |
"text_field_embedder": { | |
"token_embedders": { | |
"tokens": { | |
"embedding_dim": 34 | |
} | |
} | |
}, | |
"type": "basic_classifier" | |
}, | |
"numpy_seed": 42, | |
"pytorch_seed": 42, | |
"random_seed": 42, | |
"train_data_path": "https://s3-us-west-2.amazonaws.com/allennlp/datasets/imdb/dev.jsonl", | |
"trainer": { | |
"cuda_device": 0, | |
"num_epochs": 5, | |
"num_serialized_models_to_keep": 1, | |
"optimizer": { | |
"lr": 0.1, | |
"type": "adam" | |
}, | |
"patience": 2, | |
"validation_metric": "+accuracy" | |
}, | |
"validation_data_path": "https://s3-us-west-2.amazonaws.com/allennlp/datasets/imdb/test.jsonl" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment