问题
I have created a custom loss function:
RMSE= function(y_true,y_pred){
k_sqrt(k_mean(k_square(y_pred-y_true)))
}
And it works fine but when I run:
model$loss
Get:
<function make_python_function.<locals>.python_function at 0x0000026A51F5c80>
Instead of the name of the loss function, like when I used for example 'mse'
model$loss
"mse"
What should I add to my custom function to be able to get the name?
来源:https://stackoverflow.com/questions/60599127/name-of-a-custom-fuction-in-keras-model-r