How to define a keras custom loss function in simple mathematical operation
https://blog.youkuaiyun.com/xiewenbo/article/details/89255424
I define a custom functionmy_sigmoidas following:
import math
def my_sigmoid(x):
a = 1/ ( 1+math.exp( -(x-300)/30 ) )
return a
A...
转载
2019-04-12 19:55:44 ·
468 阅读 ·
0 评论