Commit Graph

72 Commits

Author SHA1 Message Date
Nicolas Hug a50c03f975 [MRG] Add pprint for estimators - continued (#11705)
* add pprint for estimators

* strip color from length, add color option

* Minor cleaning, fixes, factoring and docs

* Added some basic tests

* Fixed line length issue

* fixed flake8 and added visual test for review

* Fixed test

* Fixed Python 2 issues (inspect.signature import)

* Trying to fix flake8 again

* Added special repr for functions

* Added some other visual tests

* Changed _format_function in to _format_callable

because callable() returns True also for class objects (which we want to
reprensent with their name as well anyway)

* Consistent output in Python 2 and 3

* WIP

* Now using the builtin pprint module

* pep8

* Added changed_only param

* Fixed printing when string would fit in less than line width

* Fixed printing of steps parameter

* Fixed changed_only param for short estimators

* fixed pep8

* Added some more description in docstring

* changed_only is now an option from set_config()

* Put _pprint.py into sklearn/utils, added tests

* Added doctest NORMALIZE_WHITESPACE where needed

* Fixed tests

* fix test-doc

* fixing test that passed before....

* Fixed tests

* Added test for changed_only and long lines

* typo

* Added authors names

* Added license file

* Added ellipsis based on number of elements in sequence + added increasinly aggressive repr strategies

* Updated whatsnew

* dont use increaingly aggressive strategy

* Fixed tests

* Removed LICENSE file and put license text in _pprint.py

* fixed test_base

* Sorted parameters dictionary for consistent output in 3.5

* Actually using OrderedDict...

* Addressed comments

* Added test for NaN changed parameter

* Update whatsnew

* Added example to set_config()

* Removed example

* Added example in gallery

* Spelling
2018-12-19 23:48:21 -05:00
Nicolas Hug 4e2da4af92 [MRG] Added FutureWarning in sgd models for tol parameter (#12399)
* Added ChangedBehaviorWarning in sgd models

if tol is None while max_iter is set

* Changed to FutureWarning and clarified None meaning

* Ignored warningin tests

* Ignore warnings in tests, round 2
2018-10-24 11:00:43 -04:00
Matthew Roeschke 5af272ac61 MNT Remove unused variables (#12230) 2018-10-22 12:48:40 +11:00
Andreas Mueller 0f94f2962b
MNT simple deprecations and removals for 0.21 (#12238)
Part of #11992.
These were all the things that seemed pretty straight-forward. It's actually a bit bulky but should still be easy to review, hopefully.
2018-10-11 14:56:37 -04:00
TakingItCasual f4e7d2b19a Converting http to https (3)... (#12302) 2018-10-05 18:50:31 +02:00
Olivier Grisel 40e6c43cb4
Joblib 0.12.2 (#11741)
* joblib 0.12.2

* Export _joblib's register_parallel_backend

* Use latest version of coverage
2018-08-03 12:34:25 +02:00
Adrin Jalali 3b24a4855d DOC Add AdditiveChi2Sampler example to docstring (#11651) 2018-07-31 21:43:35 +08:00
Nicolas Hug 813d7de9b4 DOC Added docstring checks for feature_selection, kernel_approximation and neighbors modules (#11421) 2018-07-20 08:24:39 +10:00
Adrin Jalali 888a018a38 DOC Nystroem example added to its class's docstring [See #3846] (#11483) 2018-07-16 09:17:30 +08:00
Adrin Jalali e23c6aea3b SkewedChi2Sampler example added to its class's docstring (#11479) 2018-07-12 14:27:08 -05:00
Adrin Jalali 9e1d9efad1 [MRG] RBFSampler example added to its class docstring [See #3846] (#11478)
* RBFSampler example added to its class docstring

* fix SGDClassifier repr
2018-07-12 14:25:59 -05:00
Andreas Mueller 896f9d97cf Fix handling of Nystroem params with a callable kernel (#9166) 2017-06-30 18:16:10 +02:00
(Venkat) Raghav, Rajagopalan 763d93b72e [MRG+1] Do not transform y (#9180)
* we do not transform y

* more

* added Deprecation Warning to transform() to remove Y parameter

* more

* ENH ensure FunctionTransformer's transform/inverse_transform doesn't permit y

* Undo changes to pls_. It will be done in a separate PR (see #9160)

* flake8

* Update whatsnew

* Fully undo PLS changes
2017-06-22 23:24:12 +02:00
Mathieu Blondel e2d011d953 Division. 2017-06-06 23:13:42 +09:00
Romain Brault 15b7d47a2f relax skewness assumption (#7573)
relax skewedness assumption

relax skewedness assumption

relax skewedness assumption

relax skewedness assumption

relax skewedness assumption

last corrections

whats_new

merge

complying whats_new

removed unnecessary _assert_X

increased coverage

relax skewness assumption

relax skewedness assumption

relax skewedness assumption

relax skewedness assumption

relax skewedness assumption

relax skewedness assumption

last corrections

whats_new

merge

complying whats_new

removed unnecessary _assert_X

increased coverage

remove cythonize.dat and merge

simplify tests

simplify tests
2017-05-18 14:17:10 -04:00
Milen Paskov 3a3637c571 [MRG+1] Misleading gamma description (#8699) (#8716)
[DOC] update description of gamma for kernel methods
2017-04-22 15:45:08 +02:00
Guillaume Lemaitre e3c9ae204f [MRG+1] DOC improve description and consistency of random_state (#8689)
* DOC improve description of random_state in train_test_split

* DOC Make random_state consistent through documentation

* FIX reverse doc mistake

* FIX address comment of Tom

* DOC address comments

* DOC remove empty line

* DOC remove unecessary white spaces
2017-04-05 17:43:21 -07:00
Nate George 9b25f5d37a Fix docs links (#7005)
* docs: fix broken and redirect links

see #7000

* docs: fix links

see #7000

* docs: merge with master

* docs: fix fnrs and tinyclues logo links

* docs: fix link reference in text

* docs: fix typo

* docs: added back in metaoptimize-qa paragraph

* docs: update language for defunct site

* docs: update stackexchange section

* docs: remove defunct site, move quora to top

* docs: remove defunct link and rearrange links
2016-07-27 16:58:25 -04:00
Raghav R V 71c004b555 REF Correct the reference link for additive chi squared sampler. 2015-06-21 07:24:18 +05:30
Andreas Mueller 0650d5502e DOC adding backlinks to docstrings 2015-06-03 00:24:04 -04:00
Vinayak Mehta 6b5e63b899 Added Random Kitchen Sink reference 2015-03-02 11:16:03 +05:30
Olivier Grisel feceab6f62 FIX test for consistent handling on empty input data 2015-02-26 10:45:06 +01:00
Andreas Mueller 8db11a8c74 Make nystroem approximation robust to singular kernel. 2015-01-29 12:11:52 -05:00
Raghav R V abd31d2cad MAINT Make uniform the error raised for not fitted condition 2015-01-12 00:33:40 +05:30
Dougal J. Sutherland f0f26bce33 fix factor of 2 in RBFSampler; make test more rigorous
http://nbviewer.ipython.org/gist/dougalsutherland/11fd9895924c3c1aed19
demonstrates the problem in pictures.
2014-09-22 18:19:40 -04:00
jnothman e1891d801b Merge pull request #3489 from jnothman/attributes-doc
[MRG] DOC fix formatting of Attributes sections in documentation
2014-08-02 20:14:53 +10:00
Joel Nothman fe5423f361 DOC fix see also references 2014-07-29 14:49:36 +10:00
Joel Nothman b3bdb08964 DOC fix formatting of attributes etc. in docstrings 2014-07-28 19:04:59 +10: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
Sebastian Saeger 4a3c44ebb8 FIX: AdditiveChi2Sample can be initialized with sample_interval, #3068 2014-04-15 15:51:53 +02:00
Lars Buitinck 034808d72f FIX Nystroem input validation, again
I, of all people, forgot the sparse matrix case.
2014-03-05 14:06:42 +01:00
Lars Buitinck 61142601d8 FIX input validation in Nystroem
Minimal, so we can later add support for dtype=object and custom kernels
on strings, trees, graphs, etc.
2014-03-05 13:14:46 +01:00
Lars Buitinck af43c88518 COSMIT remove useless "if False" in kernel approximations
Callable case handled by pairwise_kernels.
2013-11-18 15:50:08 +01:00
Lars Buitinck e8bad3d24a DOC ASCII only in docstrings
As discussed on the mailing list.
2013-08-28 18:22:57 +02:00
Lars Buitinck 5cadbe68ff DOC typos involving Nyström 2013-07-30 18:02:23 +02:00
Nelle Varoquaux bc54f01521 DOC fixed some formatting in kernel approximation 2013-07-10 12:26:11 +02:00
Robert Layton dacfd8bd5d DOC: Replaced all BSD style licenses with "BSD 3 clause"
Replaced all BSD style licenses with "BSD 3 clause"
Not checked yet!

Removed duplicate "3 clause, 3 clause"

Removed trailing period if exists

Fixed some missed licences, still about 50 to do, but those can be automated

Think I got the last of them.

Apparently me and sed have different ideas of regex.

Found a few more
2013-04-30 08:34:46 +02:00
Andreas Mueller 465e053c49 COSMIT pep8 2013-04-28 15:46:13 +02:00
Gael Varoquaux 5d90520778 ENH: minor changes for numpy versions
In particular, be nice when the casting rules are configured to raise
errors
2013-04-14 10:27:06 +02:00
Lars Buitinck 66eb410bdd BUG + DOC fix Nystroem for other kernels than RBF
Fixes #1785, #1786.
2013-03-18 12:51:50 +01:00
Lars Buitinck 2d63eb291b BUG oops, removed validation by accident 2013-02-18 17:52:49 +01:00
Lars Buitinck 7dd1ade8b7 ENH speed up RBFSampler by ~10%
Applied the same to SkewedChi2Sampler, without measuring.

I was actually aiming for reduced memory usage, but unfortunately that
didn't matter much.
2013-02-18 17:34:24 +01:00
Lars Buitinck 541987802f P3K range vs. xrange 2013-02-14 02:05:35 +01:00
Andreas Mueller a3b55f4eae ENH fix test_estimators_overwrite_params to also test regressors and transformers. Then fix all the regressors and transformers ... meh! 2013-02-11 17:13:25 +01:00
Olivier Grisel 1967a0b323 P3K use six to have a python 2 & 3 compatible code base 2013-02-09 18:08:44 +01:00
Andreas Mueller 374f81a760 COSMIT built-in typo 2013-02-03 15:49:39 +01:00
Andreas Mueller 9e3ef3985e DOC some sphinx fixes 2013-01-16 22:51:24 +01:00
Andreas Mueller f3e8fb840e ENH tests for Nystrom, check that n_components is smaller than n_samples. 2012-12-09 14:14:09 +01:00
Andreas Mueller 9e6a904049 ENH cosmit, gamma defaults do None, not 0. address some of @mblondel's comments. 2012-12-09 14:14:09 +01:00