Commit Graph

137 Commits

Author SHA1 Message Date
Andreas Mueller 9bc4de8dae some fixes for sphinx and in examples 2015-03-02 12:50:53 -05:00
Andreas Mueller cd5166e82f make check_array convert object to float.
fix dtype check, add test. unfriend all multi-output estimators on facebook.

try to fix what is happening to y (by doing nothing to y)

make test work...

Make everything accept object y or say "invalid label"

fix multioutput linear models

add test for sensible error message.
2015-02-15 12:13:41 -05:00
Raghav R V b3fbccca38 FIX various mismatch between docstring and signature params
DOC max_iterations -> max_iter. Make it consistent with kmeans

MAINT Replace the deprecated dx parameter with d in the docstrings

MAINT Deprecation warning for max_iterations parameter.
2015-01-16 11:54:57 -05:00
trevorstephens 7c50e6c8eb various docstring fixes for web docs 2014-11-30 17:59:42 -08:00
Alexandre Gramfort 6744be298a Merge pull request #3646 from s8wu/multinomial_newtoncg
[MRG+2] Multinomial newtoncg
2014-10-16 09:04:18 +02:00
swu d826dec54c Modify shape check on coef matrix in _logistic_regression_path. 2014-10-09 21:28:10 -04:00
swu c3b0a692d6 Wrap _multinomial_loss_grad in lambda function for passing into lbfgs. 2014-10-05 21:31:24 -04:00
swu f8473aff51 Reformatted docstrings in multinomial functions. Refactored multinomial
functions to avoid duplicating code.
2014-10-05 19:59:31 -04:00
swu e7baa77d5a Minor doc and formatting changes. 2014-09-25 22:13:36 -04:00
swu c7a002aba6 Update whats_new.rst. Add contact information to logistic.py. 2014-09-21 12:26:00 -04:00
swu 862d82111e Modified hessp function in _multinomial_loss_grad_hess to compute r_yhat
in place.
Simplied conditional statements that branches based on solver +
multi_class input combinations.
Extended tests on multinomial LogisticRegression to include newton-cg
solver case.
Updated doc string of LogisticRegression to include newton-cg solver in
multinomial case.
2014-09-20 15:11:31 -04:00
MechCoder 74857521ac FIX: Make sure LogRegCV with solver=liblinear works with sparse matrices 2014-09-18 19:00:19 +02:00
swu 1ec01ea01b Modified parameter description in docstring of
_multinomial_loss_grad_hess.
2014-09-10 19:30:53 -04:00
swu cdfa0ce73c Removed some unnecessary lines and reformatted for consistency in _multinomial_loss and _multinomial_loss_grad_hess. 2014-09-08 22:32:38 -04:00
swu 3e2ce556bb Merge remote-tracking branch 'upstream/master' into multinomial_newtoncg 2014-09-06 18:31:35 -04:00
swu f41352c861 Fixing more pep8 errors. 2014-09-06 14:37:30 -04: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
swu 2c25322708 Fixing docstring on _multinomial_loss. 2014-09-01 21:15:41 -04:00
swu 8559fbcd47 Fixed pep8 errors. Added docstring for _multinomial_loss. 2014-09-01 21:09:49 -04:00
swu 273fdc0f6c Add comments to _multinomial_loss_grad_hess function. 2014-09-01 12:56:49 -04:00
swu 6641781e1d Adding newton-cg solver for multinomial case. 2014-09-01 11:58:09 -04: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 34a4517983 ENH: Improved verbosity and denesting 2014-08-26 20:48:23 +02:00
MechCoder 959a4ac698 MAINT: Remove BaseLibLinear for LogisticRegression 2014-08-26 13:58:07 +02:00
MechCoder 55602361c1 DOC: Changed docstring style for optional arguments 2014-08-21 17:37:38 +02:00
MechCoder a92cd805af FIX: PEP8 Errors and unused imports 2014-08-21 17:37:38 +02:00
MechCoder d80ef50b11 DOC: Improved documentation and error messages 2014-08-21 17:37:38 +02:00
MechCoder 89226b69b4 COSMIT: Made the following changes
1. Removed true from 'true multinomial loss'
2. Replaced OvA with OvR
3. Update whatsnew.rst
2014-08-21 17:37:38 +02:00
MechCoder b2e0e6e982 TST: Tests for multinomial logistic regression 2014-08-21 17:37:38 +02:00
MechCoder 4e7912756b COSMIT: Minor doc fixes 2014-08-21 17:37:37 +02:00
MechCoder 6b5b9e3eed ENH: Added multinomial option to LogisticRegressionCV 2014-08-21 17:37:37 +02:00
MechCoder 4cd177758f ENH: Merge MultinomialLR into LR with multi_class='multinomial' 2014-08-21 17:37:37 +02:00
MechCoder 5483cb2e87 FIX: Change alpha to 1./c 2014-08-21 17:37:37 +02:00
MechCoder d5ceb89ed5 ENH: Add support for class weights 2014-08-21 17:37:37 +02:00
Lars Buitinck 13ca2b2859 ENH multinomial logistic regression using L-BFGS 2014-08-21 17:37:37 +02:00
Joel Nothman 1491c1cd06 DOC remove backticks from around attribute name + PEP8 2014-08-02 20:19:08 +10: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 ad5773cfca TST: Added test to check ConvergenceWarning 2014-08-01 12:15:57 +02:00
MechCoder c8c72fd96e ENH: Return n_iter_ from liblinear and print convergence warnings 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
MechCoder 5e028a9928 Improve docstring of the LogRegCV model 2014-07-23 17:32:56 +02:00
MechCoder 4de4849e8a FIX: Fixes for the cross_validation failure 2014-07-23 13:24:41 +02:00
MechCoder 67585f6e6f MAINT: Improve documentation and coverage 2014-07-22 17:28:16 +02:00
MechCoder a52174b22c FIX: Changes due to recent refactoring of the check functions 2014-07-22 16:57:41 +02:00
MechCoder c8540df986 FIX: Add DataConversionWarning 2014-07-22 16:57:41 +02:00
MechCoder f7db8cdf8f FIX: Liblinear solver for LogisticRegressionCV now works for class_weight==auto 2014-07-22 16:57:41 +02:00
MechCoder 0634ddf500 FIX: Class weights are computed for each OvA 2014-07-22 16:57:41 +02:00
MechCoder 8eb3d30ea8 COSMIT: Utils imports are together 2014-07-22 16:57:41 +02:00
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