We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49442f5 commit 11dff45Copy full SHA for 11dff45
imblearn/keras/_generator.py
@@ -17,9 +17,6 @@ def import_from_keras():
17
try:
18
import keras # noqa
19
20
- if hasattr(keras.utils, "Sequence"):
21
- # Older versions of Keras provide the Sequence class directly in utils
22
- return (keras.utils.Sequence,), True
23
return (keras.utils.data_utils.Sequence,), True
24
except ImportError:
25
return tuple(), False
0 commit comments