标签: numpy scikit-learn
在sklearn的代码中(在logistic.py中)
p=np.exp(p,p)
什么是np.exp(p,p)?
答案 0 :(得分:0)
它是val myEditText = EditText(this) linear.addView(myEditText) 的就地版本。为了避免不得不分配新的数组。
val myEditText = EditText(this) linear.addView(myEditText)
np.exp(p)
语法:p = np.array([1., 2., 3.]) np.exp(p, p) print(p) # array([ 2.71828183, 7.3890561 , 20.08553692])
p = np.array([1., 2., 3.]) np.exp(p, p) print(p) # array([ 2.71828183, 7.3890561 , 20.08553692])