这个错误到底是什么,我该如何解决?
运行最新版本的 TensorFlow 和 Keras
TypeError Traceback (most recent call last)
<ipython-input-2-ffa5ea4a7bf5> in <module>
26
27 import imblearn
---> 28 from imblearn.keras import balanced_batch_generator as bbg
29 from imblearn.over_sampling import RandomOverSampler as ros
30 import matplotlib.pyplot as plt
~\anaconda3\lib\site-packages\imblearn\keras\__init__.py in <module>
2 in keras."""
3
----> 4 from ._generator import BalancedBatchGenerator
5 from ._generator import balanced_batch_generator
6
~\anaconda3\lib\site-packages\imblearn\keras\_generator.py in <module>
55
56
---> 57 class BalancedBatchGenerator(*ParentClass):
58 """Create balanced batches when training a keras model.
59
TypeError: duplicate base class Sequence