随笔分类 -  Python

Max(Priority) Heap in Java and Python
摘要:## Javapublic class MaxHeap> { private List list; private int len; private List unmodifiedList; public MaxHeap(){ list = new ArrayL... 阅读全文

posted @ 2014-10-27 02:15 Alain_cs 阅读(394) 评论(0) 推荐(0)

Shallow & Deep Copy
摘要:## Shallow Copy### OperaitonsIn python, an operation of shallow copy is as follows:a = [...]b = a[:]b = list(a)###########a = {...}b = dict(a)########... 阅读全文

posted @ 2014-10-10 13:16 Alain_cs 阅读(172) 评论(0) 推荐(0)

BaseEstimator in Scikit-Learn
摘要:## How it looks likeVery simaple, just looks like as follows: class BaseEstimator(object): @classmethod def _get_param_names(cls): def ge... 阅读全文

posted @ 2014-10-09 14:01 Alain_cs 阅读(1143) 评论(0) 推荐(0)

导航