楼主: mipbuilder
5642 35

Mastering Python for Data Science [推广有奖]

31
sbzx 发表于 2015-11-8 15:43:04
感谢楼主分享!

32
vegebeef 发表于 2015-11-12 06:13:02
非常感谢!

33
waterhorse 发表于 2015-12-13 17:12:01
XIE XIE, PYTHOND IS GOOD FOR DATA>

34
Lisrelchen 发表于 2016-8-19 00:17:30
  1. >>># Create linear regression object
  2. >>> lm = linear_model.LinearRegression()
  3. >>># Train the model using the training sets
  4. >>> lm.fit(sl_data.Height[:,np.newaxis], sl_data.Weight)
  5. >>> print 'Intercept is ' + str(lm.intercept_) + '\n'
  6. Intercept is -99.2772096063
  7. >>> print 'Coefficient value of the height is ' + str(lm.coef_) + '\n'
  8. Coefficient value of the height is [ 1.00092142]
  9. >>> print pd.DataFrame(zip(sl_data.columns,lm.coef_),
  10. columns = ['features', 'estimatedCoefficients'])
复制代码

35
pan_shirley 发表于 2016-8-31 23:55:36
好书!

36
sacromento 学生认证  发表于 2017-7-1 07:46:13
谢谢分享啊!

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-9 13:06