![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
Arnold2017
这个作者很懒,什么都没留下…
展开
-
Datacamp-python-Dictionaries
1.Motivation for dictionaries--list中index()的应用,即返回索引,zero-based# Definition of countries and capitalcountries = ['spain', 'france', 'germany', 'norway']capitals = ['madrid', 'paris', 'berl原创 2017-07-15 23:06:24 · 836 阅读 · 0 评论 -
sklearn GridSearchCV
GridSearchCV 用于系统地遍历多种参数组合,通过交叉验证确定最佳效果参数。它的好处是,只需增加几行代码,就能遍历多种组合。下面是来自 sklearn 文档 的一个示例:parameters = {'kernel':('linear', 'rbf'), 'C':[1, 10]}svr = svm.SVC()clf = grid_search.GridSearchCV(s转载 2017-07-24 23:50:00 · 1314 阅读 · 0 评论 -
课程5:神经网络迷你项目-练习6 感知机更新规则
# ----------## In this exercise, you will update the perceptron class so that it can update# its weights.## Finish writing the update() method so that it updates the weights according# to原创 2017-08-18 10:41:44 · 617 阅读 · 0 评论