Commit Graph

171 Commits

Author SHA1 Message Date
Tashay Green 0cf8a168dc DOC references for probabilistic SVC (#12859) 2019-01-13 21:24:09 +11:00
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
daten-kieker 2ab196149f Resurrected PR #5224 from @andylamb. (#12427) 2018-10-22 11:31:44 -04:00
TakingItCasual 1e052e9da9 Converting http to https (2)... (#12292) 2018-10-04 23:06:14 +02:00
vqean3 5ec0001e93 DOC `sample_weight` removed from the docs in `SVR` class. (#12046) 2018-09-12 09:27:55 +10: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
Adrin Jalali 0395b326d9 DOC fix SVC and NuSVC coef_ shape in the docstring (#11660) 2018-07-24 11:05:36 +10:00
Benn Roth c4615c5046 DOC: Remove redundant documentation for one-class SVM (#11531) 2018-07-16 06:30:10 +02:00
Georgi Peev 91bfca6938 DOC: reduce the tolerance in SV examples to get cross-platform stability (#11289) 2018-07-14 21:19:36 +02:00
Nicolas Hug 357c05ce80 DOC/TST Docstring checks for svm and covariance modules (#11405) 2018-07-03 12:32:52 +10:00
Joel Nothman a7e17117bb [MRG] Large sparse matrix support (#11327) 2018-06-25 15:15:11 +00:00
Joel Nothman 14764061f8
[MRG] DOC fix some sphinx warnings (#11241) 2018-06-21 20:43:21 +10:00
Hanmin Qin 7db0ca4081 DOC Improve multi-class strategy doc in SVC
following @amueller 's comment
2018-05-20 09:12:31 +08:00
Somya Anand 593bf65bd4 DOC Improve description of decision_function_shape in SVC (#10804) 2018-05-03 21:09:23 +08: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
Gaurav Dhingra eed83790b0 ENH Change default gamma from 'auto' to 'scale' in SVC (#10331) 2018-03-10 10:39:21 +08:00
Albert Thomas 49da6c87dd [MRG+1] Common tests for outlier detection estimators (#9270) 2018-02-17 22:40:03 +11:00
Nicolas Goix 0788cd0c6a [MRG+2] ENH/FIX Outlier detection algorithms API consistency (#9015)
Consistent handling of decision_function, score_samples and contamination
2018-02-06 06:57:44 +11:00
Joel Nothman c3bdc0a89a
DOC clean up assorted type specifications (#10441) 2018-01-11 09:11:17 +11:00
RAKOTOARISON Herilalaina 72fb54c767 [MRG+1] - No private setting in __init__ apart from parameters (#9450) 2017-12-13 12:19:56 +01:00
Albert Thomas 48afa9d85d [MRG] Deprecate random_state in OneClassSVM and add clarifications in docstrings and doc (#9703) 2017-09-08 08:38:20 +10:00
Dmitry Petrov 87587915a2 added examples to docstrings of LinearSVC and LinearSVR (#9375) 2017-07-16 14:19:35 +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
Mikhail Korobov dfe5b0b9b4 DOC fixed OneClassSVM.coef_ documentation (#9200)
* DOC fixed OneClassSVM.coef_ documentation

* DOC fixed OneCLassSVM dual_coef_ and intercept_ docs.
2017-06-23 08:47:35 +10:00
Albert Thomas 9525461da2 [MRG+1] DOC clarify OneClassSVM decision_function docstring (#9048)
* clarify ocsvm decision_function docstring

* take into account agramfort comment
2017-06-08 14:39:57 +02:00
Guillaume Lemaitre 8981b25c17 FIX/PEP8 (#8718) 2017-04-07 07:32:50 -04:00
Vathsala Achar ebcfcafcea [MRG+1] OneClassSVM predict now returns int (#8711)
* Added predict method to class OneClassSVM

- This method overrides the default behaviour to only return integer class values.

* Test for the change in OneClassSVM predict method

- small addition to test that the predicted result is integer

* Changed test to check for intp datatype

* Updated whats new
2017-04-06 18:42:34 -04: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
Andreas Mueller 5c4b1bb231 [MRG+1] Housekeeping Deprecations for v0.19 (#7927)
* remove stuff to be removed 0.19

* more changes

* remove classes from 0.19 whatsnew

* remove _LearntSelectorMixin

* remove ProjectedGradientNMF, load_lwf_*

* minor fixes

* remove more copy from logistic regression path

* remove lda, qda from __init__.__all__

* remove pg solver in nmf from tests etc

* remove class_weight="auto" from tests

* doctest change for decision_function_shape="ovr"

* remove transfrom from tree test, minor fixes to tree tests

* some fixes in the tests

* undo changes in functions which still allow 1d input...

* also allow 1d in scale

* more test fixes...

* last test fixes in forest and tree

* svm default value change doctest failures

* pep8

* remove more class_weight="auto" stuff

* minor cosmetics in docstrings deprecated / removed behavior.

* say that store_covariance has been moved to __init__ in discriminant_analysis
2016-12-09 12:43:38 -05:00
Joel Nothman 8570622a44 [MRG+1] DOC insert spaces before colons in parameter lists (#7920)
* DOC insert spaces before colons in parameter lists

Complies with numpydoc to improve rendering and automatic quality
assurance such as #7793. Affects listings of Parameters Attributes,
Returns.

Performed with the help of:

    grep -nE '^(    )+[a-zA-Z][a-zA-Z0-9_]*: ' sklearn -R | grep -v -e
    externals -e tests | grep -v -e default: -e else: -e Warning: -e Note:
    -e TRAIN: -e Default: -e True: -e False: -e DOI: -e In: | gsed
    's|\([^:]*\):\([0-9]*\):\([^:]*\):\(.*\)|--- a/\1\n+++ b/\1\n@@ -\2,1
    +\2,1 @@\n-\3:\4\n+\3 :\4|' | git apply --unidiff-zero -

* DOC fix numpydoc format for param
2016-11-25 10:59:22 +01:00
Raghav RV 2a9492b38f [MRG] MAINT Removing more deprecated stuff for v0.18 (#5528)
* MNT Removing more deprecated stuff for v0.18

* MNT+TST Remove support for loss='l2'

* MNT Remove support for precompute='auto' for ElasticNet

* FIX/TST precompute=auto should raise a generic message
2016-08-03 22:16:04 +10:00
James Fiedler e4b837cc66 Removed unused imports 2016-07-29 19:30:23 -05:00
Imaculate 03ec6c91b4 [MRG] Added sample weight parameter to LinearSVC.fit (#6939) 2016-07-11 22:06:28 +10:00
Imaculate 3cc7fead33 [MRG+1] Added support for sample_weight in linearSVR, including tests and documentation. Fixes #6862 (#6907)
* Make KernelCenterer a _pairwise operation

Replicate solution to 9a520779c2 except that `_pairwise` should always be `True` for `KernelCenterer` because it's supposed to receive a Gram matrix. This should make `KernelCenterer` usable in `Pipeline`s.

Happy to add tests, just tell me what should be covered.

* Adding test for PR #6900

* Simplifying imports and test

* updating changelog links on homepage (#6901)

* first commit

* changed binary average back to macro

* changed binomialNB to multinomialNB

* emphasis on "higher return values are better..." (#6909)

* fix typo in comment of hierarchical clustering (#6912)

* [MRG] Allows KMeans/MiniBatchKMeans to use float32 internally by using cython fused types (#6846)

* Fix sklearn.base.clone for all scipy.sparse formats (#6910)

* DOC If git is not installed, need to catch OSError

Fixes #6860

* DOC add what's new for clone fix

* fix a typo in ridge.py (#6917)

* pep8

* TST: Speed up: cv=2

This is a smoke test. Hence there is no point having cv=4

* Added support for sample_weight in linearSVR, including tests and documentation

* Changed assert to assert_allclose and assert_almost_equal, reduced the test tolerance

* Fixed pep8 violations and sampleweight format

* rebased with upstream
2016-06-23 16:02:11 +02:00
krishnakalyan3 6064327f2f fix Indentation and redundant info 2016-06-02 15:32:57 +02:00
krishnakalyan3 0f76f18418 fix Indentation and redundant info 2016-06-02 15:28:36 +02:00
krishnakalyan3 18092fd505 fix balance 2016-06-02 15:00:40 +02:00
Andreas Mueller fb123ed24b More doc fixes. Latex builds again. 2015-11-20 16:30:45 -05:00
KamalakerDadi f2e35411fa Added more versions of 0.17 2015-11-04 00:02:52 +01:00
Raghav R V fffa98ad1f MAINT Remove deprecated stuff that will be removed in 0.18
MAINT Remove support for gamma == 0.0
MAINT Remove support for uppercase values for loss and penalty
2015-10-20 18:24:35 +02:00
Jiali Mei 85223b9bcc a common test to check if classifiers fail when fed regression targets 2015-10-14 14:46:13 -04:00
Lars edf077ccd6 Merge pull request #5050 from AnishShah/issue5043
DOC Fix documentation of callable kernel
2015-08-14 18:43:24 +02:00
Anish Shah a7081d797f [issue #5043] fix documentation of callable kernel 2015-08-14 15:40:03 +05:30
Andreas Mueller 7a3a9878f1 Fix memory access error in OneClassSVM 2015-08-06 13:11:57 -04:00
hlin117 c1c45487c5 fixed newline errors in documentation for LinearSVC and LinearSVR 2015-07-19 00:07:11 -07:00
hlin117 bd43b8e732 fixed newline errors in documentation for NuSVC 2015-07-19 00:07:11 -07:00
hlin117 8de86edbb1 fixed newline errors in documentation for SVC 2015-07-19 00:07:11 -07:00
Lars Buitinck 567a956338 Merge branch 'pr/4714' + pep8 fixes
Conflicts:
	doc/modules/model_persistence.rst
	doc/modules/pipeline.rst
	doc/modules/svm.rst
	doc/tutorial/basic/tutorial.rst
	doc/tutorial/statistical_inference/supervised_learning.rst
	sklearn/svm/classes.py
2015-06-08 11:31:51 +02:00
Shivan Sornarajah 41788c353b Changed SVM to use gamma='auto' by default. Deprecated gamma=0.0. 2015-06-05 22:47:43 +01:00