您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

python – TensorFlow:SKCompat折旧警告

5b51 2022/1/14 8:22:51 python 字数 1751 阅读 582 来源 www.jb51.cc/python

注意:我在这里的第一个问题.原谅缺乏细节或信息.如果需要,非常乐意澄清. 我在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

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

from tensorflow.contrib.learn.python import SKCompat

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

classifier = SKCompat(tf.contrib.learn.LinearClassifier(args))

总结

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


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶