Commit Graph

143 Commits

Author SHA1 Message Date
Thomas J. Fan 02fa8f1adb
ENH Deprecates _pairwise attribute and adds pairwise to estimator tags (#18143) 2020-10-07 21:53:36 +11:00
Thomas J. Fan 8731cd732b
ENH Uses _validate_data in other methods in the neural_network module (#18514) 2020-10-07 11:35:47 +02:00
Guillaume Lemaitre 21569e719c
TST Common test preserve dtype (#18054)
Co-authored-by: Sebastian Kießling <sebkies@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-09-08 10:13:53 +02:00
Juan Carlos Alfaro Jiménez 2fa4272b1d
DOC Fix documentation of the base module (#17548)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-21 21:48:05 +02:00
Thomas J. Fan 7647ed3e77
MNT Only reset on the first call to partial_fit in birch (#18014) 2020-08-21 08:51:19 -04:00
Juan Carlos Alfaro Jiménez 6c3e17989a
DOC Specify the meaning of y=None in fit_transform (#17366) 2020-05-27 14:35:00 -07:00
Thomas J Fan 7117a63137
MNT Removes voting classifer mention (#17196) 2020-05-13 14:49:47 -04:00
brigi 865069c234
DOC Fix documentation of default values in base, birch (#16195)
* Fix documentation of default values in birch

* fix input and output description as suggested

* fix typo

Co-authored-by: Brigitte@home <unger@nue.tu-berlin.de>
2020-05-10 12:14:18 -04:00
Thomas J Fan f23b940dca
FIX Adjusts html_repr based on configuration (#17093)
* ENH Adjusts html_repr based on configuration

* CLN Returns None instead

* CLN Uses property hack

* CLN Address comments
2020-05-05 09:58:10 +02:00
Thomas J Fan ee2508ce45
ENH Adds HTML visualizations for estimators (#14180) 2020-04-30 08:31:58 +10:00
Nicolas Hug fbae1edfd8
API kwonly args in base (#17006) 2020-04-23 10:20:52 +02:00
Nicolas Hug 089c8a17a1
[MRG] MNT requires_y tag with y=None validation (#16622) 2020-04-22 22:41:45 +10:00
Nicolas Hug 2d03d781a9
MNT simplify xfail check marking logic (#16949)
Co-Authored-By: Roman Yurchak <rth.yurchak@gmail.com>
2020-04-17 13:44:09 -04:00
Nicolas Hug d205638475
MNT Introduction of n_features_in_ attr with _validate_data mtd (#16112) 2020-02-29 09:05:11 -05:00
Roman Yurchak 1c1f273d10
ENH XFAIL in common tests with estimator tags (#16502) 2020-02-20 22:28:54 +01:00
lopusz e1c7649469
DOC Cleaning parameter spec in docstrings of base module (#16284) 2020-01-31 06:43:22 -05:00
olicairns 3ae671e07b ENH Improve error message in clone when passed class instances (#16189) 2020-01-27 09:21:09 +01:00
Nicolas Hug 4256542b10 MNT Removed deprecated attributes and parameters (#15803) 2019-12-09 22:17:06 +08:00
m.fab 98cb91b545 DOC numpydoc validation for VotingClassifier (#15497) 2019-11-17 19:29:38 +01:00
Yu-Hang "Maxin" Tang 8360786895 ENH Allowing Gaussian process kernels on structured data (#15557) 2019-11-15 16:07:36 -08:00
Richard Payne 6488110706 DOC Docstring fix for DecisionTreeClassifier and DecisionTreeR… (#15483) 2019-11-05 23:36:57 +01:00
Tola A b862c2555b DOC Numpydoc validations to `MinMaxScaler` (#15448) 2019-11-04 12:03:39 +01:00
Paolo e5429cb7f1 DOC Fix docstrings to Numpy format for IsolationForest (#15454) 2019-11-02 18:53:21 +01:00
Tola A 9c2c263f9b DOC numpydoc validations for LogisticRegression (#15445) 2019-11-02 15:38:50 +01:00
Nicolas Hug e947689c90 MAINT Make files private for sklearn.metrics and sklearn.metrics.cluster (#15306) 2019-10-23 15:20:28 +02:00
Adrin Jalali 0eebade264 DOC docstring (shape= -> of shape) (#14640) 2019-10-02 20:54:32 -04:00
Andreas Mueller a6103d3faf MAINT remove inheriting from object (#14891) 2019-09-05 14:41:29 -04:00
Thomas J Fan 14f5302b70 DOC Link items explictly (#14817)
* DOC Link items explictly

* STY

* DOC Link another
2019-09-05 11:37:05 +02:00
Andreas Mueller 03ea20db0f Fix mixin inheritance order, allow overwriting tags (#14884) 2019-09-05 10:13:30 +02:00
Joel Nothman 0279108bef
API don't default get_params output to None in the future (#14464) 2019-07-28 23:37:47 +10:00
Roman Yurchak 78ac1ab026 TST Add requires_positive_y estimator tag (#14095) 2019-06-25 01:09:38 +10:00
Trevor Stephens d84a8d17af ENH Binary only estimator checks for classification (#13875)
Also adds the binary_only estimator tag
2019-06-12 10:31:18 +02:00
Agamemnon Krasoulis 19192c0427 MAINT Replace manual checks with `check_is_fitted` (#13013) 2019-05-07 14:54:56 +10:00
Nicolas Hug 1fe00b5894 [MRG + 1] Fix pprint ellipsis (#13436) 2019-04-18 11:15:41 +02:00
Aditya Vyas 301076e77b MAINT Replace absolute imports with relative imports (#13653) 2019-04-17 12:45:14 -04:00
Hanmin Qin 8f35843d98
MNT Update deprecation message in RegressorMixin.score to tell users how to avoid the warning (#13477) 2019-03-29 15:22:03 +08:00
Hanmin Qin 85206250ce DOC Typo metric.make_scorer -> metrics.make_scorer 2019-03-15 20:42:59 +08:00
Hanmin Qin 73e2ecf7ce
API Change default multioutput in RegressorMixin.score to keep consistent with metrics.r2_score (#13157) 2019-03-15 17:47:50 +08:00
Roman Yurchak cdfca8cba3 FIX Hotfix Skip non deterministic tests on PowerPC (#13323) 2019-02-28 11:16:52 +01:00
Hanmin Qin f8b108d0c6 MNT Redundant code in base.py (#13233) 2019-02-25 11:12:44 +01:00
Andreas Mueller ab2f539a32 API: Estimator tags (#8022) 2019-02-23 22:54:41 +01:00
Rajdeep Dua be5d3eab97 MNT Remove base._first_and_last_element (#13137) 2019-02-13 09:24:15 +08:00
Roman Yurchak 0e3bb17e62 MAINT Run pyupgrade following Python2 deprecation (#12997) 2019-02-08 20:13:34 +08:00
Finn O'Shea 39db9c4eca DOC clarification to base.OutlierMixin.fit_predict method docstring (#12954) 2019-01-13 21:31:54 +11:00
Rüdiger Busche d300f406ae MAINT Simplify super() calls (#12812) 2019-01-10 22:27:06 +01:00
Andreas Mueller 952ef6637a MRG Drop legacy python / remove six dependencies (#12639) 2019-01-03 15:50:05 +02: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
Adrin Jalali 2bd87f6ed8 Remove python < 3.5 from CI (#12746) 2018-12-14 10:53:12 +01:00
Peter 24e46410bd FIX: clone behavior for estimator types (#12585)
Fixes #12521
2018-11-15 07:59:09 +11:00
Pradeep Reddy Raamana 1a61f50577 DOCS: noting y is present in one-class fit methods merely for API consistency (#11939) 2018-08-30 10:05:41 +10:00