Skip to content

Commit

Permalink
Modified: test for optional keras, added installation of tensorflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Caparrini committed Mar 3, 2024
1 parent 5aab2c9 commit dc0adbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mloptimizer/test/test_alg_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def test_keras_classifier():
except ImportError as e:
print(f"{e}: Keras is not installed. It will be installed to test.")
subprocess.check_call([sys.executable, "-m", "pip", "install", "keras==2.12.0"])
subprocess.check_call([sys.executable, "-m", "pip", "install", "tensorflow==2.12.1"])
from keras.wrappers.scikit_learn import KerasClassifier

uat = KerasClassifier(build_fn=generate_model, epochs=10,
Expand Down

0 comments on commit dc0adbf

Please sign in to comment.