![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
练习
AetherTL
这个作者很懒,什么都没留下…
展开
-
2020-10-28 LogisticRegression Exercise
## ## Call:## glm(formula = OnlineOrderFlag ~ Bikes + Clothing + Components + ## Accessories, family = binomial(link = "logit"), data = data)## ## Deviance Residuals: ## Min 1Q Median 3Q Max ## -3.5203 0.0639 0.0736原创 2020-10-28 23:11:17 · 316 阅读 · 0 评论 -
glm() and lm()
In R, using lm() is a special case of glm().lm() fits models following the form Y = Xb + e, where e is Normal (0 , s^2).glm() fits models following the form f(Y) = Xb + e. However, in glm both the function f(Y) (the ‘link function’) and the distribution转载 2020-10-23 15:39:00 · 2101 阅读 · 0 评论 -
Exercise for loop
# 1. write a loop to print the following# 10# 20# 30# 40# 50# 60for i in range(1, 7): print(i * 10)# 2. write a loop to print the following.# [Tips: you need to use google to search]## 2 4 6 8 10a = ""for i in range(1, 6): a += st原创 2020-10-03 10:43:17 · 224 阅读 · 0 评论