Commit 3a0574b3 authored by 宋柯's avatar 宋柯

模型上线

parent feda168b
...@@ -260,7 +260,7 @@ eval_spec = tf.estimator.EvalSpec(input_fn = lambda: input_fn(DATA_DIR + 'eval_s ...@@ -260,7 +260,7 @@ eval_spec = tf.estimator.EvalSpec(input_fn = lambda: input_fn(DATA_DIR + 'eval_s
# wideAndDeepModel = tf.contrib.estimator.add_metrics(wideAndDeepModel, my_auc) # wideAndDeepModel = tf.contrib.estimator.add_metrics(wideAndDeepModel, my_auc)
# tf.estimator.train_and_evaluate(wideAndDeepModel, train_spec, eval_spec) tf.estimator.train_and_evaluate(wideAndDeepModel, train_spec, eval_spec)
wideAndDeepModel.evaluate(lambda: input_fn(DATA_DIR + 'eval_samples.csv', 1, False, 2 ** 15)) wideAndDeepModel.evaluate(lambda: input_fn(DATA_DIR + 'eval_samples.csv', 1, False, 2 ** 15))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment