[SciPy-dev] scipy.cluster

Nils Wagner nwagner@iam.uni-stuttgart...
Wed Jun 20 01:42:00 CDT 2007


Hi all,

The recent changes in scipy.cluster have introduced some MemoryErrors

======================================================================
ERROR: Testing that kmeans2 init methods work.
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib64/python2.4/site-packages/scipy/cluster/tests/test_vq.py",
line 137, in check_kmeans2_init
    kmeans2(data, 3, minit = 'random')
  File "/usr/lib64/python2.4/site-packages/scipy/cluster/vq.py", line
545, in kmeans2
    return _kmeans2(data, clusters, iter, nc)
  File "/usr/lib64/python2.4/site-packages/scipy/cluster/vq.py", line
558, in _kmeans2
    label = vq(data, code)[0]
  File "/usr/lib64/python2.4/site-packages/scipy/cluster/vq.py", line
144, in vq
    results = _vq.vq(c_obs, c_code_book)
MemoryError

======================================================================
ERROR: Testing simple call to kmeans2 with rank 1 data.
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib64/python2.4/site-packages/scipy/cluster/tests/test_vq.py",
line 129, in check_kmeans2_rank1
    code1 = kmeans2(data1, code, iter = 1)[0]
  File "/usr/lib64/python2.4/site-packages/scipy/cluster/vq.py", line
545, in kmeans2
    return _kmeans2(data, clusters, iter, nc)
  File "/usr/lib64/python2.4/site-packages/scipy/cluster/vq.py", line
558, in _kmeans2
    label = vq(data, code)[0]
  File "/usr/lib64/python2.4/site-packages/scipy/cluster/vq.py", line
144, in vq
    results = _vq.vq(c_obs, c_code_book)
MemoryError

======================================================================
ERROR: Testing simple call to kmeans2 and its results.
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib64/python2.4/site-packages/scipy/cluster/tests/test_vq.py",
line 114, in check_kmeans2_simple
    code1 = kmeans2(X, code, iter = 1)[0]
  File "/usr/lib64/python2.4/site-packages/scipy/cluster/vq.py", line
545, in kmeans2
    return _kmeans2(data, clusters, iter, nc)
  File "/usr/lib64/python2.4/site-packages/scipy/cluster/vq.py", line
558, in _kmeans2
    label = vq(data, code)[0]
  File "/usr/lib64/python2.4/site-packages/scipy/cluster/vq.py", line
144, in vq
    results = _vq.vq(c_obs, c_code_book)
MemoryError

======================================================================
ERROR: This will cause kmean to have a cluster with no points.
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib64/python2.4/site-packages/scipy/cluster/tests/test_vq.py",
line 108, in check_kmeans_lost_cluster
    res = kmeans(data, initk)
  File "/usr/lib64/python2.4/site-packages/scipy/cluster/vq.py", line
400, in kmeans
    result = _kmeans(obs, guess, thresh = thresh)
  File "/usr/lib64/python2.4/site-packages/scipy/cluster/vq.py", line
320, in _kmeans
    obs_code, distort = vq(obs, code_book)
  File "/usr/lib64/python2.4/site-packages/scipy/cluster/vq.py", line
144, in vq
    results = _vq.vq(c_obs, c_code_book)
MemoryError

======================================================================
ERROR: check_kmeans_simple (scipy.cluster.tests.test_vq.test_kmean)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib64/python2.4/site-packages/scipy/cluster/tests/test_vq.py",
line 96, in check_kmeans_simple
    code1 = kmeans(X, code, iter = 1)[0]
  File "/usr/lib64/python2.4/site-packages/scipy/cluster/vq.py", line
400, in kmeans
    result = _kmeans(obs, guess, thresh = thresh)
  File "/usr/lib64/python2.4/site-packages/scipy/cluster/vq.py", line
320, in _kmeans
    obs_code, distort = vq(obs, code_book)
  File "/usr/lib64/python2.4/site-packages/scipy/cluster/vq.py", line
144, in vq
    results = _vq.vq(c_obs, c_code_book)
MemoryError

======================================================================
ERROR: check_vq (scipy.cluster.tests.test_vq.test_vq)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib64/python2.4/site-packages/scipy/cluster/tests/test_vq.py",
line 63, in check_vq
    label1, dist = _vq.vq(X, initc)
MemoryError

======================================================================
ERROR: Test special rank 1 vq algo, python implementation.
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/usr/lib64/python2.4/site-packages/scipy/cluster/tests/test_vq.py",
line 85, in check_vq_1d
    a, b = _vq.vq(data, initc)
MemoryError
 


More information about the Scipy-dev mailing list