asullivan42 / COVID-19-vs-Pneumonia-lung-segmentation

Springboard Group Project
GNU General Public License v3.0
0 stars 1 forks source link

tensorflow version keras #1

Open lorihe opened 1 year ago

lorihe commented 1 year ago

Cell 12 from keras.optimizers import Adam needs to be: from tensorflow.keras.optimizers import Adam

There are two versions of keras now: keras and tensorflow.keras

asullivan42 commented 1 year ago

Good to know. I'm assuming that tensorflow.keras is the better version. Does that mean that everything called as keras.(something) should be changed to tensorflow.keras?

asullivan42 commented 1 year ago

Looks like maybe I should change it all to tf.keras

https://pyimagesearch.com/2019/10/21/keras-vs-tf-keras-whats-the-difference-in-tensorflow-2-0/