问题描述
注意:我的第一个问题在这里.请原谅缺少细节或信息.如果需要,我们很乐意澄清.
NOTE: My first question on here. Pardon for lack of details or info. More than happy to clarify if needed.
我在Mac上运行TensorFlow 1.0.0,并且在使用Learn.Estimator类时不断收到此警告
I'm running TensorFlow 1.0.0 on Mac and I keep getting this warning when using the learn.Estimator class
我尝试过查找此类,关于它的信息为零.完整的代码发布在这里
I've tried looking this class up and there is zero information in regards to it. Full code is posted here
https://github.com/austinmwhaley/DeepFarm/blob/master/prototype_1.ipynb
请让我知道是否还有任何其他人需要的信息
Please let me know if there is any other info that anyone needs
推荐答案
您可以从tensorflow.contrib.learn.python导入SKCompat:
You can import SKCompat from tensorflow.contrib.learn.python:
from tensorflow.contrib.learn.python import SKCompat
然后用SKCompat()包装您的估算器,例如像这样:
And then wrap your estimator with SKCompat() e.g. like this:
classifier = SKCompat(tf.contrib.learn.LinearClassifier(args))
这篇关于TensorFlow:SKCompat折旧警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!