【发布时间】:2020-03-28 17:31:55
【问题描述】:
我正在尝试使用 PyTorch 和 Keras 创建一个代码,该代码使用 BERT 算法来检测假新闻,但我得到一个错误告诉我:
can't convert np.ndarray of type numpy.bool_.
The only supported types are: double, float, float16, int64, int32, and uint8.
请访问我的Google Codelab 上的代码。错误可以在最后一个单元格中看到。
运行它的唯一要求是为训练过程下载一个CSV 文件。
【问题讨论】:
标签: machine-learning keras deep-learning artificial-intelligence pytorch