Posts

Showing posts from November 26, 2018

Grammy Award

Image
For the award recognizing achievement in the Latin music industry, see Latin Grammy Award. For the classical music award presented by Gramophone magazine, see Gramophone Award. Grammy Awards 61st Annual Grammy Awards Awarded for Outstanding achievements in the music industry Country   United States Presented by The Recording Academy First awarded May 4, 1959 ; 59 years ago  ( 1959-05-04 ) (as Gramophone Award) Website grammy.com Television/radio coverage Network NBC (1959–1970) ABC (1971–1972) CBS (1973–present) Most recent Grammy Award winners ← 2015-16 Best in 2016-17 2017-18 →   Award Album of the Year Record of the Year Winner Bruno Mars ( 24K Magic ) Bruno Mars ("24K Magic")   Award Song of the Year Best New Artist Winner Bruno Mars ("That's What I Like") Alessia Cara Previous Record of the Year "Hello" Record of the Year "24K Magic" A Grammy Award (stylized as GRAMMY , originally called Gramophone Award ), or Grammy , is an award p

SessionRunHook returning empty SessionRunValues after run

Image
up vote 1 down vote favorite I'm trying to write a hook that will allow me to compute some global metrics (rather than batch-wise metrics). To prototype, I thought I'd get a simple hook up and running that would capture and remember true positives. It looks like this: class TPHook(tf.train.SessionRunHook): def after_create_session(self, session, coord): print("Starting Hook") tp_name = 'metrics/f1_macro/TP' self.tp = self.args = session.graph.get_operation_by_name(tp_name) print(f"Got Args: self.args") def before_run(self, run_context): print("Starting Before Run") return tf.train.SessionRunArgs(self.args) def after_run(self, run_context, run_values): print("After Run") print(f"Got Values: run_values.results") However, the values returned in the "after_run" part of the hook are always None. I tested this in both the train and evaluation phase. Am I misunderstanding something about how th