I am trying to load a Keras model which was trained on an Azure VM (NC promo). But I am getting the following error.
TypeError: Unexpected keyword argumen
In my case I found the best solution is to use h5py to change name of the variable from "learning_rate" -> "lr" as suggested in the previous posts.
import h5py
data_p = f.attrs['training_config']
data_p = data_p.decode().replace("learning_rate","lr").encode()
f.attrs['training_config'] = data_p
f.close()