【问题标题】:How do I calculate median with tensorflow 2.0?如何使用 tensorflow 2.0 计算中位数?
【发布时间】:2019-04-28 19:50:39
【问题描述】:

人们通常建议使用 tf.contrib.distributions.percentile,但现在它给出了一个例外:

The TensorFlow contrib module will not be included in TensorFlow 2.0.

如何在不降级 TF 版本的情况下计算中位数?

【问题讨论】:

    标签: python tensorflow tensorflow2.0


    【解决方案1】:

    它现在位于单独的模块 TensorFlow Probability (TFP) 中,名为 tfp.stats.percentile。 compat 模块中似乎也没有它。

    https://www.tensorflow.org/probability

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-16
      • 2021-09-18
      • 1970-01-01
      • 1970-01-01
      • 2016-06-14
      • 2020-03-16
      相关资源
      最近更新 更多