Google colaboratory 如何使用bert+;Colab中的textcnn模型
我使用谷歌colab,点击此链接查看我的代码 我的问题: 当我处理Google colaboratory 如何使用bert+;Colab中的textcnn模型,google-colaboratory,Google Colaboratory,我使用谷歌colab,点击此链接查看我的代码 我的问题: 当我处理model.fit_generator时,我遇到了一个问题: KeyError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
model.fit_generator
时,我遇到了一个问题:
KeyError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
2897 try:
-> 2898 return self._engine.get_loc(casted_key)
2899 except KeyError as err:
pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc()
pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc()
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
KeyError: 3840
The above exception was the direct cause of the following exception:
KeyError Traceback (most recent call last)
15 frames
/usr/local/lib/python3.7/dist-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance)
2898 return self._engine.get_loc(casted_key)
2899 except KeyError as err:
-> 2900 raise KeyError(key) from err
2901
2902 if tolerance is not None:
KeyError: 3840
这是我第一次提出我的问题,希望大家能理解我的问题。请在这里发布你的代码,你的链接无法访问