yandex / rep

Machine Learning toolbox for Humans
http://yandex.github.io/rep/
Other
687 stars 144 forks source link

Convert keys, values to list #8

Closed eyadsibai closed 9 years ago

eyadsibai commented 9 years ago

In python 3 .keys() and .values() return a keysView or valuesView which do not support indexing e.g. x.keys()[0]

Also numpy won't convert it to numpy array but to something like this

numpy.array(dict_keys([1,2]))