使用科恩的kappa与tensorflow和keras

2024-09-27 21:27:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我拼命尝试使用科恩卡帕的指标作为损失函数或评价指标在我的keras神经网络。我在网上尝试过许多不同的it实现,但似乎都没有得到维护。特别是因为tf.contrib公司tensorflow 2.0中不再存在。任何帮助我在正确的方向上的工作执行将不胜感激!你知道吗

当使用tf加载项类时,可以在这里找到https://www.tensorflow.org/addons/api_docs/python/tfa/metrics/cohens_kappa。你知道吗

我一直得到以下错误,不知道我将如何去调试这个。你知道吗

ValueError: Number of samples in y_true and y_pred are different


Tags: 函数httpstftensorflowwww公司it神经网络

热门问题