Hi, thanks for your awesome libraries.
Just a short question: In this line:
|
representative_images[cluster] = {"Indices": [int(index) for index in exemplars], |
you're casting the numpy int64s to integers, presumably so they can be used as indexes?
In any case, the cluster keys remain np.int64. This means the whole dict cannot be serialized (as json doesn't know how to handle numpy data types).
My suggestion would be to int() the keys as well to make this a bit less perplexing. But I'm not sure if you rely on the indexes being np.int64 in some other place?
Hi, thanks for your awesome libraries.
Just a short question: In this line:
Concept/concept/_model.py
Line 304 in d270607
you're casting the numpy int64s to integers, presumably so they can be used as indexes?
In any case, the cluster keys remain np.int64. This means the whole dict cannot be serialized (as json doesn't know how to handle numpy data types).
My suggestion would be to int() the keys as well to make this a bit less perplexing. But I'm not sure if you rely on the indexes being np.int64 in some other place?