2021
06-23
06-23
python保存大型 .mat 数据文件报错超出 IO 限制的操作
python保存.mat文件的大小是有限制的,似乎是5G以内,如果需要保存几十个G的数据的话,可以选用其他方式,比如h5文件importh5pydefh5_data_write(train_data,train_label,test_data,test_label,shuffled_flag):print("h5py文件正在写入磁盘...")save_path="../save_test/"+"train_test_split_data_label_"+shuffled_flag+".h5"withh5py.File(save_path,'w')asf:f.create_datas...
继续阅读 >