Open Kiord opened 1 year ago
It appears that np.lexsort
outputs a int64
array even with two int32
arrays as input.
Quick fixes :
change line 110 in sparseMatrixPrepare.py
row_to_col_ind_arr=np.lexsort((rowBased_row_array,rowBased_col_array))
to
row_to_col_ind_arr=np.lexsort((rowBased_row_array,rowBased_col_array)).astype(np.int32)
Also, sklearn's AffinityPropagation.cluster_centers_indices_
is int64
, so :
change line 63 in test_sap.py
sk_exemplars=np.asarray([cluster_centers_indices[i] for i in labels])
to
sk_exemplars=np.asarray([cluster_centers_indices[i] for i in labels], dtype=np.int32)
Hello,
I installed the lib from the sources using
python setup.py install
and ran the tests, but got an error :relevant packages versions :