
Python3
hhsh49
这个作者很懒,什么都没留下…
展开
-
python3 reshape 小技巧
1 A trick when you want to flatten a matrix X of shape (a,b,c,d) to a matrix X_flatten of shape (b∗∗c∗∗d, a) is to use: X_flatten = X.reshape(X.shape[0], -1).T # X.T is the transpose of X原创 2017-11-23 15:15:17 · 2944 阅读 · 0 评论 -
python之numpy.power()数组元素求n次方
转自:https://blog.youkuaiyun.com/lql0716/article/details/52910812numpy.power(x1, x2)数组的元素分别求n次方。x2可以是数字,也可以是数组,但是x1和x2的列数要相同。>>> x1 = range(6)>>> x1[0, 1, 2, 3, 4, 5]>>> np...转载 2018-10-13 10:34:53 · 9686 阅读 · 0 评论 -
jupyter notebook 上传文件夹问题
jupyter notebook本地直接解压缩后,只能上传单个或多个文件,多个文件夹无法上传。直接在本地的文件夹下:C:\Users\Administrator(自己的电脑路径),直接拷贝文件夹即可。...原创 2019-09-06 21:58:41 · 7294 阅读 · 0 评论