java 科学计算库

摘要: stackoverflow 上的讨论, 其中不乏lib的作者...http://stackoverflow.com/questions/529457/performance-of-java-matrix-math-libraries粗浅的总结如下:1), jblas 就很好.. 基本能达到原生bla... 阅读全文
posted @ 2014-04-21 11:05 foreveryl 阅读(2103) 评论(0) 推荐(0) 编辑

scala 101

摘要: * scala 安装:下载可以执行的文件. 注意版本. spark 0.8.0 对应的scala 为2.9.3* scala 编译:和java 很像:1, 直接编译脚本:scalac HelloWorld.scalascala -classpath . HelloWorld2, sbt 打包编译. ... 阅读全文
posted @ 2014-04-14 16:00 foreveryl 阅读(415) 评论(0) 推荐(0) 编辑

tmp1

摘要: program1:Line # Mem usage Increment Line Contents================================================ 20 17.664 MiB -0.641 MiB @profile 21 def test1(g): 22 g1 = func() 23 19.070 MiB 1.406 MiB g = map(lambda x, y: x ... 阅读全文
posted @ 2014-04-11 18:08 foreveryl 阅读(163) 评论(0) 推荐(0) 编辑

Learn Python More

摘要: 0, 看了一个python项目开源源码, 才知道现在这点python知识实在是弱爆了.. 尼玛就像学了2500个常用汉字, 然后要去理解"楚辞"..代码如下, 解释一点一点从网上查, 随后: 1 ############################################################################### 2 class BaseEstimator(object): 3 """Base class for all estimators in scikit-learn 4 5 Notes 6 --- 阅读全文
posted @ 2014-03-21 18:59 foreveryl 阅读(636) 评论(0) 推荐(0) 编辑

[ZZ] python 语言技巧

摘要: http://sahandsaba.com/thirty-python-language-features-and-tricks-you-may-not-know.html 感谢原作者30 Python Language Features and Tricks You May Not Know AboutPosted onMar 05, 2014, last modified onMar 16, 2014BySahand Saba1.1Unpacking>>> a, b, c = 1, 2, 3>>> a, b, c(1, 2, 3)>>> 阅读全文
posted @ 2014-03-21 17:03 foreveryl 阅读(215) 评论(0) 推荐(0) 编辑

[数据] ZZ 数据分析这点事

摘要: 感谢作者: caoz原文链接:http://hi.baidu.com/ncaoz/item/564975db8fcd6495260ae79e// ----------------------------------------------------------------------------读后感:1, 培养数据感2, 解读数据:作者的建议很中肯:"不炫技,不苛求技术复杂度,最简单的数据,所包含的信息往往是最有价值的,而很多人恰恰这一步都没做好,就总想着弄一堆挖掘算法;数据的价值在于正确的解读,而不是处理算法的复杂度"3, 分析数据:a, 要避免类似"螃蟹听 阅读全文
posted @ 2013-04-16 09:52 foreveryl 阅读(260) 评论(0) 推荐(0) 编辑

python 获取时间代码

摘要: year = int(time.strftime('%Y', time.localtime())) month = int(time.strftime('%m', time.localtime())) day = int(time.strftime('%d', time.localtime())) now = datetime.date(year, month, day) week = now.isocalendar()[1]week = now.isocalendar()[1]得到当前第几周. now.isocalend... 阅读全文
posted @ 2013-01-28 13:30 foreveryl 阅读(294) 评论(0) 推荐(0) 编辑

[ZZ] Big Data 开源工具

摘要: 原文参见: http://techcrunch.com/2012/10/27/big-data-right-now-five-trendy-open-source-technologies/总结的开源工具:1, STORM AND KAFKA2, DRILL AND DREMEL3, R4, GREMLIN AND GIRAPH5, SAP HANA6, HONORABLE MENTION: D3都没有用过, 很土很落后. 阅读全文
posted @ 2013-01-25 10:53 foreveryl 阅读(179) 评论(0) 推荐(0) 编辑

[无关] 胡言乱语3

摘要: 有个同事因病逝世, 留下快要出生的孩子。。。在生命面前, 其他一切真的都是浮云。什么房啊, 车啊, 前途啊, 生活质量啊,别人的羡慕啊, 攀比啊, 欲望啊都是可有可无的东西。逝者已矣, 而生者永痛。健康, 是一种责任。 阅读全文
posted @ 2012-10-09 21:32 foreveryl 阅读(123) 评论(0) 推荐(0) 编辑

[python] ZZ 时间相关

摘要: 常用的时间处理函数.http://blog.163.com/longsu2010@yeah/blog/static/17361234820112235042309/Python获取系统时间2011-03-02 15:50:42|分类:Python|字号订阅取得时间相关的信息的话,要用到python time模块,python time模块里面有很多非常好用的功能,你可以去官方文档了解下,要取的当前时间的话,要取得当前时间的时间戳,时间戳好像是1970年到现在时间相隔的时间。你可以试下下面的方式来取得当前时间的时间戳:import timeprint time.time()输出的结果是:1279 阅读全文
posted @ 2012-09-19 09:54 foreveryl 阅读(205) 评论(0) 推荐(0) 编辑