How to create a variable that persists over tf.estimator.train_and_evaluate evaluation steps?
问题 TLDR: How to create a variable that holds the confusion matrix used for computing custom metrics, accumulating the values across all of the evaluation steps? I have implemented custom metrics to use in the tf.estimator.train_and_evaluation pipeline, with a confusion matrix as the crux for them all. My goal is to make this confusion matrix persist over multiple evaluation steps in order to track the learning progress. Using get_variable in the variable scope did not work, since it does not