Commit Graph

10069 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
MartinBpr 31ab442d69 fixed typo in LDA 2015-10-23 09:36:40 +02:00
Lilian Besson dbb418b14e Typo on doc for default value of solver for lda.LDA
Fix a style issue on the documentation for the default value of the `solver` parameter for lda.LDA.

[sklearn.lda.LDA.html](http://scikit-learn.org/stable/modules/generated/sklearn.lda.LDA.html#sklearn.lda.LDA) displayed badly (cf screenshot).
2015-10-23 09:36:40 +02:00
Peter Fischer 8ff339eb5b Update test_utils.py
Comment instead of docstring to follow sklearn convention.
Regression test made easier by adding small value to main diagonal of s.p.d. matrix
2015-10-23 08:57:31 +02:00
yanlend 9f8e062571 fix docs and doctests for KernelPCA 2015-10-23 08:57:30 +02:00
Peter Fischer 6cb51b2a28 Initialize ARPACK eigsh
`v0 = random_state.rand(M.shape[0])` leads to an initial residual vector in ARPACK which is all positive. However, this is not the absolute or squared residual, but a true difference. Thus, it is better to initialize with `v0=random_state.uniform(-1, 1, M.shape[0])` to have an equally distributed sign. This is the way that ARPACK initializes the residuals.
The effect of the previous initialization is that eigsh frequently does not converge to the correct eigenvalues, e.g. negative eigenvalues for s.p.d. matrix, which leads to an incorrect null-space.

- initialized all occurences of sklearn.utils.arpack.eigsh the same way it would be initialzed by ARPACK
- regression test to test behavior of new initialization
2015-10-23 08:57:30 +02:00
MechCoder 9d8d7e426c Replace GETC to SAMPLE_WEIGHT 2015-10-23 00:07:02 -04: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
Andreas Mueller a6c2a17bed undo change by @arthurmensch that was probably accidental ;) 2015-10-22 17:54:23 +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
Arthur Mensch 1c7168d398 Fix fit_transform, stability issue and scale issue in PLS 2015-10-22 14:25:59 +02:00
Alexandre Gramfort 5a58e56826 Merge pull request #5487 from arjoly/example-node
[MRG+1] Add an example and a method to analyse the decision tree stucture
2015-10-22 13:31:49 +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
Alexandre Gramfort 861ac13713 Merge pull request #5519 from ishank08/imp_transform
(Issue #5514) check_array performed twice fixed
2015-10-22 09:36:47 +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
Ishank Gulati 7fe71c18ab as_float_array removed 2015-10-22 01:07:24 +05:30
hlin117 f725485427 #5322: Small change to estimator_check.py 2015-10-21 11:59:21 -05:00
hlin117 1f48814799 #5322: Using multioutput_estimator_convert_y_2d in check_supervised_y_no_nan 2015-10-21 11:54:12 -05:00
Andreas Mueller 3c988d5d1c Merge pull request #5512 from giorgiop/randomized-svd-versionadded
DOC versionadded randomized_svd
2015-10-21 18:45:24 +02:00
giorgiop f45f260ff7 DOC versionadded randomized_svd 2015-10-21 18:28:37 +02:00
hlin117 290e0ea6f2 #5322: Changed check_supervised_y_no_nan to not seed global 2015-10-21 11:26:20 -05:00
TomDLT d439dc4d9e FIX class_weight in LogisticRegression and LogisticRegressionCV 2015-10-21 17:41:39 +02:00
hlin117 c45075123a Added documentation about y nan handling in check_X_y 2015-10-21 11:11:08 -04:00
Arnaud Joly 7d4755e317 Add a decision_path function to forest estimator 2015-10-21 17:05:56 +02:00
Arnaud Joly be21b6a5b0 Add an hardcoded test 2015-10-21 17:05:56 +02:00
Arnaud Joly bc02bd5243 ENH rename decision_paths to decision_path 2015-10-21 17:05:56 +02:00
Arnaud Joly 317281bf22 take glouppe comment 2015-10-21 17:05:55 +02:00
Arnaud Joly f6d605ff96 Implement decision path in tree 2015-10-21 17:05:55 +02:00
Alexandre Gramfort b6a5ed2aab Merge pull request #5465 from massil94/dev-massil
[MRG+1] partly fixed issue #3450 for hamming loss
2015-10-21 16:46:26 +02:00
Andreas Mueller ebf8d3ae2d Merge pull request #5456 from aabadie/remove_deprecation_metrics
[MRG+1] removing deprecated files in metrics
2015-10-21 16:43:53 +02:00
Alexandre Gramfort 7c69c55266 Merge pull request #5457 from aabadie/remove_deprecation_metrics_second_pass
[MRG+2] Use uniform_average as default multioutput parameter of r2_score function
2015-10-21 16:27:46 +02:00
Gilles Louppe 65aee0c46f Merge pull request #5469 from rvraghav93/zero_gamma
[MRG + 1] Remove deprecated stuff from SVM
2015-10-21 15:28:29 +02:00
Lars Buitinck 3697d755c4 MAINT/TST: public export of non_negative_factorization
Changed imports in test to separate testing of API and of internals.

See gh-5509.
2015-10-21 14:55:06 +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
Alexandre Abadie 8e0f337221 removing sklearn/metrics/metrics.py 2015-10-21 13:15:51 +02:00
Lars Buitinck 1eb9bed151 COSMIT nicer output from NMF with verbose > 0
Used to print "('violation:', 1.0)". Now "violation: 1.0".
2015-10-21 13:14:56 +02:00
Alexandre Abadie 888a1848ca Updating deprecation message in metrics.py:
confirm deprecation starting from 0.16 and removal after 0.18
2015-10-21 13:13:56 +02:00
Alexandre Abadie 08b7253922 Update deprecation message in metrics/regression.py (use uniform_average as default multioutput parameter of r2_score function after 0.19)
adding deprecation message

fixing deprecation message
2015-10-21 13:09:31 +02:00
Olivier Grisel 0cb93b0996 Merge pull request #5141 from giorgiop/power-iter-randomized-svd
[MRG + 2] ENH: optimizing power iterations phase for randomized_svd
2015-10-21 13:01:45 +02:00
Olivier Grisel 718a7df4c5 Merge pull request #5449 from Jeffrey04/5433-MaxAbsScaler-1-row-csr-fix
[MRG + 1] max abs scaler 1 row csr fix
2015-10-21 11:42:27 +02:00
giorgiop b18f2951e4 randomized_svd: power iter, normalization, benchmark 2015-10-21 11:21:40 +02:00
Andreas Mueller bad3dd6b93 Merge pull request #5451 from zermelozf/deprecated-stuff
[MRG + 1] Removed deprecated stuff in 0.18
2015-10-21 11:19:12 +02:00
Gilles Louppe 4bcfedb813 FIX: GaussianProcess will be deprecated in 0.20, not 0.19 2015-10-21 10:59:03 +02:00
Olivier Grisel 95d4e23e0b Merge pull request #5436 from Mbompr/plot-roc-example-4976
[MRG+1] The code was raising an exception while plotting 2nd curve
2015-10-21 10:42:08 +02:00
Arnaud Rachez 62633f701b Addressed comments on PR #5451 2015-10-21 10:24:23 +02:00
Arnaud Rachez 5db2adf93c MAINT Removed deprecated stuff. 2015-10-21 10:24:23 +02:00
Gilles Louppe f634bc2da0 Merge pull request #5438 from aabadie/datasets_doc
[MRG + 1] : documentation, referencing datasets documentation in toc
2015-10-21 08:14:22 +02:00