摘要: Linux中的通配符: 需要注意的是正则表达式与通配符完全是两个东西。wildcard代表的是bash操作接口的一个功能,而正则表达式是一种字符串处理的方法。 例如,'?',在通配符中表示一个字符,在RE中表示0或1个字符。 '*',在通配符中表示0或多个字符,在RE中通常以组合形态出现;表示0或多 阅读全文
posted @ 2019-03-17 13:48 羊小羚 阅读(893) 评论(0) 推荐(0) 编辑
摘要: 查看一个文件有多少行、多少字、多少字节 $ wc [-lwm] 选项与参数: -l :仅列出行; -w :仅列出多少字(英文单字); -m :多少字符; 阅读全文
posted @ 2019-03-17 13:33 羊小羚 阅读(151) 评论(1) 推荐(0) 编辑
摘要: 主要用于将同一行中的数据进行分割,按列取数据。但是,在处理多空格相连的数据时,不如使用awk. $ cut -d'分隔字符' -f fields <==用于有特定分隔字符 $ cut -c 字符区间 <==用于排列整齐的讯息 阅读全文
posted @ 2019-03-17 12:28 羊小羚 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 由于/etc/profile与~./bash_profile都是在取得login shell时才会读取的配置文件,所以,如果想让修改后的配置生效,通常需要重启机器。source命令可以让配置文件在机器不重启的情况下重新读取配置。 source configfile 或 . configfile 例外 阅读全文
posted @ 2019-03-17 11:27 羊小羚 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 在mnist上测试卷积网络时,显存不够导致下面的报错: ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[10000,32,28,28] and type float on 阅读全文
posted @ 2019-03-03 12:47 羊小羚 阅读(487) 评论(0) 推荐(0) 编辑
摘要: SVM is capable of performing linear or nonlinear classification,regression,and even outlier detection. SVMs are particularly well suited for classific 阅读全文
posted @ 2019-01-16 13:00 羊小羚 阅读(1050) 评论(0) 推荐(0) 编辑
摘要: >>> np.unravel_index([22, 41, 37], (7,6)) (array([3, 6, 6]), array([4, 5, 1]))>>> np.unravel_index([31, 41, 13], (7,6), order='F') (array([3, 6, 6]), 阅读全文
posted @ 2019-01-14 12:55 羊小羚 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 文档中介绍的很详细:https://matplotlib.org/tutorials/text/mathtext.html matplotlib Tutoials --> Text --> Writing mathematical expressionsr 阅读全文
posted @ 2019-01-10 18:10 羊小羚 阅读(469) 评论(0) 推荐(0) 编辑
摘要: Linear Regression The Normal Equation Computational Complexity 线性回归模型与MSE. the normal equation: a closed-form solution to find the value of θ that min 阅读全文
posted @ 2019-01-07 11:45 羊小羚 阅读(793) 评论(0) 推荐(0) 编辑
摘要: np.ogrid: address:https://docs.scipy.org/doc/numpy/reference/generated/numpy.ogrid.html returns an open (i.e. not fleshed out) mesh-grid when indexed, 阅读全文
posted @ 2019-01-05 11:47 羊小羚 阅读(282) 评论(0) 推荐(0) 编辑