![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
fushunsu
这个作者很懒,什么都没留下…
展开
-
python的moudles文件中__all__作用
__all__ in python package转载 2015-05-29 15:21:57 · 412 阅读 · 0 评论 -
iterator in python
In python, iterator in for loop couldn’t be changed.example:b = range(10)print b##for i in b: i += iprint b##use list comprehensions!!!for i, num in enumerate(b): b[i] = num + 1print b##原创 2015-06-05 17:28:49 · 252 阅读 · 0 评论 -
ridge regression
多元线性回归http://wenku.baidu.com/view/d61ac186bceb19e8b8f6bac8.html http://wenku.baidu.com/view/6bb1c1d1195f312b3169a5b1.html http://wenku.baidu.com/view/502aa5e5524de518964b7dfd.html http://wenku.baidu转载 2015-06-01 22:28:01 · 391 阅读 · 0 评论 -
.T in numpy
import numpy as npX = np.c_[ .5, 1] XT = X.T X array([[ 0.5, 1. ]]) XT array([[ 0.5], [ 1. ]])原创 2015-05-31 20:11:04 · 440 阅读 · 0 评论 -
reshape in numpy
http://stackoverflow.com/questions/6627647/reshaping-a-numpy-array-in-pythonhttp://docs.scipy.org/doc/numpy/reference/generated/numpy.reshape.html原创 2015-05-31 19:55:36 · 850 阅读 · 0 评论 -
Scikit Source Code Reading(2015.05.31)
Today’s JobToday’s job is main about the source reading of plot_color_quantization.py and k_means_.py under scikit-learn-0.15.2\sklearn\cluster in scikit-learn-0.15.2. Gainspairwise_distances_argmin:原创 2015-05-31 19:31:15 · 733 阅读 · 0 评论 -
Lloyd's algorithm and Vorlonoi Diagram
Lloyd’s algorithmhttp://en.wikipedia.org/wiki/Lloyd%27s_algorithmVorlonoi Diagramhttp://blog.csdn.net/andrewhoujun/article/details/38268563 http://mathworld.wolfram.com/VoronoiDiagram.html http://www原创 2015-05-31 19:34:08 · 912 阅读 · 0 评论 -
estimated parameters that ends with underscore in scikit
All the estimated parameters are attributes of the estimator object ending by an underscore: > estimator.estimated_param_原创 2015-05-31 19:57:30 · 238 阅读 · 0 评论 -
ConfigParser
http://blog.csdn.net/cindy9902/article/details/7915743http://blog.sina.com.cn/s/blog_65a8ab5d0101ffqq.html1. 基本的读取配置文件-read(filename) 直接读取ini文件内容-sections() 得到所有的section,并以列表的形式返回-options转载 2015-06-18 15:32:23 · 316 阅读 · 0 评论 -
Gleanings of Python
Gleanings of Python原创 2015-05-29 13:39:13 · 284 阅读 · 0 评论 -
Scikit Source Code Reading(2015.05.29)
Today’s JobToday’s job is main about the source reading of plot_classification.py. QuesionsKD Tree aglorithmBall Tree aglorithmBrute aglorithmLeaf-SizeWhy agl_check = ball_tree?csr format Why dy原创 2015-05-29 14:08:18 · 539 阅读 · 0 评论 -
Fields in python
Quesion DescriptionWhile reading scikit source code, got confused by following codes in line 149, 150 in classification.py under scikit-learn-0.15.2\sklearn\neighbors in scikit-learn-0.15.2. classes_ =原创 2015-05-29 23:35:34 · 709 阅读 · 0 评论 -
Python Date & Time
Python Date & Time转载 2015-06-05 17:48:14 · 357 阅读 · 0 评论