使用scipy.minimze的Python 2.7内存泄漏 [英] Python 2.7 memory leak with scipy.minimze

查看:125
本文介绍了使用scipy.minimze的Python 2.7内存泄漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在合适的过程中,我的RAM内存缓慢但稳定地增加(每两秒钟约2.8 mb),直到出现内存错误或终止程序.当我尝试通过对模型进行拟合来拟合约80个测量值时,就会发生这种情况.通过使用scipy.minimze最小化Chi_squared来完成此拟合.

During a fit procedure, my RAM memory slowly but steadily (about 2.8 mb every couple of seconds) increases until I get a memory error or I terminate the program. This happens when I try to fit some 80 measurements by fitting a model to them. This fitting is done by using scipy.minimze to minimize Chi_squared.

到目前为止,我已经尝试过:

So far I've tried:

  • 垃圾收集器,以在每次Chi_squared调用时进行收集我的模特没有帮助.
  • 使用 global()查看所有变量,然后使用
查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆