Commit Graph

955 Commits

Author SHA1 Message Date
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
TomDLT d439dc4d9e FIX class_weight in LogisticRegression and LogisticRegressionCV 2015-10-21 17:41:39 +02:00
Arnaud Rachez 5db2adf93c MAINT Removed deprecated stuff. 2015-10-21 10:24:23 +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
Gilles Louppe a4e4cf9875 FIX: remove shuffling in LabelKFold 2015-10-19 16:27:04 +02:00
Alexandre Gramfort 8d2c15c099 Merge pull request #5437 from rvraghav93/remove_deprecated_stuff
[MRG] MAINT remove deprecated stuff that will no longer be supported in 0.18
2015-10-19 15:20:49 +02:00
Gilles Louppe 008adf11ad Merge pull request #5375 from rvraghav93/set_precision
[MRG + 2] FIX precision to float64 across the codebase
2015-10-19 11:02:04 +02:00
Raghav R V 7e29af034b MAINT remove deprecated stuff that will no longer be supported in 0.18 2015-10-19 10:44:42 +02:00
Andreas Mueller 18a53f2409 FIX skip LDA deprecation test on python3.3 that has no reload. 2015-10-16 18:31:47 -04:00
Raghav R V a87011262a FIX precision to float64 across the codebase 2015-10-16 11:20:29 +02:00
Andreas Mueller c857e1e3d7 Merge pull request #5349 from jakevdp/naive-bayes-scale
[MRG+1] Naive bayes scale (Fixes #5314)
2015-10-09 18:50:48 -04:00
Vighnesh Birodkar 735dd1fdca Fix warnings during tests 2015-10-08 14:52:21 -04:00
Jake VanderPlas eac920db68 MAINT: minor fixes to GaussianNB epsilon 2015-10-07 07:09:01 -07:00
Jake VanderPlas 83fdaa3fea TST: GaussianNB scale invariance 2015-10-06 17:52:55 -07:00
Gilles Louppe 2556ae0ccd Merge pull request #5300 from glouppe/fix-5292
[MRG+1] Ensure correct LabelKFold folds when shuffle=True
2015-09-28 16:29:07 +02:00
Gilles Louppe 1f4bc26a02 FIX: Ensure correct LabelKFold folds when shuffle=True 2015-09-25 13:26:34 +02:00
Andreas Mueller 2a5652a3d8 Merge pull request #5294 from trevorstephens/lda_qda_fit_params
[MRG] Deprecate fit params in qda and lda
2015-09-22 12:24:23 -04:00
trevorstephens 5271c04759 deprecate fit params in qda and lda
add whatsnew
2015-09-22 07:54:44 -07:00
Andreas Mueller a0ce9e4da0 add future warning to pipeline.inverse_transform with 1d X. 2015-09-21 20:41:47 -04:00
Alexandre Gramfort 37bd275b16 Merge pull request #5283 from TomDLT/remove_warnings
[MRG] Remove some warnings from test suit
2015-09-19 08:38:01 +02:00
TomDLT 628ed2c867 ENH remove some warnings in test suit 2015-09-16 18:27:58 +02:00
benjaminirving fac33adeb6 Adding checks for the input LDA prior 2015-09-16 16:27:41 +02:00
Vinayak Mehta 679936f6bc MAINT Deprecate LDA/QDA in favor of expanded names
The LDA accronym for Linear Discriminant Analysis is ambiguous
because of the newly introduced Latent Dirichlet Allocation model.

We therefore deprecate the sklearn.lda.LDA and sklearn.lda.QDA
in favor of explicit names.
2015-09-11 15:32:11 +02:00
Alexandre Gramfort 9ebc6fe33d Merge pull request #5216 from JPFrancoia/master
Creation of the attribute LDA.explained_variance_ratio_, for the eige…
2015-09-11 11:42:39 +02: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
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
Gilles Louppe cf7bc7b035 ENH: rename to LabelKFold
COSMIT: doc, pep8, etc

Refactor code
2015-09-07 09:56:19 +02:00
Jean Kossaifi 6eb4028519 Added subject independent KFold
Changed SubjectIndependentKFold to DisjointGroupKFold

cosmetic changes  test (fix seed correctly, use assert_equal for
meaningful error messages)

Changed name to DisjointLabelKFold

Added example of use

FIX: whitespace related doctest failure

FIX: Python 2.6 requires the field numbers in print

FIX: change docstring to comment in test function

DOC: moved docstring from function to class

FIX: added call to parent class

FIX: error in calling the parent

DOC: fixed doctest

FIX: doctest

Cosmetic changes (minor refactoring)

Optimised code (use np.bincount)

Cosmetic: use samples instead of weight for clarity

Minor fix: removed shuffle parameter

Cosmetic

Use mergesort instead of quicksort for reproducibility.

Changed variable name 'y' to 'label'.

Added test for degenerate case where n_folds > n_labels.

Documented the requirement n_labels > n_folds.

DOC: improved description + added see also sections.

Fixed dtype of temporary arrays.

Improved test: check that one label is not in both test and training.

Added documentation for DisjoinLabelKFold.
2015-09-07 09:53:58 +02:00
djipey 099b48373f Correction of the name of a function. 2015-09-06 11:47:24 +02:00
djipey 3ad9972192 Addition of a piece of docstring for the attribute
explained_variance_ratio_. Creation of the function
test_lda_explained_variance_ratio to test this new attribute.
2015-09-06 11:46:54 +02:00
Brian McFee 21a966ae8a ENH: added LabelShuffleSplit cv iterator 2015-08-30 12:00:18 +02:00
Olivier Grisel ea42c55b7b PEP8 in cross_validation module + tests 2015-08-27 15:34:41 +02:00
Buddha Prakash b68f922707 Fix minor indentation issues 2015-08-26 18:26:21 +05:30
Buddha Prakash 0c6b1733ac Add test to check sparse predictions in cross_val_predict 2015-08-26 17:25:35 +05:30
Raghav R V 664d78eb7c MAINT Remove support for the deprecated sequence of sequences
MAINT Remove sequence of sequence support from datasets
MAINT Remove return_indicator param
MAINT Remove multilabel-seq test in OVR
MAINT Remove multilable-seq test in check_cv
MAINT Remove multilabel seq test in label_binarizer
TST type_of_target returns "unknown" for multilabel-sequence types
TST _check_targets should raise a ValueError
DOC show multilabel indicator as an example; remove return_indicator param
DOC use consistent lower case y for target
2015-08-11 22:26:44 +05:30
mbillinger a8970fc117 Added Testcase for LDA-Covariance 2015-08-05 16:04:15 +02:00
Joel Nothman febefb0894 FIX avoid memory cost when sampling from large parameter grids 2015-06-25 08:10:31 +10:00
Olivier Grisel ff64c3a744 MAINT remove referrence to HMM in common tests 2015-06-18 15:20:10 +02:00
Joel Nothman 95c9e14942 PEP8 for recent merge 2015-06-12 05:11:36 +10:00
Joshua Loyal 9a4b75a7e3 ENH Document how to get valid parameters in set_params
Issue #4690
2015-06-11 23:25:57 +10:00
Raghav R V 62325cbb58 MAINT merge _check_cv into check_cv as indices argument is removed in 0.17 2015-06-08 16:37:03 +05:30
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
Olivier Grisel 797e0dce0e Merge pull request #4730 from amueller/ovr_classifier_sparse_coef
[MRG + 1] support for sparse coef_ in ovr classifier
2015-05-20 14:20:17 +02:00
Andreas Mueller c5b395fb3e FIX / TST make cross_val_predict work on lists, test pass-through and compatibility with various input types. 2015-05-19 15:04:45 -04:00
Olivier Grisel 25e24a7167 Merge pull request #4725 from jseabold/avoid-nan-equals-comp
[MRG + 1] ENH: Avoid equality comparison for nans.
2015-05-19 16:12:39 +02:00
Skipper Seabold c4df418057 TST: Regression test for nan parameters cloning 2015-05-18 11:40:46 -05:00
Andreas Mueller b9d8fd56a2 ENH support for sparse coef_ in ovr classifier 2015-05-15 20:26:38 -04:00