AnchorBlues / GroupLasso

Group Lasso package for Python.
BSD 2-Clause "Simplified" License
15 stars 8 forks source link

numpy.int error #4

Closed AnchorBlues closed 1 year ago

AnchorBlues commented 1 year ago

When the test code is executed, the following error occurs:

ERROR: test_Xshape_eq_group_ids_error (tests.test_model.BasicTestSuite)
check raise ValueError if X.shape[1] != len(group_ids)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yuume/git_files/GroupLasso/tests/test_model.py", line 282, in test_Xshape_eq_group_ids_error
    model.fit(X, y)
  File "/home/yuume/git_files/GroupLasso/grouplasso/model.py", line 89, in fit
    raise TypeError("type of group_id must be int.")
TypeError: type of group_id must be int.

This error may be due to np.int being deprecated.

references: