cswork / OA打开练习工作台

MeshyOA #7

Softmax Implementation (Python + numpy)

估计简单评测数据准备中,可先阅读题面

考点(AI 标注)位运算原地数组

Please implement a softmax function with numpy. You are not allowed to call any existing functions such as scipy.special.softmax.

Note: don't write a for loop. Hint: a^b / a^c = a^(b-k) / a^(c-k).