forked from isi-nlp/LSTM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparam.h
70 lines (54 loc) · 1.36 KB
/
param.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#pragma once
#include <string>
namespace nplm
{
struct param
{
std::string train_file;
std::string validation_file;
std::string test_file;
std::string model_file;
std::string unigram_probs_file;
std::string words_file;
std::string input_words_file;
std::string output_words_file;
std::string model_prefix;
std::string input_sent_file;
std::string output_sent_file;
std::string input_validation_sent_file;
std::string output_validation_sent_file;
int ngram_size;
int vocab_size;
int input_vocab_size;
int output_vocab_size;
int num_hidden;
int embedding_dimension;
int input_embedding_dimension;
int output_embedding_dimension;
std::string activation_function;
std::string loss_function;
std::string parameter_update;
int minibatch_size;
int validation_minibatch_size;
int num_epochs;
double learning_rate;
double conditioning_constant;
double decay;
double adagrad_epsilon;
bool init_normal;
double init_range;
double init_forget;
bool norm_clipping;
bool gradient_check;
int num_noise_samples;
bool use_momentum;
double initial_momentum;
double final_momentum;
double L2_reg;
double norm_threshold;
bool normalization;
double normalization_init;
int num_threads;
bool share_embeddings;
};
} // namespace nplm