Construire un ensemble python à partir d'une matrice numpy

Je suis en train d'accomplir le suivant

>> from numpy import *
>> x = array([[3,2,3],[4,4,4]])
>> y = set(x)
TypeError: unhashable type: 'numpy.ndarray'

Comment puis-je créer facilement et efficacement un ensemble à partir d'un tableau numpy?

source d'informationauteur dzhelil | 2009-12-21