TensorFlow
[Advanced] Upgrade a StackOverflow answer using tf.keras to TF 2.0
Many StackOverflow questions online are answered using stand-alone Keras with TensorFlow 1.x, rather than tf.keras with TF 2.x. For this challenge, you are free to select any existing question that has been answered with TensorFlow 1.x + stand-alone Keras, and modify that answer to include TensorFlow 2.x and tf.keras.
Most of the changes should be straightforward - tf.keras and stand-alone Keras have an almost-identical API surface.
To receive credit, you will need to submit a link to the updated answer to a StackOverflow question. You can find out more information about converting models from TensorFlow 1.x to TF 2.x here:
Task tags
Students who completed this task
Tom, jimmy_page, rpal, As1234, Rachin, arpand, jedlimlx, William6495, generationxcode, malder8, msteknoadam, Qwerty71, Vanshs, anigasan, Rick Wierenga, boron, prudentWish, abhaykashyap03, WZHANG, Rishit Dagli, Ja-sniff/Javismb, RichieX