python – TensorFlow:SKCompat折旧警告

python – TensorFlow:SKCompat折旧警告,第1张

概述注意:我在这里的第一个问题.原谅缺乏细节或信息.如果需要,非常乐意澄清. 我在Mac上运行TensorFlow 1.0.0并且在使用learn.Estimator类时我一直收到此警告 WARNING:tensorflow:From :25: calling fit (from tensorflow.contrib.learn.python.learn.estimators.estimator) w 注意:我在这里的第一个问题.原谅缺乏细节或信息.如果需要,非常乐意澄清.

我在Mac上运行TensorFlow 1.0.0并且在使用learn.Estimator类时我一直收到此警告

WARNING:tensorflow:From :25: calling
fit (from tensorflow.contrib.learn.python.learn.estimators.estimator)
with y is deprecated and will be removed after 2016-12-01.
Instructions for updating: Estimator is decoupled from Scikit Learn
interface by moving into separate class SKCompat. Arguments x,y and
batch_size are only available in the SKCompat class,Estimator will
only accept input_fn. Example conversion: est = Estimator(…) ->
est = SKCompat(Estimator(…))

我已经尝试过这个课程了,关于它的信息是零.完整代码发布在这里

https://github.com/austinmwhaley/DeepFarm/blob/master/prototype_1.ipynb

如果有任何其他人需要的信息,请告诉我

解决方法 您可以从tensorflow.contrib.learn.python导入SKCompat:
from tensorflow.contrib.learn.python import SKCompat

然后使用SKCompat()包装您的估算器,例如像这样:

classifIEr = SKCompat(tf.contrib.learn.linearClassifIEr(args))
总结

以上是内存溢出为你收集整理的python – TensorFlow:SKCompat折旧警告全部内容,希望文章能够帮你解决python – TensorFlow:SKCompat折旧警告所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1207106.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-04
下一篇 2022-06-04

发表评论

登录后才能评论

评论列表(0条)

保存