|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from __future__ import absolute_import |
|
|
from __future__ import division |
|
|
from __future__ import print_function |
|
|
|
|
|
|
|
|
def print_config(config): |
|
|
print("-" * 10, "Configuration Specs", "-" * 10) |
|
|
for item in dir(config): |
|
|
if list(item)[0] != "_": |
|
|
print(item, getattr(config, item)) |
|
|
print("-" * 29) |
|
|
|
|
|
|
|
|
class AlienConfig2(object): |
|
|
"""Base 8 740 shared embeddings, gets 64.0 (mean: std: min: max: ).""" |
|
|
init_scale = 0.05 |
|
|
learning_rate = 1.0 |
|
|
max_grad_norm = 10 |
|
|
num_layers = 2 |
|
|
num_steps = 25 |
|
|
hidden_size = 740 |
|
|
max_epoch = 70 |
|
|
max_max_epoch = 250 |
|
|
keep_prob = [1 - 0.15, 1 - 0.45] |
|
|
lr_decay = 0.95 |
|
|
batch_size = 20 |
|
|
vocab_size = 10000 |
|
|
weight_decay = 1e-4 |
|
|
share_embeddings = True |
|
|
cell = "alien" |
|
|
dropout_type = "variational" |
|
|
|