【发布时间】:2018-09-08 02:53:32
【问题描述】:
我正在 anaconda3 上训练数据,以使用 rasa.com 和 spacy + sklearn 制作聊天机器人。虽然在训练中甚至出现这样的情况,但我知道这不会导致错误,但这对我来说相当令人不安。为什么会出现这个样子?以及如何消除?
C:\Program Files\Anaconda3\lib\site-packages\sklearn\preprocessing\label.py:151:
DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.
【问题讨论】:
-
请发布导致此问题的代码。它表示您正在对一个空数组进行操作。
-
@Stev 导致警告的不是他的代码,而是在 sklearn 中发生的
标签: python nlp anaconda chatbot rasa-nlu