Error: bad operand type for unary -: 'range' in Sigmoid function code

前端 未结 0 558
清歌不尽
清歌不尽 2020-12-22 06:42

I am practicing codes for Sigmoid and Softmax with input range, x = range(-10,20) as,

def softmax(x):
    softmax_score = np.exp(x) / float(sum(np.exp(x)))
re         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题