Commit Graph

28 Commits

Author SHA1 Message Date
Eric Larson d63405f1bb
MNT Use non-deprecated SciPy imports (#21603) 2021-11-09 21:00:27 +01:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +02:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Juan Carlos Alfaro Jiménez 5a8bbf0195
CI fix some nightly job failures (#18711)
* CI Fix Travis CRON job failures

* MNT Trigger build [scipy-dev]

* FIX Explicit integer division in ArrayDataset64

* MNT Trigger build [scipy-dev]

* FIX Explicit integer division in BinaryTree

* MNT Trigger build [scipy-dev]

* CLN Apply suggested changes [scipy-dev]

* FIX Fix tests [scipy-dev]

* FIX Fix tests [scipy-dev]

* Trigger [scipy-dev]

Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-11-12 15:10:56 -05:00
Frans Larsson 762904d5bc
DOC Fix documentation of default values in sklearn.utils.optimize.py (#17881)
* update docstring according to guideline

* add space for consistency
2020-07-12 12:05:07 -04:00
Nicolas Hug 1931e142ed
Remove deprecated utils (#17133) 2020-05-20 22:03:54 +02:00
Rushabh Vasani 3743a55aed
Fix: Possible unnecessary iterations in Newton-CG algorithm (#16266) 2020-01-31 11:03:20 +11:00
SylvainLan 677f2c6208 DOC correct url for preprocessing (#15853) 2019-12-10 13:58:41 +01:00
Olivier Grisel 43d8dee07b MNT improve the convergence warning message for LogisticRegression (#15665) 2019-11-20 09:48:26 +11:00
Thomas J Fan d84785c5e1 [MRG] ENH: Add scaling to convergence warning for LBFGS (#15571) 2019-11-17 17:10:14 +11:00
Nicolas Hug c4f372c2de Deprecate utils.{optimize.newton_cg,random.random_choice_csc} (#15040) 2019-09-27 09:46:17 +02:00
Roman Yurchak 5b88807df9 MAINT Improve stacklevel for warnings in helpers (#14474) 2019-07-26 12:05:49 +02:00
Roman Yurchak 56a0ed1201 Use common convergence checks for lbfgs solver (#14250)
* Use minimize for lbfgs in logistic regression, huber, neural_network etc...
2019-07-12 13:34:24 +02: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
Tom Dupré la Tour 1107f223d5 use class_weight through sample_weight in LogisticRegression with liblinear 2016-05-25 14:54:02 +02:00
TomDLT 94eb61960a ENH add sag solver in LogisticRegression and Ridge 2015-09-10 13:28:02 -04:00
TomDLT 1174e586b8 DOC update whats_new 2015-05-21 12:45:06 +02:00
TomDLT c51f067652 ENH change func_grad_hess into grad_hess
FIX correct testing

FIX xrange to range for python 3
2015-05-19 16:21:12 +02:00
Vinayak Mehta 0cf41c8f3d Moved optimize test to a new file
simplified code

Used fhess_p

Added RandomState

Added tol=1e-10 to newton_cg

Added RandomState with seed 0
2015-03-24 12:29:05 +05:30
MechCoder 21a14fd82d FIX: Changed tolerance of newton-cg to be compliant with that of lbfgs 2014-07-22 16:57:41 +02:00
MechCoder 86dab1ea86 ENH: Added warnings for convergence, added support for l1 penalty if solver is liblinear 2014-07-22 16:57:41 +02:00
Manoj-Kumar-S ddb3395bff ENH: LogisticRegressionCV can now handle sparse matrices 2014-07-22 16:57:40 +02:00
Fabian Pedregosa 999c232859 cosmetic 2014-07-22 16:57:40 +02:00
Fabian Pedregosa 02c4a289fa iterate some more on line search 2014-07-22 16:57:40 +02:00
Fabian Pedregosa 228f5b043f Remove warning (not needed any more) 2014-07-22 16:57:40 +02:00
Fabian Pedregosa 1443465c56 Fallback for failing line search 2014-07-22 16:57:40 +02:00
Fabian Pedregosa 8cfa8ad6cc BUG when fit_intercept=False 2014-07-22 16:57:40 +02:00
Fabian Pedregosa 6e4f02c427 Implementation of logistic_regression_path.
This is mostly the code from Gael's logistic_cv branch. My work is only some
minor cleanup some added tests and benchmarking.
2014-07-22 16:57:39 +02:00