Yao Xiao
9e8f10ebff
TST Extend tests for `scipy.sparse.*array` in `sklearn/svm/tests/test_sparse` ( #27723 )
...
Co-authored-by: Mohit Joshi <46566524+work-mohit@users.noreply.github.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-11-18 16:05:01 +00:00
Julien Jerphanion
dfd299b19e
MAINT Remove soon-to-be deprecated scipy.sparse functions ( #26751 )
2023-07-12 18:34:01 +02:00
Adrin Jalali
42173fdb34
MNT add isort to ruff's rules ( #26649 )
2023-06-21 17:50:07 +02:00
Gleb Levitski
b32e5c7ab3
ENH Accept 'auto' option for 'dual' parameter in LinearSVC and LinearSVR ( #26093 )
2023-05-30 16:54:24 +02:00
Jérémie du Boisberranger
1a6f9b6414
TST Remove remaining tests now covered by common param validation test ( #24383 )
2022-09-07 14:50:31 +02:00
Thomas J. Fan
5de723d2f9
CI Fixes wheel building ( #22051 )
2021-12-24 14:06:21 +01:00
Thomas J. Fan
44c40b35d0
STY Removes trailing comma in lists for nicer black formatting ( #20627 )
2021-07-28 16:08:42 -07:00
Thomas J. Fan
82df48934e
MNT Applies black formatting to most of the code base ( #18948 )
2021-06-17 14:21:09 -04:00
Alihan Zihna
aa898de885
TST Changes assert to pytest style in svm, manifold, linear_model, feature_extraction, decomposition ( #19999 )
...
Changed the assert_raises, assert_raise_message, assert_warns in the following files:
* test_factor_analysis.py
* test_text.py
* test_bayes.py
* test_ransac.py
* test_sag.py
* test_locally_linear.py
* test_bounds.py
* test_sparse.py
* test_svm.py
2021-05-22 20:55:22 +02:00
shivamgargsya
a8d6361fe0
TST replace assert_warns* by pytest.warns in module svm/tests ( #19424 )
...
Co-authored-by: Shivam <shivam@ellipsishealth.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-02-11 11:45:44 +01:00
Thomas J. Fan
7cc0177f8e
MNT Replaces numpy alias with builtin typse ( #17687 )
...
* MNT Replaces numpy alias with builtin typse
* STY Lint error
2020-06-24 16:51:51 +02:00
Nicolas Hug
b92455a6b2
MAINT Deprecate all of utils.testing except all_estimators ( #15367 )
2019-10-28 17:28:56 +01:00
Samesh Lakhotia
8e8e60eaa3
MAINT Fix assert raises in `sklearn/svm/tests/` ( #14727 )
2019-08-23 13:27:33 +08:00
Tilen Kusterle
a8efe00876
EXA Use return_X_y=True with load_digits where appropriate ( #14359 )
2019-07-14 17:10:54 +02:00
Nicolas Hug
f3eb9d2206
[MRG] MNT removing assert_equal, etc -- continued ( #14232 )
2019-07-02 14:53:51 +10:00
Adrin Jalali
19c068a2ec
MNT towards removing assert_equal, etc ( #14222 )
2019-07-01 09:13:32 -04:00
Guillaume Lemaitre
c28ef9ef2a
DEP change the default of multi_class to 'auto' in logistic regression ( #13807 )
2019-05-22 09:57:15 -04:00
Guillaume Lemaitre
7896b21562
MNT change default of solver in LogisiticRegression ( #13805 )
2019-05-08 21:31:39 +08:00
Guillaume Lemaitre
28480f4cb2
DEP change the default of gamma in SVM ( #13801 )
2019-05-07 16:12:49 +02:00
Hanmin Qin
5c8167a159
FIX Correct the definition of gamma=`scale` in svm ( #13221 )
2019-02-24 18:34:43 +11:00
Hanmin Qin
a1c199f2b0
TST Manually scramble the indices in svm tests ( #12890 )
...
* [scipy-dev] manually scramble the indices
* [scipy-dev] review comment
2019-01-02 19:24:17 +01:00
Bartosz Michałowski
fa98a72dcc
MNT Replaced all occurrences of assert_true and assert_false with assert ( #12588 )
2018-11-28 09:16:26 +08:00
Hanmin Qin
43e3a02085
MNT Remove unused assert_true imports ( #12560 )
2018-11-11 11:08:37 +08:00
Yaroslav Halchenko
362cb3bcab
TST autoreplace assert_true(...==...) with plain assert ( #12547 )
2018-11-11 09:05:34 +08:00
Loïc Estève
7e8e3dec38
MNT: remove pytest imported twice.
...
Minor reorder of the imports as well.
2018-09-01 10:51:25 +02:00
Joel Nothman
7ed61a24fe
ENH add multi_class='auto' for LogisticRegression, default from 0.22; default solver will be 'lbfgs' ( #11905 )
...
* Change default solver in LogisticRegression
* This is an API change, not a feature
* Decrease numerical precision in LogisticRegression doctest
* ENH add multi_class='auto' for LR, default from 0.22
* No warning when binary
2018-08-26 23:00:02 +03:00
RankyLau
ac41ccf1f1
MNT modify test_sparse_oneclasssvm to be parametrized ( #11894 )
2018-08-23 10:54:02 +10:00
Andreas Mueller
a85eeb28ee
MRG/REL fixes /skips for 32bit tests ( #11879 )
2018-08-22 22:48:32 +03:00
Gaurav Dhingra
eed83790b0
ENH Change default gamma from 'auto' to 'scale' in SVC ( #10331 )
2018-03-10 10:39:21 +08:00
FarahSaeed
90adab947d
MAINT Removing 'random_state = 0' while intializing OneClassSVM ( #10241 )
...
and some PEP8 fixes
2017-12-04 11:14:58 +11:00
Konstantin Podshumok
9b2aac9e5c
[MRG + 1] [TST] (half-cosmetic) use less nose.tools import to simplify future transition to py.test ( #7384 )
...
* use less nose.tools import to simplify future transition to activly developing test suites/runners
* assert_equal -> assert_array_equal in test_feature_hasher_pairs_with_string_values
and one missed ImportError that should be replaced with AttributeError
* test for py2.6 compat with except AttributeError
* fix importing of SkipTest
* force using nose in python2.6 for now
* there was no assert_dict_equal in py2.6. but we can use assert_equal
although failed test will look a little bit ugly
* remove nose imports from doc/datasets
2016-10-07 12:46:52 -04:00
Alexandre Saint
c5f19a4794
Fix ConvergenceWarning's in tests
2016-08-30 15:45:29 +02:00
seales
0485ada58b
General spelling fixes
2015-12-16 09:46:42 -08: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
Andreas Mueller
31a5a5ff12
Fixed warnings for DataDimensionalityWarning, decision_function and decision_function_shape.
2015-10-14 15:38:07 -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
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
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
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
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
MechCoder
94bda65a75
FIX: Remove raw_coef_ attribute that eats up memory
2014-07-18 12:06:35 +02:00
mjbommar
724b63a16c
Replacing the test .todense() methods with .toarray()
2014-05-20 21:44:34 -04:00
dengemann
3a6c0344e9
ENH: more of this
2013-11-29 13:55:39 +01:00
Vlad Niculae
d65de5e76c
Fix libsvm seed when predict_proba in tests and examples
2013-07-27 19:50:25 +02:00
Vlad Niculae
89a58cdcad
FIX support random state in libsvm
2013-07-27 19:50:25 +02:00