1from keras import backend as K
2
3def root_mean_squared_error(y_true, y_pred):
4 return K.sqrt(K.mean(K.square(y_pred - y_true), axis=-1))
5
6 model.compile(optimizer = "rmsprop", loss = root_mean_squared_error,
7 metrics =["accuracy"])