Skip to content

Commit 34837ce

Browse files
committed
iter
1 parent 11dff45 commit 34837ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

imblearn/keras/_generator.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ def import_from_tensforflow():
3333
ParentClassTensorflow, has_keras_tf = import_from_tensforflow()
3434
has_keras = has_keras_k or has_keras_tf
3535
if has_keras:
36-
ParentClass = ParentClassKeras + ParentClassTensorflow
36+
if has_keras_tf:
37+
ParentClass = ParentClassTensorflow
38+
else:
39+
ParentClass = ParentClassKeras
3740
else:
3841
ParentClass = (object,)
3942
return ParentClass, has_keras

0 commit comments

Comments
 (0)