Open marcindulak opened 3 years ago
the notebooks are tested with the py36 kernel on Compute Instance. the team's recommendation for now is to use that kernel - apologies for the confusion here
I'm using py38 due to https://github.com/Azure/MachineLearningNotebooks/issues/1421
Hi @marcindulak, can you try this work around by modifying scripts/train.py file in how-to-use-azureml/ml-frameworks/using-mlflow/train-and-deploy-keras-auto-logging.
Modify these lines,
import keras
-> from tensorflow import keras
from keras.models import Sequential
-> from tensorflow.keras.models import Sequential
from keras.layers import Dense
-> from tensorflow.keras.layers import Dense
from keras.optimizers import RMSprop
-> from tensorflow.keras.optimizers import RMSprop
From here Keras releases, Keras 2.3.0 and higher versions are multi-backend Keras. It is recommended switching their Keras code to tf.keras in TensorFlow 2.0.
I'm running https://github.com/Azure/MachineLearningNotebooks/tree/824d844cd7386d95edfa6ecec1642e799ca79dd7/how-to-use-azureml/ml-frameworks/using-mlflow/train-and-deploy-keras-auto-logging on a default compute instance with "Python 3.8 AzureML" kernel. I'm using the 3.8 kernel due to https://github.com/Azure/MachineLearningNotebooks/issues/1421
The
run = train.driver()
cell fails with:Further down the notebook assumes the existence of "gpu-cluster" however points to a inexistent "configuration.ipynb". I think it would be better to keep the notebooks self-contained.
The notebook says "If you are using a Notebook VM, you are all set" but this is not the case here. Are there plans for having the notebooks from https://github.com/Azure/MachineLearningNotebooks automatically tested on the Azure compute instance rollouts, in order to improve the quality of the notebooks?