Commit Graph

145 Commits

Author SHA1 Message Date
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
Andreas Mueller 6d4bcda876 ENH refactor OVO decision function, use it in SVC for sklearn-like decision_function shape 2015-06-05 13:14:45 -04:00
Andreas Mueller 0650d5502e DOC adding backlinks to docstrings 2015-06-03 00:24:04 -04:00
Andreas Mueller eedc1cddab Use more natural class_weight="auto" heuristic 2015-06-01 12:49:53 -04:00
Anthony Erlinger fafbddbb3e Improve wording of SVM `crammer_singer` doc following PR feedback.
https://github.com/scikit-learn/scikit-learn/pull/4631
2015-04-27 20:46:05 -04:00
Anthony Erlinger 20b188c06c Minor docstring fixes to svm/classes.py 2015-04-24 15:38:29 -04:00
Andreas Mueller 3f0fb6bbc4 DOC fix libsvm docstring consistency 2015-04-22 20:58:14 -04:00
Loïc Estève a13a5859e8 DOC remove sphinx warnings when generating the doc
and fixes a few other doc problems while I was at it.

The main take-home message is to remember that you need a backslash when
your parameter type description exceeds one line.
2015-03-18 15:49:30 +01:00
Raghav R V 354c35cd5b FIX Make LinearSVC/LinearSVR support the deprecated l1/L1, l2/L2 2015-02-25 19:12:27 +05:30
Andreas Mueller 8ef0b9a82f fixes in GMM, TSNE, MDS, LSHForest, exclude SpectralEmbedding 2015-02-10 18:34:31 -05: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
Mario Michael Krell cee22175c2 DOC typos and consistency in SVM docstrings 2015-01-28 12:27:06 +01:00
Andreas Mueller c970fb51e7 COSMIT spelling 2015-01-15 15:09:35 -05:00
Sylvain Zimmer 14fe83c6af Fix typo in SVM docstrings 2014-12-24 00:07:18 -05:00
Lars Buitinck 73283e98d1 MAINT remove probability kwarg from SVR and NuSVR
These don't have predict_proba, so setting it to true makes no sense.
2014-12-17 10:07:48 +01:00
Fabian Pedregosa 7e1a0eee08 ENH LinearSVR using liblinear code
Fixes gh-3877.
2014-12-03 20:44:04 +01:00
Lars Buitinck bb3705c4fc DOC fix (Nu)SVR attribute shapes in docstring
Fixes #3673. Shapes were probably copy-pasted from (Nu)SVC.
XXX the attributes actually have strange shapes...
2014-10-12 17:24:38 +02:00
MechCoder 891839cd8d DOC: Explain prediction when decision_function is zero
LogisticRegression and liblinear's predictions differ when the
decision function is zero. Explain why and what to do in that case.

Fixes #3600 (by documenting the won't fix status).
2014-09-05 13:46:44 +02:00
MechCoder a7ccbb8096 MAINT: Made the following changes
1. Use a single loop for both ovr and multinomial conditions
2. Better warning messages for penalty and loss conditions
3. Convergence warnings print only if verbose > 0
4. Used check_X_y instead of check_X
2014-08-30 12:26:40 +02:00
MechCoder 959a4ac698 MAINT: Remove BaseLibLinear for LogisticRegression 2014-08-26 13:58:07 +02: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
MechCoder 3edfa3cf17 Max iter param in Liblinear is now softcoded 2014-08-01 12:15:57 +02:00
Joel Nothman b3bdb08964 DOC fix formatting of attributes etc. in docstrings 2014-07-28 19:04:59 +10:00
Lars Buitinck 86f8577826 DOC: clear up the big elastic net confusion (I hope)
Several users have asked for LogReg w/ E-net (e.g. #3023). Did some
additional copyediting.
2014-04-02 18:54:24 +02:00
Olivier Grisel a8089b0194 FIX: errors in kernel parameters for OneClassSVM 2013-11-12 14:05:02 +01:00
Joel Nothman a186bc434b DOC fix comment on svm probability param 2013-07-29 14:02:22 +02:00
Olivier Grisel 3be787e33a Add concrete __init__ for LinearSVM 2013-07-28 18:45:40 +02:00