Skip to content

Commit

Permalink
Putting back metrics but removing from collections
Browse files Browse the repository at this point in the history
  • Loading branch information
escuccim committed Jul 11, 2018
1 parent 812cac3 commit ae28e45
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 41 deletions.
48 changes: 15 additions & 33 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions candidate_3.6.4.01.py
Expand Up @@ -947,17 +947,17 @@
name="image_accuracy",
)

# image_recall, image_rec_op = tf.metrics.recall(labels=image_truth, predictions=image_predictions,
# name="image_recall",
# updates_collections=['metrics_ops'])
# image_precision, image_prec_op = tf.metrics.precision(labels=image_truth, predictions=image_predictions,
# name="image_precision",
# updates_collections=['metrics_ops'])
image_recall, image_rec_op = tf.metrics.recall(labels=image_truth, predictions=image_predictions,
name="image_recall",
updates_collections=['extra_metrics_ops'])
image_precision, image_prec_op = tf.metrics.precision(labels=image_truth, predictions=image_predictions,
name="image_precision",
updates_collections=['extra_metrics_ops'])

tf.summary.scalar('recall_1', recall, collections=["summaries"])
# tf.summary.scalar('recall_per_image', image_recall, collections=["summaries"])
tf.summary.scalar('recall_per_image', image_recall, collections=["extra_summaries"])
tf.summary.scalar('precision_1', precision, collections=["summaries"])
# tf.summary.scalar('precision_per_image', image_precision, collections=["summaries"])
tf.summary.scalar('precision_per_image', image_precision, collections=["extra_summaries"])
tf.summary.scalar('f1_score', f1_score, collections=["summaries"])

# Create summary hooks
Expand Down

0 comments on commit ae28e45

Please sign in to comment.