用TensorFlow自带的AUC计算函数 tf.metrics.auc 时,报错如下:

Attempting to use uninitialized value auc/false_positives

解决方法:

在全局变量初始化之后,加上局部变量初始化:

sess.run(tf.local_variables_initializer())

tensorflow
一个面向所有人的开源机器学习框架

原因:

暂时不清楚


参考点击打开链接

推荐内容
GitHub 加速计划 / te / tensorflow
24
4
下载
一个面向所有人的开源机器学习框架
最近提交(Master分支:2 个月前 )
4f64a3d5 Instead, check for this case in `ResolveUsers` and `ResolveOperand`, by querying whether the `fused_expression_root` is part of the `HloFusionAdaptor`. This prevents us from stepping into nested fusions. PiperOrigin-RevId: 724311958 2 个月前
aa7e952e Fix a bug in handling negative strides, and add a test case that exposes it. We can have negative strides that are not just -1, e.g. with a combining reshape. PiperOrigin-RevId: 724293790 2 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐