Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
190 views
in Technique[技术] by (71.8m points)

Defining logistic regression equation in python

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.

enter image description here

# 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
question from:https://stackoverflow.com/questions/65916440/defining-logistic-regression-equation-in-python

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...