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