annoviko / pyclustering

pyclustering is a Python, C++ data mining library.
https://pyclustering.github.io/
BSD 3-Clause "New" or "Revised" License
1.17k stars 248 forks source link

[pyclustering.nnet.cnn] Visualization failure #663

Closed annoviko closed 3 years ago

annoviko commented 3 years ago

Introduction On linux machine where matplotlib=3.3.3.

How to reproduce Run unit-test nnet.tests.unit.ut_cnn.CnnUnitTest.

Error Description

======================================================================
ERROR: testChaoticNeuralNetwork3DVisualization (nnet.tests.unit.ut_cnn.CnnUnitTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/andrei/.local/lib/python3.8/site-packages/pyclustering/nnet/tests/unit/ut_cnn.py", line 108, in testChaoticNeuralNetwork3DVisualization
    cnn_visualizer.show_dynamic_matrix(output_dynamic);
  File "/home/andrei/.local/lib/python3.8/site-packages/pyclustering/nnet/cnn.py", line 195, in show_dynamic_matrix
    plt.imshow(network_dynamic.T, cmap=plt.get_cmap('gray'), interpolation='None', vmin=0.0, vmax=1.0)
  File "/home/andrei/.local/lib/python3.8/site-packages/matplotlib/pyplot.py", line 2724, in imshow
    __ret = gca().imshow(
  File "/home/andrei/.local/lib/python3.8/site-packages/matplotlib/__init__.py", line 1447, in inner
    return func(ax, *map(sanitize_sequence, args), **kwargs)
  File "/home/andrei/.local/lib/python3.8/site-packages/matplotlib/axes/_axes.py", line 5518, in imshow
    self.set_aspect(aspect)
  File "/home/andrei/.local/lib/python3.8/site-packages/mpl_toolkits/mplot3d/axes3d.py", line 323, in set_aspect
    raise NotImplementedError(
NotImplementedError: Axes3D currently only supports the aspect argument 'auto'. You passed in 'equal'.

----------------------------------------------------------------------