Complete the code to save the TensorFlow model with a version number.
model.save('model_v[1]')
Complete the code to load a specific version of the saved TensorFlow model.
loaded_model = tf.keras.models.load_model('model_v[1]')
Fix the error in the code to save the model with versioning correctly.
model.save('model_v[1]')
Fill both blanks to create a dictionary that maps model versions to their file paths.
model_paths = {'v1': 'model_v[1]', 'v2': 'model_v[2]'}Fill all three blanks to load a model, make a prediction, and print the result.
model = tf.keras.models.load_model('model_v[1]') prediction = model.predict([2]) print('Prediction:', [3])
