Skip to content

Instantly share code, notes, and snippets.

@himkt
Last active May 19, 2020 13:51
Show Gist options
  • Save himkt/f790731d8875de8956f23b6bce563ae9 to your computer and use it in GitHub Desktop.
Save himkt/f790731d8875de8956f23b6bce563ae9 to your computer and use it in GitHub Desktop.
{
"data_loader": {
"batch_size": 64,
"shuffle": true
},
"dataset_reader": {
"lazy": false,
"token_indexers": {
"tokens": {
"lowercase_tokens": true,
"type": "single_id"
}
},
"tokenizer": {
"type": "spacy"
},
"type": "text_classification_json"
},
"datasets_for_vocab_creation": [
"train"
],
"model": {
"dropout": 0.1460753126702918,
"seq2vec_encoder": {
"embedding_dim": 229,
"ngram_filter_sizes": [
2,
3,
4,
5,
6
],
"num_filters": 154,
"output_dim": 81,
"type": "cnn"
},
"text_field_embedder": {
"token_embedders": {
"tokens": {
"embedding_dim": 229
}
}
},
"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/train.jsonl",
"trainer": {
"cuda_device": 0,
"num_epochs": 15,
"optimizer": {
"lr": 0.33856945180337067,
"type": "sgd"
},
"validation_metric": "+accuracy"
},
"validation_data_path": "https://s3-us-west-2.amazonaws.com/allennlp/datasets/imdb/dev.jsonl"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment