Skip to content

Commit

Permalink
increase l2 to 1e-4
Browse files Browse the repository at this point in the history
  • Loading branch information
bupticybee committed Oct 12, 2018
1 parent 8163b47 commit d89d908
Show file tree
Hide file tree
Showing 4 changed files with 309 additions and 214 deletions.
212 changes: 110 additions & 102 deletions ipynbs/elo_graph.ipynb

Large diffs are not rendered by default.

206 changes: 110 additions & 96 deletions ipynbs/see_gameplay.ipynb

Large diffs are not rendered by default.

103 changes: 88 additions & 15 deletions ipynbs/vs_human.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion net/resnet.py
Expand Up @@ -180,7 +180,7 @@ def get_model(MODEL_NAME,labels,GPU_CORE = [0],BATCH_SIZE = 512,NUM_RES_LAYERS =
labels=score[ind * (BATCH_SIZE // len(GPU_CORE)):(ind + 1) * (BATCH_SIZE // len(GPU_CORE))],
predictions=value_head)
value_loss = tf.reduce_mean(value_loss)
regularizer = tf.contrib.layers.l2_regularizer(scale=1e-6)
regularizer = tf.contrib.layers.l2_regularizer(scale=1e-4)
regular_variables = tf.trainable_variables()
l2_loss = tf.contrib.layers.apply_regularization(regularizer, regular_variables)
multitarget_loss = value_loss + policy_loss + l2_loss
Expand Down

0 comments on commit d89d908

Please sign in to comment.