Commit Graph

1612 Commits

Author SHA1 Message Date
Alexandre Gramfort 1c5d6d75c4 Merge pull request #5274 from MechCoder/liblinear_samples_weights
[MRG+1] Patch liblinear for sample_weights in LogisticRegression(and CV)
2015-10-23 10:23:34 +02: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
Louis Tiao 4f7e5fffb7 Fixed typo.. 2015-10-23 11:45:35 +11:00
Andreas Mueller 4eee24a60f Merge pull request #5517 from lesteve/replace-base-class-method-calls-by-super
[MRG] Use super rather than calls to base class methods
2015-10-22 18:30:25 +02:00
Loïc Estève f63ba1d963 MAINT use super rather than calls to base class methods 2015-10-22 15:00:43 +02:00
Andreas Mueller 5d3bb933e0 Merge pull request #5008 from TomDLT/logistic_multiclass
[MRG+1] fix logistic regression class weights
2015-10-22 12:44:37 +02: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
TomDLT d439dc4d9e FIX class_weight in LogisticRegression and LogisticRegressionCV 2015-10-21 17:41:39 +02:00
Andreas Mueller ee0fd9aa96 Merge pull request #5446 from deepcharles/charles1
Empty `residues_` in `LinearRegression`: docstring updated
2015-10-21 14:11:26 +02:00
Arnaud Rachez 5db2adf93c MAINT Removed deprecated stuff. 2015-10-21 10:24:23 +02:00
hlin117 6df1fe27c1 #5322: Added check for MultiTaskElasticNet and MultiTaskLasso 2015-10-20 10:36:47 -05:00
Gael Varoquaux d4e9d7991a Merge pull request #4826 from rvraghav93/exceptions
[MRG + 1] move custom error/warning classes into sklearn.exceptions (and move `deprecated` away from `utils.__init__.py`)
2015-10-20 10:48:44 +02: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
Gael Varoquaux 74cfca88cf Merge pull request #5452 from MaryanMorel/issue_5313
[MRG+2] Deprecate residues_ in LinearRegression
2015-10-19 22:19:30 +02:00
MaryanMorel 4f580e60bb Deprecate residues_ in LinearRegression
Residues can be empty if the rank of X does not satisfy the
conditions described in scipy.linalg.lstsq documentation.
As residues are not that useful (i.e. we're not doing
stat testing), this property is deprecated and will be
removed in sklearn 0.19.
2015-10-19 17:28:52 +02:00
Charles Truong 8deaf31e64 Fixed the docstring (issue #5313)
Empty "residues_" in "LinearRegression": documented the case when the "residues_" attribute is empty.
2015-10-19 14:04:12 +02:00
Raghav R V a87011262a FIX precision to float64 across the codebase 2015-10-16 11:20:29 +02:00
Olivier Grisel 330189376b Merge pull request #5413 from amueller/cleanup_tests
Cleanup tests
2015-10-16 09:10:49 +02:00
Alexandre Gramfort b1619d0532 DOC : update docstring of l1_ratio for E-Net CV classes 2015-10-15 22:32:51 +02:00
Andreas Mueller c66689c4f4 FIX Don't compare arrays to strings!!!! 2015-10-15 16:07:17 -04:00
Andreas Mueller 1b9e791d92 Merge pull request #5398 from rvraghav93/fix_for_numpy_10
[MRG + 2] FIX dtypes to conform to the stricter type cast rules of numpy 1.10
2015-10-15 12:45:43 -04:00
Raghav R V 21fab6e8ec FIX Move validation from helper to main function 2015-10-15 18:21:51 +02:00
Raghav R V 4f4c3598e6 FIX dtypes to conform to the stricter type cast rules of numpy 1.10
FIX set copy to (copy & whiten).

FIX/DOC Use float outputs for doctest
2015-10-15 18:21:51 +02:00
Gael Varoquaux e777fa7b28 DOC: correct docstring
Trivial fix to correct a docstring that was wrong
2015-10-15 16:36:03 +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
TomDLT db49cdd6ac DOC update docstring and warning 2015-10-13 10:25:16 +02:00
Tom DLT d972da2403 FIX temporary fix for sparse ridge with intercept fitting 2015-10-13 10:12:19 +02:00
Olivier Grisel da9a7cd95f Merge pull request #5362 from MechCoder/lasso_fix
[MRG] Lasso and ElasticNet should handle non-integer dtypes for fit_intercept=False
2015-10-12 13:31:33 +02:00
Vighnesh Birodkar 735dd1fdca Fix warnings during tests 2015-10-08 14:52:21 -04:00
Olivier Grisel ba3caf4bb9 Merge pull request #5356 from rvraghav93/ridge_appveyor_failure
[MRG] FIX Use float64 instead of float.
2015-10-08 10:15:02 +02:00
MechCoder 1d5b473705 Lasso and ElasticNet should handle non-float dtypes for fit_intercept=False 2015-10-07 16:49:28 -04:00
Raghav R V 86be4782d9 FIX Use float64 to avoid spurious errors 2015-10-07 17:09:28 +02:00
Andrew Lamb 176427e284 Fix SGD partial_fit multiclass w/ average.
See https://github.com/scikit-learn/scikit-learn/issues/5246#issuecomment-140062688.

`_fit_multiclass` was setting `self.intercept_` to a single element of the intercept, instead of the entire intercept.
2015-10-07 11:39:57 +02:00
Olivier Grisel 10259822fd Merge pull request #5337 from ogrisel/fix-coordinate-descent-memory-layout
[MRG+1] FIX consistency of memory layout for linear CD solver
2015-10-05 10:50:35 +02:00
Olivier Grisel 808fa6450e FIX consistency of memory layout for linear CD solver 2015-10-04 18:32:05 +02:00
Alexandre Gramfort e7c50de502 misc + pep8 2015-10-04 16:27:12 +02:00
Alexandre Gramfort c4687fd512 Merge pull request #5335 from rrohan/current
[MRG+1] fixes #5329. Division by zero using SGDClassifier
2015-10-04 16:23:27 +02:00
Rohan Ramanath f8486a5b25 fixes scikit-learn/scikit-learn#5329 2015-10-01 21:42:27 -07:00
Olivier Grisel f1c5924b36 ENH better error message for estimators with ensure_min_* checks 2015-10-01 14:44:05 +02:00
vstolbunov ebd5dbc68a Fixed syntax and combined two test functions 2015-09-15 12:40:08 -04:00
vstolbunov 942ff5c654 Updated logistic regression tests with sag solver 2015-09-15 12:40:08 -04:00
Valentin Stolbunov 1a15fdc4f5 Added handling of sample weights in logistic.py
* Updated _check_solver_option to include sample_weight check
* Updated all calls to _check_solver_option()
* Updated documentation of class_weight throughout logistic.py
* Added sample_weight parameter to logistic_regression_path.
* Added handling of sample weights to logistic_regression_path.
* Added sample_weight parameter to _log_reg_scoring_path.
* Added handling of sample weights to _log_reg_scoring_path.
* Added sample_weight parameter to fit() in the LogisticRegression class.
* Added handling of sample sample weights in LogisticRegression.fit()
* Added sample_weight parameter to fit() in the LogisticRegressionCV class.
* Added handling of sample weights in LogisticRegressionCV.fit()
* Added test_logistic_regressioncv_sample_weights, which:
  * tests that a ValueError is raised if liblinear is used with
    sample weights
  * tests that passing sample weights as np.ones(y.shape[0]) is
    the same as not passing them (default None)
  * tests that using both lbfgs and newton-cg solvers with
    sample weights yields the same results
  * tests that passing class weights to scale one class is the
    same as passing sample weights for the training data of just
    that class
* Fixed bug with *= in logistic_regression_path.
* Fixed bug in test_logistic_regressioncv_sample_weights where
  no data was created prior to fitting.
* Changes to accepted sample_weight type.
* Fixed bug in naming of sample_weight when passed from
  _log_reg_scoring_path to logistic_regression_path.
* Fixed issue of sample_weight=None being converted to np.array()
  and then not being reconigzed as None.
* Added tests for LogisticRegression
* Attempting to fix same issue as 9d3becf by instead implementing
  if statement in bagging.py.
* Added TODO to eliminate check for liblinear w/ sample weights
  in bagging.py
2015-09-15 12:40:08 -04:00
Andreas Mueller af56154a77 Merge pull request #5238 from rvraghav93/cvdoc
[MRG+1] DOC Make cv documentation consistent across our codebase
2015-09-13 13:29:27 -04:00
Andreas Mueller 6dd6f8ffe8 minor fixes to the doc build 2015-09-11 17:32:51 -04:00
TomDLT 94eb61960a ENH add sag solver in LogisticRegression and Ridge 2015-09-10 13:28:02 -04:00
Danny Sullivan 4ceffe05a1 Adding Implementation of SAG 2015-09-10 13:27:04 -04:00
Raghav R V 882c346abd DOC Make cv documentation consistent across our codebase 2015-09-10 09:15:13 +05:30
Manoj Kumar cb591e1d3e Merge pull request #5225 from MechCoder/fix_overflow
[MRG + 1] Add numerically stable softmax function to utils.extmath
2015-09-09 11:47:35 -04:00