I don't understand how the code shown here changes the probs array of [300x3] to a 1 D array correct-logprobs, any explanation will be great

前端 未结 0 1414
梦谈多话
梦谈多话 2021-01-30 05:32
num_examples = X.shape[0]  #num_examples=300

exp_scores = np.exp(scores) #scores = np.dot(X, W) + b

probs = exp_scores / np.sum(exp_scores, axis=1, keepdims=True)


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