We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11dff45 commit 34837ceCopy full SHA for 34837ce
imblearn/keras/_generator.py
@@ -33,7 +33,10 @@ def import_from_tensforflow():
33
ParentClassTensorflow, has_keras_tf = import_from_tensforflow()
34
has_keras = has_keras_k or has_keras_tf
35
if has_keras:
36
- ParentClass = ParentClassKeras + ParentClassTensorflow
+ if has_keras_tf:
37
+ ParentClass = ParentClassTensorflow
38
+ else:
39
+ ParentClass = ParentClassKeras
40
else:
41
ParentClass = (object,)
42
return ParentClass, has_keras
0 commit comments