Commit Graph

44 Commits

Author SHA1 Message Date
Rüdiger Busche d300f406ae MAINT Simplify super() calls (#12812) 2019-01-10 22:27:06 +01:00
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
Denis Kataev b020f62250 MNT Apply pep8 to docs code (#12275) 2018-10-05 22:51:42 +08:00
Hanmin Qin 9b8fd0b0d0 DOC Correct default n_jobs & reference the glossary (#11808)
Also improves the glossary entry for n_jobs.
2018-08-18 19:57:10 +10: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
Andreas Mueller 8e2c2aa35d
raise DeprecationWarnings and FutureWarnings as errors (#11570)
Towards #11252.
In the end we'd like to make these errors so we can keep this cleaner in the future.
2018-07-17 15:31:45 -05:00
Nicolas Hug e860fd2d12 DOC parameters for gaussian_process and linear_model modules (#11415) 2018-07-15 16:06:05 +10:00
Tom Dupré la Tour 0fc7ce6bb8 [MRG+1] Add a stopping criterion in SGD, based on the score on a validation set (#9043) 2018-07-05 16:25:34 +02:00
Loïc Estève 20661b5018
TST: only run doctests on numpy 1.14. (#10835)
Fix doctests due to numpy 1.14 formatting changes.
2018-03-27 07:44:40 +02:00
Mohamed Ali Jamaoui 58f84694a8 DOC Add reference to the glossary in the warm_start parameter description of public APIs (#10699) 2018-02-26 20:21:17 +08:00
Matthias Feurer 57bcd075c3 DOC add docs about sgd and warmstarting (#10011) (#10087)
In particular, clarify for SGDClassifier, SGDRegressor,
PassiveAggressiveClassifier and PassiveAggressiveRegressor how
the attribute warm_start and the methods `fit` and `partial_fit`
interact.

Fixes #10011
2017-11-29 22:10:28 +11:00
Andreas Mueller c7ca0c58ee [MRG+1] FIX n_iter -> max_iter conversion in SGDClassifier (#9558)
* move n_iter -> max_iter conversion and warning into _check_params in SGDClassifier for proper deprecation.

* move validate_params so we have self._max_iter in _fit

* validate params in init because the tests wants me to

* better check for input validation

* fix deprecation tests to call _validate_params

* fix parameter validation in PA classifier

* fix max_iter in doctests

* pep8 /doctest whitespace

* more doctests

* maybe I'll find them all....
2017-08-16 16:25:53 -07:00
Dmitry Petrov b7ffff36d7 added examples to docstrings of PassiveAgressiveClassifier and PassiveAggresiveRegressor (#9373) 2017-07-16 14:18:47 +02:00
(Venkat) Raghav, Rajagopalan b6f8865b0a [MRG + 1 (rv) + 1 (alex) + 1] Add a check to test the docstring params and their order (#9206)
* add automatic test of docstrings for function / method signatures using numpydoc
2017-07-11 18:42:10 +02:00
Tom Dupré la Tour edeb3af217 Deprecate n_iter in SGDClassifier and implement max_iter (#5036) 2017-06-23 21:49:29 +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
Andrea Esuli 69c8382253 [MRG+1] Added 'average' option to passive aggressive classifier/regressor. (#4939) 2016-09-30 12:49:26 +10:00
KamalakerDadi f2e35411fa Added more versions of 0.17 2015-11-04 00:02:52 +01:00
KamalakerDadi d3a8f85c55 Added more documentation of version adds 2015-11-03 23:57:19 +01:00
Loïc Estève f63ba1d963 MAINT use super rather than calls to base class methods 2015-10-22 15:00:43 +02:00
trevorstephens ee7887970e add class_weight to PA cls, remove from PA reg
rebase on top of #4347

improve error message

update error msg
2015-06-06 08:57:17 -07:00
Andreas Mueller 0650d5502e DOC adding backlinks to docstrings 2015-06-03 00:24:04 -04:00
Andreas Mueller deeaf0ad35 change default to shuffle=True in SGDClassifier and friends. 2015-03-03 11:56:23 -05: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
trevorstephens 7c50e6c8eb various docstring fixes for web docs 2014-11-30 17:59:42 -08:00
Joel Nothman b3bdb08964 DOC fix formatting of attributes etc. in docstrings 2014-07-28 19:04:59 +10:00
Jaques Grobler 8861833ec9 DOC spellfixes 2013-06-29 16:18:23 +03: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 92138a4258 COSMIT pep8 2012-11-10 14:02:29 +00:00
Mathieu Blondel 34037306ab Remove transform from PassiveAggressive*.
It really only makes sense if the estimator supports L1-penalty.
2012-11-08 15:21:19 +09:00
Mathieu Blondel a3670c0fb4 Remove predict_proba from Perceptron and PassiveAggressiveClassifier.
Fixes #1336.
2012-11-07 14:18:34 +09:00
Mathieu Blondel 5706109df0 Document epsilon. 2012-11-06 16:08:11 +09:00
Mathieu Blondel 27be154754 Add tests for partial fit. 2012-11-06 01:07:44 +09:00
Mathieu Blondel 0f92da4914 Remove sample_weight and class_weight from PassiveAggressive*. 2012-11-06 00:53:50 +09:00
Mathieu Blondel 663a6aeb0a Better documentation for C. 2012-11-05 23:39:55 +09:00
Mathieu Blondel 7fadf53465 Fix see also. 2012-11-05 22:00:16 +09:00
Mathieu Blondel 6b6abcdbf9 Credit myself. 2012-11-05 21:58:42 +09:00
Mathieu Blondel d38c0d2fee Fix random_state in SGD. 2012-11-05 21:34:46 +09:00
Mathieu Blondel 0dcb61fc39 Test PA-II (regression). 2012-11-05 21:17:04 +09:00
Mathieu Blondel 8b73f406b9 Implement and test PA-II. 2012-11-05 20:13:20 +09:00
Mathieu Blondel 1589d5441c Do not expose C in SGDClassifier / Regressor. 2012-11-05 19:48:48 +09:00
Mathieu Blondel 65b035ff78 Fix many bugs and test PA-I. 2012-11-05 18:01:35 +09:00
Mathieu Blondel d9bb6ac8e9 Rename pa.py to passive_aggressive.py. 2012-11-05 16:29:12 +09:00