python - 使用 TensorFlowEstimator 进行增量训练

标签 python python-3.x machine-learning tensorflow

我正在使用 tensorflow 作为我的机器学习模型。

from tensorflow.contrib import learn
regressor = learn.TensorFlowEstimator()

reference

如何利用模型进行增量学习?我对其构造函数中的 continue_training 参数感到困惑。它说你可以用新数据一次又一次地调用拟合。同时它提供了partial_fit()。请帮我理解一下?

最佳答案

您可以将 fit() 与 continue_training 结合使用; partial_fit 最终将被弃用。

关于python - 使用 TensorFlowEstimator 进行增量训练,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39947322/

相关文章:

Python:如果登录不起作用,单元测试用例不会显示错误

python - 将 __builtins__ 恢复为默认值

python - Keras的predict()返回比evaluate()更好的准确度

python - 散点图,其中每个点颜色是 K 种颜色的不同混合

python - 将 SQL 子查询转换为 Peewee ORM

Python 非贪婪正则表达式

python - 绘制图像的傅里叶变换时出现问题。 "ValueError: x and y can be no greater than 2-D, but have shapes (2592,) and (2592, 1, 3)"

python - 扁平优于嵌套 : how to deal with deeply nested dictionaries?

python - 使用 keras 的卷积网络中的自定义过滤器

python - 在 SciPy 中搜索函数 `LinearNDInterpolator` 的源代码