Name of a custom fuction in Keras model R

自作多情 提交于 2021-02-17 01:51:40

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!