Commit Graph

10485 Commits

Author SHA1 Message Date
Olivier Grisel e012b7b3e7 FIX assert_array_almost_equal in test_image 2016-04-07 09:58:36 +02:00
Olivier Grisel 2efa626f9b [MRG] Fix strict tests
* FIX test_common: assert_greater_equal(iter_, 1)

The previous check was too strict. It is fine for an estimator to
decide that is has converged in one pass over the data.

* STYLE PEP8

* FIX test_reconstruct_patches_perfect_color too strict

* STYLE flake8 fixes
2016-04-07 09:55:08 +02:00
Mark Szepieniec 0a094b90e8 Fix grammar bug in docstring of SelectFromModel 2016-04-06 17:37:40 +01:00
Matteo Visconti di Oleggio Castello 589fcadbb7 [DOC] fix reference to examples 2016-04-05 20:22:20 +02:00
Ruifeng Zheng 689a91e8b8 [MRG+3] Add weighting option to cohen_kappa_score
* create kappa
* some nits
* use matrix opterations
* one nit
* add test
* fix a bug
* fix two nits
2016-04-05 16:15:34 +02:00
Alexander Minyushkin 62255122b4 [MRG] Misprint in documentaion fixed
* Misprint in documentation
 fixed: "maching" -> "matching"
* Allignment fixed
2016-04-05 11:59:30 +02:00
Raghav R V c20c76e2cb FIX use the model_selection 2016-04-04 16:05:36 +02:00
ningchi 6ce198c78f [MRG] #6581 n_samples of utils.resample can be more when replace is True
* #6581 n_samples can be more when replace is True

* more compact code
2016-04-02 08:58:40 +02:00
Manoj Kumar 33396b1b45 Merge pull request #6611 from maniteja123/chebyshev_doc
[MRG] DOC: Correct some errors in chebyshev distance
2016-04-01 18:22:24 -04:00
Manoj Kumar 3078d7d611 Merge pull request #6127 from hugobowne/MultiOneVsRestClassifier
[MRG+2] MultiOutputClassifier
2016-03-31 23:02:08 -04:00
Maniteja Nandana 29ee54a586 Meta estimator for multi output classification 2016-04-01 07:18:59 +05:30
Alexandre Gramfort acdaeaf5dd Merge pull request #6606 from tkamishima/tkamishima_one_hot_encoder_parameter_checking
[MRG] type checking before comparison, to avoid warning messages, in preprocessing.OneHotEncoder
2016-03-31 22:33:55 +02:00
Maniteja Nandana b454293ea6 DOC: Correct some errors in chebyshev distance
closes #6576
2016-03-31 06:57:12 +05:30
Manoj Kumar 24198ffbb8 Merge pull request #6419 from nelson-liu/fix_linkcheck
[MRG+1] DOC: Fix broken links
2016-03-30 18:17:48 -04:00
Alexandre Gramfort 3183895285 Merge pull request #6608 from tacaswell/doc_knc_docstring
[MRG] DOC: mark weights as optional
2016-03-30 20:56:58 +02:00
Thomas A Caswell 0fd64c2f40 DOC: mark weights as optional 2016-03-30 14:02:15 -04:00
Toshihiro Kamishima d574a03497 type checking before comparison, to avoid warning messages
If np.array is pssed  as a parameter 'n_values', warning of multiple comparison is printed. This patch avoid this problem.
2016-03-31 01:09:15 +09:00
YenChenLin 08e1db4cd3 Test normalize function in data.py 2016-03-26 10:38:29 +08:00
YenChenLin e34bbc1002 Use fused type in inplace normalize 2016-03-26 10:38:17 +08:00
Manoj Kumar d7cf4b0acf Merge pull request #6588 from yenchenlin1994/use-fused-types-in-assign_rows_csr
[MRG+1] Make assign_rows_csr support Cython fused types
2016-03-25 13:59:12 -04:00
hlin117 e5c366f77f Merge PR #6037: copy_X in KernelPCA
Ensuring consistent transforms for KernelPCA

Taking @vene's changes into account, thanks!

Taking @jakevdp's comment into account

Added more verbose documentation to kernel_pca.py

Specifying that X_fit_ will not be None. @jakevdp

KernelPCA: Fixing more formatting of docstring

Addressed @vene's documentation comments

Addressing that dual_coef_ might not be present in model in docs. @vene
2016-03-24 19:01:10 -04:00
YenChenLin 42d49c8c14 Make assign_rows_csr support Cython fused types 2016-03-25 00:25:36 +08:00
Tom Dupré la Tour afc058fa30 Merge pull request #6376 from tracer0tong/issue_6352
[MRG+2] Fix for issue #6352
2016-03-24 15:19:58 +01:00
Rémy Léone 9b7176dd9d [DOC] Fix broken links 2016-03-23 12:45:34 -07:00
Tom Dupré la Tour eed5fc5f0f Merge pull request #6395 from yenchenlin1994/make-dump_svmlight_file-support-sparse-y
[MRG+1] Make dump_svmlight_file support sparse y (fixes #6301)
2016-03-23 19:19:43 +01:00
YenChenLin 22d7cd5cd0 Make dump_svmlight_file support sparse y 2016-03-24 01:22:48 +08:00
Tom Dupré la Tour 56d625f83a Merge pull request #6569 from MechCoder/minor
[MRG+1] MAINT: Simplify n_features_to_select logic in RFECV
2016-03-23 13:34:57 +01:00
lizsz 65b570b7b7 Update scorer.py 2016-03-23 11:49:53 +01:00
Guillaume Lemaitre b3c22194b1 Add the possibility to add prior to Gaussian Naive Bayes
Added the following things:
* Test when the sum is not equal to one
* Test the prediction in case of a large bias for one class
* Test explicitely class_prior_
* Move the function to update the class prior in the GaussianNB class
* Remove the updating of the class prior before to actually compute the mean and variance

Address comments for PR #6180 - Correct the documentation

Address comment PR#6180 - Improve the class prior initialisation and updating
We modify the code to:
* Initialisat self.class_prior_ with the different possibilities (class_prior given or not, fit_prior True or False)
* Update self.class_prior_ only when no class_prior is given and than fit_prior is True

Address comments PR #6180 - Remove useless line

Fix the file according to PEP8 regulations

Update the API to have only class_prior in GaussianNB

Correct prior fitting using samples and not class number

Change name of priors and correct the warning with division by zero

Update the API

Remove functions which were called only once

Add additional test for part of the code which was not covered in GaussianNB

Correct doc formatting

Correct spelling
2016-03-22 18:13:48 -04:00
hlin117 54af09e6f1 Fixing typos in logistic regression docs 2016-03-21 18:57:03 -05:00
MechCoder 528533dab7 MAINT: Simplify n_features_to_select in RFECV 2016-03-21 01:16:04 -04:00
dsquareindia e9492b7ec2 LabelBinarizer single label case now works for sparse and dense case 2016-03-21 10:43:56 +05:30
practicalswift 549474de2e [gardening] Fix NameError ("estimator" not defined). Remove unused var "ind". 2016-03-20 22:48:25 +01:00
Gilles Louppe e2e6bde71a Merge pull request #6498 from clamus/rand-lasso-fix-6493
[MRG+1] Fix to documentation and docstring of randomized lasso and randomized logistic regression
2016-03-19 12:00:47 +01:00
Gilles Louppe b64e992f8f Merge pull request #6542 from ohld/make_scorer-link
'[MRG]' issue #6535
2016-03-19 11:43:59 +01:00
Manoj Kumar c2eaf75e3d Merge pull request #6173 from dsquareindia/featurehasher_fix
[MRG+1] Fix: FeatureHasher now accepts string values
2016-03-18 23:23:23 -04:00
Alexandre Gramfort 195a5eb412 Merge pull request #6546 from Naereen/patch-1
[MRG+1] Add and print a total_n_estimators information
2016-03-16 10:31:53 +01:00
Lilian Besson e8a8a6751f Two typo on my change, sorry
- total_n_estimators should be sum(n_estimators) not len(..)
- keyword argument should be after non-keyword argument (call of ``_parallel_build_estimators`` with ``delayed`` on line 365-366.
2016-03-16 00:11:00 +01:00
Tom Dupré la Tour 06bf797c0d DOC update docstring in LogisticRegression 2016-03-15 11:11:59 +01:00
Lilian Besson b286b85d23 Add and print a total_n_estimators information
Add to bagging.Bagging._parallel_build_estimators a total_n_estimators parameter, to improve the (optional) information printed if verbose > 1.

It felt weird to see 6 times in a row "building estimator 1 of 1" without any idea of total number of estimators to build, now it's fixed.
2016-03-14 23:49:38 +01:00
Okhlopkov Daniil Olegovich 4eca0c986e updated info for cross_val_score
added link to sclera.metrics.make_scorer
2016-03-14 23:13:11 +03:00
Davide Lasagna edd0eabf14 change "lasso_path" to use "return_n_iter" argument 2016-03-13 18:06:01 +00:00
hugobowne ce11cbc3c5 added MultiOneVsRest classifier & testing suite 2016-03-13 22:49:39 +05:30
Alexandre Gramfort 5e41327276 Merge pull request #6530 from Arafatk/master
Correcting Typo in sklearn.linear_model.Ridge
2016-03-13 14:34:15 +01:00
Arafat 77c17bc85d Correcting Typo 2016-03-13 18:38:37 +05:30
Camilo Lamus bf81451dc6 Fix consistency in docs and docstring 2016-03-11 17:04:36 -05:00
Camilo Lamus 2e7d9ad3a4 FIX: improve docs of randomized lasso 2016-03-11 17:04:36 -05:00
dsquareindia eb242c26d9 ENH: FeatureHasher now accepts string values. 2016-03-11 20:37:10 +05:30
giorgiop 328ebfa865 ENH RandomizedPCA collapsed into PCA 2016-03-11 09:10:37 +11:00
Tim Head 07cede74ca Multitarget regression meta estimator
Register OneVsRestRegressor as meta estimator

Rename to a more sensible name

Parallel predict and sparse support

Started MultiOutput documentation

Move code to new file multioutput.py

Continuing the move to new multioutput module

Added sample weight support

Better test for sample weights and actually support weights

Added a new test using weighted vs repeated samples to
test sample weight support. Uncovered that weights
were not actually passed on to underlying estimator.

Comment on multiprocess overheads

Move parallel_helper to utils.fixes

This helper works around a python2 limitation on pickling
instance methods

Example of multi-output regression with gradient boosting

Switch to uniform weighted score and updated example

The example now uses a RF with and without the MultiOutput
meta estimator

Added note for removing `score` method

Addressing comments on MultiOutputRegressor

MultiOutputregressor better test for weighted samples

Fix ups

Use explicit keyword argument for passing sample weights and
fix random_state on train-test split in the example
2016-03-10 16:06:08 -05:00