[Numpy-discussion] Problems with list 2 array
Pierre GM
pgmdevlist at mailcan.com
Sun Jul 2 18:48:37 EDT 2006
Pepe,
> In [56]: array(prob)
> ---------------------------------------------------------------------------
> exceptions.TypeError Traceback (most
> recent call last)
>
> /Users/elventear/Projects/workspace/libSVM Scripts/src/<ipython console>
>
> TypeError: a float is required
Make sure that all the elements of your `prob` list have the same length. If
not, then numpy can't create an array from your list and raises the exception
you see.
More information about the NumPy-Discussion
mailing list