【问题标题】:Gaussian Process eating up my memory高斯过程吞噬了我的记忆
【发布时间】:2013-02-11 17:28:27
【问题描述】:

我在 Ubuntu 12.04 上安装了 skicit-learn 0.13.1。运行以下代码正在消耗我的内存,即我可以使用 top 观察每次迭代中内存的增长情况,并且在大约 10 分钟后出现分段错误。 160 次迭代(使用 'ulimit -Sv 4000000' 将可用内存限制为大约 4GB)。

from sklearn import gaussian_process
import numpy as np


x = np.random.normal(size=(600, 60))            
y = np.random.normal(size=600)

for s in range(100000):

    print 'step %s' % s

    test = gaussian_process.GaussianProcess(
            theta0= 1e-2,
            thetaL= 1e-4,
            thetaU= 1e-1,
            nugget= 0.01,
            storage_mode='light').fit(x, y) 

那么我在这里错过了什么吗?

【问题讨论】:

    标签: scikit-learn


    【解决方案1】:

    这看起来像是严重的内存泄漏。请通过https://github.com/scikit-learn/scikit-learn/issues 举报。

    【讨论】:

      猜你喜欢
      • 2012-05-15
      • 2019-02-24
      • 2016-01-18
      • 2015-05-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多