我已经运行了模型并在远程服务器上采样了跟踪。我使用泡菜保存了对象。文件大小非常大。我试图恢复跟踪,但是它遇到了
EOFError:超出输入范围
我正在使用以下代码:
with open('/raid60/anil.gaddam/trace_results.pkl', 'wb') as buff:
pickle.dump({'model': model, 'trace': tr}, buff)
with open ('E:/Masters Project/dataset/results/LDA/trace_advi.pkl', 'rb') as buff:
data = pickle.load (buff,encoding ='latin1')
trace = data['trace']
需要帮助! 非常感谢。
谢谢!