python
s_cailin
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
JSON增加键值
(自己的笔记) 1.第一种情况 MODEL_PARAMS = { 'model': 'CLA', # Model parameter dictionary. 'modelParams': { # The type of inference that this model will perform 'inferenceType': 'NontemporalClassifi...原创 2018-09-07 09:57:34 · 3138 阅读 · 0 评论 -
newaxis的用法以及a[0][:, :, np.newaxis]的含义
import numpy as np a=np.array([[[[1],[1],[1]],[[2],[2],[2]],[[3],[3],[3]]],[[[4],[4],[4]],[[5],[5],[5]],[[6],[6],[6]]]]) a.shape (2, 3, 3, 1) b=a[0][:, :, np.newaxis]#np.newaxis是新建一个维度 print(b) b.sh...原创 2019-04-08 21:20:25 · 5315 阅读 · 0 评论
分享