def evaluate(dataset):
tf.reset_default_graph()
config = tf.ConfigProto(allow_soft_placement=True)
with tf.Session(config=config) as s:
model, _ = model_fn(s, restore_only=True)
df = ev(s, model, dataset)
print((df['predictions'] == df['labels']).mean())
import IPython
IPython.embed()
评论列表
文章目录