上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页
摘要: 今天使用 numpy.true_divide 发现个有趣的事情, 下面的代码18、19行如果去掉,就会报下面的 RuntimeWarning RuntimeWarning 加上对除数是否为0的判断就可以了,是不是说明numpy有一个自动检查的过程? 阅读全文
posted @ 2018-09-06 18:14 马贡多在下雨 阅读(255) 评论(0) 推荐(0)
摘要: 折线图示例 画布和子图 柱状图 饼状图 Matplotlib画正弦余弦曲线 K线图 1 pip3.6 install https://github.com/matplotlib/mpl_finance/archive/master.zip 2 3 from mpl_finance import ca 阅读全文
posted @ 2018-08-15 18:59 马贡多在下雨 阅读(510) 评论(0) 推荐(0)
摘要: twitter的AnomalyDetection 官网效果图如下: 尝试写了下面这个R程序: get_specify_df <- function(start_ts,stop_ts,category='totaluploadspeed'){ library(httr) library(rlist) 阅读全文
posted @ 2018-08-15 11:02 马贡多在下雨 阅读(225) 评论(0) 推荐(0)
摘要: #!/bin/bash tput civis while [ 1 ] do tput clear # tput cup 10 20 info=$(date "+%Y-%m-%d %H:%M:%S %A") LEN=`echo $info | wc -c` COLS=`tput cols` let HOLD_COL=$COLS-$LEN ... 阅读全文
posted @ 2018-08-14 11:10 马贡多在下雨 阅读(200) 评论(0) 推荐(0)
摘要: numpy基础 定义array array基本运算 卷积运算 random常用操作 array索引 迭代array 合并array 分割array Numpy.copy() Numpy其他 numpy参考:http://pda.readthedocs.io/en/latest/chp4.html P 阅读全文
posted @ 2018-08-12 13:29 马贡多在下雨 阅读(942) 评论(0) 推荐(0)
摘要: 简单移动平均(sma) def moving_average(f_t): if type(f_t) is not np.ndarray: raise TypeError\ ('Expected one dimensional numpy array.') if f_t.shape[1] != 1: 阅读全文
posted @ 2018-08-05 21:36 马贡多在下雨 阅读(911) 评论(0) 推荐(0)
摘要: Z-score Modified Z-score IQR(interquartile range) Conclusion 摘自:http://colingorrie.github.io/outlier-detection.html 阅读全文
posted @ 2018-08-01 21:23 马贡多在下雨 阅读(378) 评论(0) 推荐(0)
摘要: 简单的生产者消费者模型 yield表达式示例 阅读全文
posted @ 2018-07-25 10:34 马贡多在下雨 阅读(279) 评论(0) 推荐(0)
摘要: 404页面,倒计时自动跳转指定页面 403页面文字水平垂直居中 阅读全文
posted @ 2018-07-24 11:51 马贡多在下雨 阅读(2808) 评论(0) 推荐(0)
摘要: Question 有如下一个字典,内嵌多维列表: 请把所有以 'hit' 开头的key所对应的list按顺序求和,示例结果:{ 'hit':[[9, 39, 69], [12, 42, 72]] } Answer 阅读全文
posted @ 2018-07-23 11:18 马贡多在下雨 阅读(330) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页