Commit Graph

516 Commits

Author SHA1 Message Date
MechCoder 9d8d7e426c Replace GETC to SAMPLE_WEIGHT 2015-10-23 00:07:02 -04:00
MechCoder 41cbfded7c Add check for sample_weights 2015-10-23 00:06:07 -04:00
MechCoder 80e22b3ddf Patch liblinear for sample_weights in LogisticRegression(and CV) 2015-10-23 00:00:31 -04:00
Gael Varoquaux 744d161d37 Merge pull request #5431 from hlin117/nan-targets
[MRG + 2] Add check to regression models to raise error when targets are NaN
2015-10-22 09:36:12 +02:00
hlin117 7b3da77ca0 #5322: Removing unused ConvergenceWarning import in svm/base.py 2015-10-21 00:07:53 -05:00
hlin117 52a6acc15c #5322: Addressing @MechCoder's changes 2015-10-21 00:04:42 -05: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
hlin117 b1a1aa8395 #5322: Resolving errors for SVR and NuSVR 2015-10-20 10:36:47 -05:00
Raghav R V e3afc0e8c9 MAINT move custom error/warning classes into sklearn.exceptions
ENH NonBLASDotWarning -> EfficiencyWarning; Improve error message
DOC Add exceptions module to modules/classes.rst
MAINT Move ConvergenceWarning, UndefinedMetricWarning et al into exceptions
MAINT Remove ChangedBehaviorWarning from base
DOC/FIX Improve DataConversionWarning's docstring
2015-10-19 22:35:35 +02:00
Raghav R V a87011262a FIX precision to float64 across the codebase 2015-10-16 11:20:29 +02:00
Andreas Mueller 31a5a5ff12 Fixed warnings for DataDimensionalityWarning, decision_function and decision_function_shape. 2015-10-14 15:38:07 -04:00
Jiali Mei 85223b9bcc a common test to check if classifiers fail when fed regression targets 2015-10-14 14:46:13 -04:00
Vighnesh Birodkar 735dd1fdca Fix warnings during tests 2015-10-08 14:52:21 -04:00
Vighnesh Birodkar 2f099334f9 MAINT deprecate 1d input arrays for all estimators
Passing 1D arrays to check_array, without setting `ensure_2d` to false now
raises a deprecation warning before reshaping it. This will later throw an
error.

All Scaler classes also throw warnings when 1D arrays are passed.

All unit tests/doctests are modified to ensure that no 1D arrays are passed,
except in explicit 1D array tests where the warnings have been silenced.

Additional tests are also included which check for different 1D array cases.

2D array tests with one samples and one features are also added and where
they failed, `check_array` call has been modified to give a more useful error
message
2015-09-09 15:49:58 +02:00
Olivier Grisel 3fc4ff3080 Merge pull request #5098 from olologin/OneClassSvm_sparse_test
[MRG + 1] OneClassSVM sparsity regression test added
2015-08-27 10:40:32 +02:00
Ganiev Ibraim 617baa1b13 Style fix 2015-08-24 23:33:17 +03:00
Ganiev Ibraim af587ec768 Removed unnecessary class checks 2015-08-23 16:30:53 +03: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
Ganiev Ibraim 088ee0ebcd deleted useless assert 2015-08-13 23:26:11 +03:00
Ganiev Ibraim 78bd87b021 OneClassSVM sparsity regression test added 2015-08-08 22:03:59 +03:00
Andreas Mueller 7a3a9878f1 Fix memory access error in OneClassSVM 2015-08-06 13:11:57 -04:00
Andreas Mueller 2afbc0f7e2 FIX make sure y is 1d in svm regressor, add common test for regressor shapes. 2015-07-31 10:34:39 -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
Phil Roth 0e15b030d0 Add a space to an error message 2015-07-11 11:42:52 -05:00
Phil Roth 5aa5a961bc Correctly match penalty and loss with arguments 2015-07-11 11:42:11 -05:00
Joel Nothman d517846cc5 FIX #4902: SV*.predict_proba visible before fit 2015-07-06 12:35:47 +10:00
Alexandre Gramfort fcf9cb4150 Merge pull request #4835 from tw991/feature2
[MRG] fix SVM can be tricked into running proba() #4791
2015-06-10 06:11:37 -07:00
jnothman 8b44fa197d Merge pull request #4824 from amueller/testing_less_warnings
minor fixes to the tests, don't raise as many warnings in the test suite
2015-06-09 22:30:22 +10:00
= 4c4bca1715 fix SVM can be tricked into running proba() #4791 2015-06-08 16:48:42 -04: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 f0f174b74f ENH minor fixes to the tests, don't raise as many warnings in the test suite 2015-06-05 13:50:46 -04: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
Gael Varoquaux 01aff46402 Merge pull request #4347 from amueller/class_weight_auto
[MRG+1] Use more natural class_weight="auto" heuristic
2015-06-01 16:15:37 -04:00
Andreas Mueller eedc1cddab Use more natural class_weight="auto" heuristic 2015-06-01 12:49:53 -04:00
Andreas Mueller a8626b36a6 TST/COSMIT remove nose call boilerplate 2015-05-28 14:54:01 -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
Andreas Mueller 188fb11968 COSMIT use consistent shape description in docstring. 2015-04-01 10:24:58 -04:00
Andreas Mueller d89c215013 Add tags to classifiers and regressors to identify them as such. 2015-03-31 19:59:49 -04:00
Andreas Mueller b1ddbf4695 Fixes to sparse decision_function, rebase fixes. 2015-03-26 11:44:39 -04:00
Rob Zinkov 0dc37f5f73 Adding sparse support for decision function
Adding test for decision_function on sparse matrices

Fixing typos

Fix Memory Leak

PEP8 fixes

COSMIT PEP8

Fixed class_weight_label problem

Fixed label problem in tests

renamed label_ to classes_

Fixed OneClass bug

Adding kernel tests for sparse matrices

Pass dense data to decision function

Don't check precomputed kernel

use safe_sparse_dot in test, regenerate cython

create a core-dump by testing the binary case... hurray?
2015-03-26 11:35:36 -04:00
Raghav R V cd2ee7e454 MAINT docstring --> comments to prevent nose from using doc in verbose mode 2015-03-21 11:16:49 +05:30
Olivier Grisel 119bc20abb Merge pull request #4377 from vortex-ape/intercept_scaling
[MRG + 1] Fixes #4374: LinearSVC(intercept_scaling=0) breaks
2015-03-20 12:56:11 +01:00
Olivier Grisel 7328763f48 Merge pull request #4416 from vortex-ape/kernel_precomputed
[MRG + 1] Added docstrings for kernel = "precomputed"
2015-03-20 11:04:02 +01:00