import numpy as np
training = ...
# 保存
np.savez('training', d1=training['x'], d2=training['y'])
# 读取
training = np.load('training.npz')
# 查看数据集内的变量名
training.files()
x = training['d1']
y = training['d2']
# 如果 np.savez 不指定 d1 d2 的话,变量名将成为 arr_0 arr_1 ...
上一篇
tensorflow-构建静态图示例
2023-04-16
下一篇
PostgreSQL-部署
2023-04-14