Andreas Mueller
1406cdfbb7
ENH use the numbers module introduced in Python 2.6 to check for number types.
...
Fixes 1255.
2012-10-24 18:44:53 +02:00
Gael Varoquaux
7c70198efc
FIX: doctests under Windows 64bit
...
Thanks to @bdholt1 for reporting these errors
2012-10-07 23:12:56 +02:00
Lars Buitinck
669f31e9d6
TST CountVectorizer with empty vocabulary
2012-10-07 15:32:46 +02:00
Lars Buitinck
07a9d2e6df
ENH better error messages in CountVectorizer for empty vocabulary
2012-10-06 14:08:08 +02:00
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
Andreas Mueller
c877742ede
FIX unicode support in count vectorizer. Closes #1098 .
2012-09-20 15:36:38 +01:00
Andreas Mueller
c4d9e87522
FIX error in error message ^^ closes #1155 .
2012-09-17 21:25:32 +01:00
Andreas Mueller
65cf66540d
ENH remove some deprecated parameters / functions /estimators
2012-09-15 16:43:08 +01:00
Andreas Mueller
9de51eadcf
add y to tfidf vectorizer
2012-09-12 20:21:27 +01:00
Lars Buitinck
293392045a
ENH performance of TfidfTransformer
...
Moved construction of idf diagonal matrix from transform to fit.
TfidfVectorizer.transform now takes 25% less time on 20newsgroups test set;
did not profile transformer in isolation.
2012-09-08 22:54:28 +02:00
Vlad Niculae
ef2f4acde7
Expose ENGLISH_STOP_WORDS
2012-09-04 18:00:49 +01:00
Vlad Niculae
7f76aa1def
Add __all__ for half of the scikit
2012-09-04 18:00:49 +01:00
Andreas Mueller
1cdc9e119a
DOC CountVectorizerDocstring readability
2012-09-02 11:32:30 +02:00
Vlad Niculae
3f8b454b4b
FIX: randomly failing CountVectorizer test
2012-09-01 22:36:43 +03:00
Vlad Niculae
9e7c03f71a
Add or fix deprecation schedule in warnings.
2012-09-01 20:02:14 +02:00
Andreas Mueller
b27dde273f
FIX typo
2012-09-01 14:34:25 +02:00
Andreas Mueller
4c8c3be75c
ENH more robust testing if parameter is int or float, as suggested by @larsmans in #1066 .
2012-09-01 14:29:35 +02:00
Andreas Mueller
f9d6b2fc82
ENH more robust testing for int
2012-09-01 14:29:35 +02:00
Andreas Mueller
05630b0ae4
ENH added min_df keyword to CountVectorizer, default=2
2012-09-01 14:29:35 +02:00
Mathieu Blondel
c677f0bf91
Typo.
2012-08-21 15:38:37 +09:00
Andreas Mueller
41564813af
ENH fix merge with char_wb_ngram
2012-08-19 14:40:05 +01:00
Andreas Mueller
cd18098d1e
ENH addresses @ogrisel's comments
2012-08-19 14:26:09 +01:00
Andreas Mueller
bf787ac11f
ENH renamed parameter bounds_n to ngram_range, fixed doctests and tests.
2012-08-19 14:26:09 +01:00
Andreas Mueller
47c156295d
ENH renamed ``min_n`` and ``max_n`` parameters in CountVectorizer to enable gridsearch over them together.
2012-08-19 14:26:09 +01:00
Olivier Grisel
8e0528d48e
Merge pull request #995 from kernc/CountVectorizer_analyzer_char_nospace
...
feature_extraction.text.CountVectorizer analyzer 'char_nospace'
2012-08-17 09:13:10 -07:00
Kernc
b346184a77
changed 'char_nospace' keyword to shorter and meaningful 'char_wb'
2012-08-14 12:24:58 +02:00
Andreas Mueller
1f0daf94d4
DOC add parameters to TfidfTransformer docstring
2012-08-13 11:31:56 +01:00
Andreas Mueller
fdf6bfa26b
DOC added ``lowercase`` to CountVectorizer docstring.
2012-08-11 15:04:59 +01:00
Kernc
08338cf825
char_nspace -> char_nospace, thanks Lars
2012-08-03 04:01:55 +02:00
Kernc
ed89ddf4f6
replaced str.format() with string concatenation as it's 3 times faster
2012-08-03 03:56:22 +02:00
Kernc
9f0ec0b811
missing unicode modifier
2012-08-03 00:34:43 +02:00
Kernc
e83fe8bf9a
words for n-grams padded with one space on each side
2012-08-03 00:26:16 +02:00
Kernc
8b2893eb39
Oneliner docstring
2012-08-02 23:48:05 +02:00
Kernc
7db59b1ce8
feature_extraction.text.CountVectorizer analyzer 'char_nospace'
...
creates character n-grams but only inside word boundaries, e.g.
'this is it' to 3-grams: ['thi', 'his', 'is', 'it']
2012-08-02 22:00:41 +02:00
Lars Buitinck
f4882b5c38
DOC + TST vocabulary arg in CountVect docstring
...
Somewhere during the last refactoring, the documentation for the argument
went missing.
Also, check for Mapping subclass instead of hasattr "get" and test with a
few different types.
2012-08-01 15:09:35 +02:00
Lars Buitinck
f6bd86e290
COSMIT cleanup tests with pyflakes
2012-07-21 12:57:49 +02:00
John Benediktsson
78517a3399
COSMIT: Use np.array.fill for scalar values.
2012-07-17 23:18:38 -07:00
Yaroslav Halchenko
37b440e071
ENH do not fail the test reslying on numpy div 0 warnings if those are not spit out by numpy in general
2012-07-04 00:40:04 -04:00
Andreas Mueller
86cedafa08
ENH make all Estimators default constructible (except SparseCoder)
2012-06-26 14:16:03 +02:00
Lars Buitinck
e2ce08edd1
DOC typo in docstring
2012-06-13 16:18:46 +02:00
Andreas Mueller
1ebcc4a486
COSMIT pep8
2012-05-15 21:18:30 +02:00
Subhodeep Moitra
2727820e6a
P3K: Fixed RuntimeError.message
2012-05-11 11:24:27 +02:00
Subhodeep Moitra
ad66a25f5a
P3K: Modified RuntimeError message args
2012-05-11 11:21:01 +02:00
Subhodeep Moitra
704b8619f9
P3K : Changed / to // to typecast float to int
2012-05-11 11:21:01 +02:00
Andreas Mueller
3e5f2e5e08
ENH backport "assert_less" and "assert_greater", rename "assert_lower" and use it everywhere :)
2012-05-06 15:43:29 +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
20b04689d9
Merge branch 'dictvectorizer'
...
Conflicts:
doc/modules/feature_extraction.rst
2012-03-18 18:09:43 +01:00
Lars Buitinck
7af5f6a549
BUG fix doctests for DictVectorizer (nose 0.X compat)
2012-03-17 14:52:24 +01:00