【发布时间】:2019-10-29 15:06:15
【问题描述】:
我是 tf.estimator.BoostedTreesRegressor 的新手。这是我用来构建模型的示例代码。
n_batches = 20
est = tf.estimator.BoostedTreesRegressor(feature_columns,
n_batches_per_layer=n_batches , learning_rate=0.001, n_trees=700,
max_depth=13,
model_dir = "model", tf.config.threading.set_intra_op_parallelism_threads(60))
est.train(train_input_fn, max_steps=10)
我想保存模型..然后加载模型来预测销售额。
能否请您帮我解决如何在 TensorFlow 版本 2 中执行此操作...因为我找不到...
谢谢
【问题讨论】:
-
检查此处提供的解决方案stackoverflow.com/questions/58959582/…
标签: tensorflow tensorflow-estimator