def sigmoid(inp): return 1.0/(1 + np.exp(-inp)). 發現用手動生成matrix數據帶入這個函數也沒問題,然後通過查找numpy.mat函數發現.
確定! 回上一頁