Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
Add a normalized value_cost
Browse files Browse the repository at this point in the history
  • Loading branch information
sethtroisi committed Apr 1, 2019
1 parent 306d1cf commit c93f1a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dual_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,13 @@ def eval_metrics_host_call_fn(policy_output, value_output, pi_tensor, policy_cos
policy_output,
tf.one_hot(policy_target_top_1, tf.shape(policy_output)[1]))

value_cost_normalized = value_cost / params['value_cost_weight']

with tf.variable_scope("metrics"):
metric_ops = {
'policy_cost': tf.metrics.mean(policy_cost),
'value_cost': tf.metrics.mean(value_cost),
'value_cost_normalized': tf.metrics.mean(value_cost_normalized),
'l2_cost': tf.metrics.mean(l2_cost),
'policy_entropy': tf.metrics.mean(policy_entropy),
'combined_cost': tf.metrics.mean(combined_cost),
Expand Down

0 comments on commit c93f1a7

Please sign in to comment.