Commit Graph

339 Commits

Author SHA1 Message Date
Raghav R V a87011262a FIX precision to float64 across the codebase 2015-10-16 11:20:29 +02:00
Joshua Loyal 60b41a8044 correct optional arguments for FeatureHasher 2015-10-08 11:58:09 -04:00
Cindy Sridharan 0a7a1db8c7 removed list around sorted 2015-09-16 15:24:29 -07:00
Cindy Sridharan 4366ba500d use sklearn.utils.random 2015-09-16 15:24:28 -07:00
Cindy Sridharan 4af0c49f27 vocabulary of type set now coerced to list to preserve iteration ordering after serialization 2015-09-16 15:24:28 -07:00
jnothman 250e509e86 ENH O(1) stop-word lookup when list provided
The docstring says stop_words can be a list, but it should be accessed as a set.
2015-08-08 22:55:13 +10:00
Joel Nothman 0b83c989bc DOC tweaks for feature_extraction.text 2015-07-28 13:28:58 +10:00
Lars Buitinck 1f3ebb02fc DOC FeatureHasher takes (finite) numbers as values
Fixes #4882.
2015-07-12 13:20:06 +02:00
pianomania 243983daaf try to mollify travis 2015-07-09 20:31:02 +08:00
pianomania bf8695451b add an example for FeatureHasher 2015-07-08 21:37:07 +08:00
pianomania 4491d10ced add a example for FeatureHasher 2015-07-08 13:57:21 +08:00
Andreas Mueller 0650d5502e DOC adding backlinks to docstrings 2015-06-03 00:24:04 -04:00
Andreas Mueller a8626b36a6 TST/COSMIT remove nose call boilerplate 2015-05-28 14:54:01 -04:00
Lars Buitinck bb592f3865 DOC fix comment in tf-idf: log+1, not log(1+x)
[ci skip]
2015-05-23 16:12:20 +02:00
Andreas Mueller 6e54079393 Merge pull request #4356 from vortex-ape/dict_vectorizer
Fixes #4355: DictVectorizer.restrict docstring unclear
2015-04-01 16:44:40 -05:00
Raghav R V cd2ee7e454 MAINT docstring --> comments to prevent nose from using doc in verbose mode 2015-03-21 11:16:49 +05:30
Vinayak Mehta ef9cbcb214 added docstrings for restrict
updated docstring

fixed build error

fixed build issue occuring due to different python versions

added doctest: +ELLIPSIS

fixed output

Reformulated docstring
2015-03-17 22:23:13 +05:30
Andreas Mueller 6303af4ec2 DOC make defaults more explicit in text feature extraction. 2015-03-16 14:25:24 -04:00
Olivier Grisel ed5519fe8a Merge pull request #4307 from amueller/more_quite_testing
[MRG] catch some warnings, be less verbose in testing.
2015-03-03 09:27:15 +01:00
Andreas Mueller f1b8283c95 catch some warnings, be less verbose in testing. 2015-03-02 14:40:35 -05:00
Andreas Mueller 9bc4de8dae some fixes for sphinx and in examples 2015-03-02 12:50:53 -05:00
Lars 73e5cf5dbf Merge pull request #3933 from fabianp/loss_liblinear
MAINT Change loss names for LinearSVC and LinearSVR
2015-02-10 17:49:10 +01:00
Loïc Estève 5c0c5c672c MAINT use absolute imports in tests
as per the guideline in:
http://scikit-learn.org/stable/developers/#coding-guidelines
2015-02-10 13:40:31 +01:00
Fabian Pedregosa dbc5d707c6 Change loss names for LinearSVC and LinearSVR()
the names are now consistent across methods

In LinearSVC:
   'l1' -> 'hinge'
   'l2' -> 'squared_hinge'
In LinearSVR:
   'l1' -> 'epsilon_insensitive'
   'l2' -> 'squared_epsilon_insensitive'
2015-02-09 11:09:16 +01:00
Lars 38104ff4e8 Merge pull request #4193 from lesteve/deactivate-travis-default-venv
CI: test with NumPy 1.6.1, fix for its broken bincount
2015-02-03 16:25:36 +01:00
Raghav R V 21369dd6a1 TST Removal or modification of stop_words_ should not affect transform.
DOC Add a line to {Count, Tfidf}Vectorizer about removal of stop_words_
DOC Add documentation of stop_words_ attr in TfidfVectorizer
2015-02-02 02:20:04 +05:30
Loïc Estève cedf023e20 Move import statement 2015-02-01 18:20:30 +01:00
Loïc Estève 67dcd99d82 TST fix tests with numpy 1.6.1
np.bincount raises an Exception with empty input arrays for numpy versions < 1.6.2
Add utils.fixes.bincount to tackle this issue and use it instead of np.bincount
2015-02-01 15:49:49 +01:00
Raghav R V b3fbccca38 FIX various mismatch between docstring and signature params
DOC max_iterations -> max_iter. Make it consistent with kmeans

MAINT Replace the deprecated dx parameter with d in the docstrings

MAINT Deprecation warning for max_iterations parameter.
2015-01-16 11:54:57 -05:00
Raghav R V abd31d2cad MAINT Make uniform the error raised for not fitted condition 2015-01-12 00:33:40 +05:30
Lukas Michelbacher d67e9c4d8f Add newline before bullets
Without the extra line, the headline is rendered in bold.
2015-01-08 18:37:26 +00:00
Lukas Michelbacher de72e1db23 Add dependence to max_features to docstring
As requested in 4032#issuecomment-68478422.
2015-01-02 09:10:41 +00:00
MechCoder eb660edbf3 FIX: Raise error when patch width/height is greater than image width/height 2014-11-21 10:23:47 -05:00
Christian Stade-Schuldt cd7b43ccf9 TST make catch_warnings blocks more robust 2014-10-12 18:20:18 +02:00
Lars Buitinck fd4ba4d9cb MAINT: set attributes as last action in DictVectorizer.fit
Prevents getting a half-initialized transformer when an exception occurs.
2014-09-23 12:33:51 +02:00
Lars Buitinck a7a05120e2 MAINT: handle frombuffer with empty 1st arg in utils.fixes 2014-09-22 17:23:51 +02:00
Lars Buitinck 7354359bca MAINT refactor DictVectorizer's transform+fit_transform (1)
Also:

* postpone attribute setting to the end of the fit_transform algorithm,
  so that exceptions leave the transformer in a consistent state;
* call sort_indices on CSR result.

Didn't refactor fit as I couldn't get the code shorter without making
_transform cumbersome to read.
2014-09-22 16:44:47 +02:00
Dan Blanchard 324e3c9419 ENH sort option for memory-efficient DictVectorizer
Added memory efficient UnsortedDictVectorizer

When loading really large files for SKLL, I found that temporarily
storing a list of dictionaries to pass to DictVectorizer was frequently
using up huge amounts of memory. You can now call `fit_transform` on an
iterable, and not have to waste the temporary space.

Sorting is done in-place, so it doesn't waste memory.
2014-09-22 16:44:31 +02:00
danfrankj a57a306509 Correct documentation for TfidfVectorizer 2014-09-18 18:21:43 -07:00
Lars Buitinck 55cb591ef3 DOC vectorizers were referring to a private function in public docs 2014-08-18 14:33:14 +02:00
Vlad Niculae 8680a6bae1 Deprecate vectorizer fixed_vocabulary attribute 2014-08-13 10:54:44 +02:00
Vlad Niculae 143e5ffc37 FIX set vectorizer vocabulary outside of init 2014-08-13 10:54:44 +02:00
Joel Nothman b3bdb08964 DOC fix formatting of attributes etc. in docstrings 2014-07-28 19:04:59 +10:00
Lars Buitinck 56057c9630 MAINT remove deprecated code 2014-07-23 16:19:40 +02:00
Andreas Mueller c235c3b566 ENH add allowed_sparse named argument for @ogrisel 2014-07-20 15:31:28 +02:00
Andreas Mueller 6e2a83b4e1 remove check_arrays stuff and old input validation 2014-07-20 13:31:45 +02:00
Andreas Mueller f7549fd2ba Refactor input validation. 2014-07-20 10:40:04 +02:00
lesteve 0239310549 Remove a couple more 'using a non-integer number instead of an integer DeprecationWarning' 2014-07-18 17:05:46 +01:00
lesteve fa50e628dd Remove 'DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future' warnings 2014-07-18 15:16:56 +01:00
Olivier Grisel 4bf824cd7e TST non-regression test for CV on text pipelines 2014-07-16 16:35:41 +02:00