heidmic / suprb

GNU General Public License v3.0
6 stars 3 forks source link

Errors in example scripts #158

Closed heidmic closed 4 days ago

heidmic commented 3 months ago

A student of mine got the following output when running example 4:

CV] START .....................................................................
[1/32] Found empty bounds for init__bounds, estimating from data
/home/alexanderrioux/Downloads/suprb-master/suprb/suprb.py:174: UserWarning: An error has occured when trying to compose a solution:
module 'collections' has no attribute 'Iterable' <------- das hier macht mir sorgen
  warnings.warn(f"An error has occured when trying to compose a solution:\n{e}")
[CV] END  neg_mean_squared_error: (test=-0.846) r2: (test=-0.001) total time=   5.1s
[Parallel(n_jobs=1)]: Done   4 tasks      | elapsed:   20.4s
[Parallel(n_jobs=1)]: Done   4 tasks      | elapsed:   20.4s
QSocketNotifier: Can only be used with threads started with QThread
(1030, 8) (1030,)
Traceback (most recent call last):
  File "/home/alexanderrioux/Downloads/suprb-master/example_4.py", line 74, in <module>
    create_plot(scores)
  File "/home/alexanderrioux/Downloads/suprb-master/example_4.py", line 23, in create_plot
    ax.scatter(X, y, c='b', s=3, label='y_true')
  File "/home/alexanderrioux/.local/lib/python3.12/site-packages/matplotlib/__init__.py", line 1465, in inner
    return func(ax, *map(sanitize_sequence, args), **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/alexanderrioux/.local/lib/python3.12/site-packages/matplotlib/axes/_axes.py", line 4655, in scatter
    raise ValueError("x and y must be the same size") <------- und das hier macht mir sorgen
ValueError: x and y must be the same size

Might just be the python version (he seems to be using python 3.12 rather than 3.9). Might be some other bugs.

To complete this issue: