Commit Graph

8 Commits

Author SHA1 Message Date
Lars Buitinck 749ea70370 ENH let DictVectorizer build a CSR matrix directly and use array.array
Prevents copying.
2012-09-29 23:01:27 +02:00
Lars Buitinck ef62a60be7 DOC + FIX DictVectorizer: actually support single Mapping arg in transform 2012-04-09 16:31:54 +02:00
Lars Buitinck 28e012cebb COSMIT use sorted instead of list.sort in DictVectorizer
Guaranteed to return a list, even in Python 3.
2012-04-02 17:52:09 +02:00
Olivier Grisel e4ce5cf20d ENH: sort features in dict vectorizer + new doc 2012-04-01 03:13:23 +02:00
Lars Buitinck e05e1a42b9 ENH reduce memory usage of DictVectorizer.transform in sparse case
Don't materialize iterable's entire contents.
2012-03-17 12:18:22 +01:00
Lars Buitinck d5126a7fad DOC + pyflakes in DictVectorizer 2012-03-17 12:11:41 +01:00
Lars Buitinck 49e29534d5 ENH optimize DictVectorizer (sparse case)
Constructing a 7944 × 9491 coo_matrix (55608 non-empty elements)
is about 3x faster than with the old lil_matrix-based code.
2012-03-17 00:48:28 +01:00
Lars Buitinck c128b147b4 COSMIT rename DictVectorizer source files
At the request of @mblondel.
2012-03-16 23:12:41 +01:00