Commit cf014bd2 authored by 宋柯's avatar 宋柯

模型上线

parent 05d1c6b9
......@@ -247,7 +247,7 @@ def train_dataset_input_fn(train_dataset):
def eval_dataset_input_fn(eval_dataset):
return eval_dataset
train_spec = tf.estimator.TrainSpec(input_fn = lambda: train_dataset_input_fn(train_dataset), hooks = hooks)
train_spec = tf.estimator.TrainSpec(input_fn = lambda: input_fn(DATA_DIR + 'train_samples.csv', 1, True, 2048), hooks = hooks)
serving_feature_spec = tf.feature_column.make_parse_example_spec(
linear_feature_columns + dnn_feature_columns)
......
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