Skip to content

Instantly share code, notes, and snippets.

@zhpmatrix
Last active April 16, 2016 11:05
Show Gist options
  • Save zhpmatrix/72d28a5cbd8c51da8b2246ee61bbe2e4 to your computer and use it in GitHub Desktop.
Save zhpmatrix/72d28a5cbd8c51da8b2246ee61bbe2e4 to your computer and use it in GitHub Desktop.

下述TODO摘自知友(匿名)


*1.*比如ROC曲线的计算,自己写的ROC脚本就是很慢,但是sklearn里就是特别的快。对比之后发现,sklearn会非常善用numpy的一些特性,而不是用list去遍历。

*2.*在sklearn里,是直接使用c写了kdtree来实现KNN(Calling c/c++ from python ?)

*3.*虽然不少常用算法,比如decision tree用了cython,svm直接wrap了libsvm,但后期的代码基本原则都是优先Python实现,只有Python实在太慢的时候才会考虑用cython加速。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment