Commit Graph

319 Commits

Author SHA1 Message Date
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
Laurent Direr f208316de6 Added a comment to explain the use of a test. 2014-07-14 22:13:41 +02:00
Laurent Direr fb62b9fa7e Replaced assert_raises with assert_raise_message as the point is to make sure the exception message is clear. 2014-07-14 16:08:56 +02:00
Laurent Direr d1fe163bbc PEP8 line length fix. 2014-07-14 15:26:12 +02:00
Laurent Direr 6e2af35483 Added a test on hashing vectorizer behavior with np.nan input. 2014-07-14 15:23:21 +02:00
Laurent Direr 5242c21009 #3356 - Added an exception raising when np.nan is passed into a HashingVectorizer. 2014-07-14 13:32:25 +02:00
Laurent Direr f01ae493ec #3356 - Added an exception raising when np.nan is passed into a HashingVectorizer. 2014-07-14 13:04:29 +02:00
Laurent Direr 9e54c8bc80 Corrected two typos in docstring. 2014-07-14 12:59:43 +02:00
Ryan Wang 1eaf8dbc40 DOC typos in feature_extraction.text
Fixes #3311.
2014-06-26 10:48:01 +02:00
Lars Buitinck cdd2279c09 ENH fix astype usage to prevent copying
Removed where possible; using copy=False (from utils.fixes) where needed.

Also some C integer type fixes to gradient boosting.
2014-06-18 11:01:28 +02:00
Andreas Mueller d12d3132c4 Fix some fun column span alignment errors. 2014-06-07 16:48:48 +02:00
Jelle Zijlstra fe6b9ea1a0 fix defaultdict call
In Python 2.7, the current version fails with:

$ python -c 'from collections import defaultdict; defaultdict(None)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: first argument must be callable
2014-06-03 19:34:41 -07:00
Lars Buitinck 85bdeba4d6 DOC: improve feature_extraction.text docstrings
Partial solution to #3210.
2014-05-28 00:10:58 +02:00
Gael Varoquaux 110dd5c1d5 Merge pull request #3193 from mjbommar/issue-3167-eradicate-todense
Minor docstring and What's New changes for issue 3167
2014-05-25 00:32:46 +02:00
mjbommar 123aa8a7a8 Adding Notes section to img_to_graph and grid_to_graph re: np.matrix->np.ndarray 2014-05-24 15:02:58 -04:00
Olivier Grisel 40597f1df5 Merge pull request #3169 from mjbommar/issue-3167-eradicate-todense
PR re: issue 3167 to eradicate .todense()
2014-05-24 21:02:47 +02:00
Yung Siang Liau 92add1daa1 FIX TfidfVectorizer exports idf_ attribute 2014-05-23 17:51:15 +08:00
mjbommar d8099d6d27 Replacing the non-test .todense() methods with .toarray() 2014-05-20 21:16:34 -04:00
Lars Buitinck fbe974be84 DOC: tfidf is actually tf*(idf+1) = tf + tf*idf 2014-03-30 15:41:41 +02:00
Lars Buitinck 39b859b95e FIX TfidfVectorizer to no longer ignore binary param
Also changed the docs to clarify that binary=True means
binary tf, not binary output.
2014-03-24 11:18:11 +01:00
Lars Buitinck b97fb3c5fc MAINT drop support for NumPy < 1.6.1 2014-03-02 20:13:57 +01:00