Given the below logistic regression equation how do I define a function in python to implement the below equation. I have some dimension initialization and random data.
# fix a random seed np.random.seed(seed) # initialize dimensions # Random data creation m_lgt = 50 n_lgt = 10 A_lgt = 0.5*np.random.randn(m_lgt, n_lgt) x_lgt = np.random.randn(n_lgt) b_lgt = sampleLGT(x_lgt, A_lgt) lam_lgt = 0.2
1.4m articles
1.4m replys
5 comments
57.0k users