Commit Graph

2738 Commits

Author SHA1 Message Date
DOHMATOB Elvis f4b230cc65 BF: fixing error on plot_image_denoising.py with Python 2.7 (#9003) 2017-06-06 14:36:13 +02:00
Naoya Kanai bd0fc236e0 [MRG+1] MAINT drop SciPy < 0.13 (#8854)
Remove sklearn.utils.fixes functions that are not needed for scipy >= 0.13 and keep deprecated wrappers in other modules.
2017-06-02 23:36:33 +02:00
Attractadore 3efefab4c8 [MRG+1] Rename n_topics to n_components in LDA (#8938) 2017-05-27 18:46:26 +10:00
Jacob Schreiber 26978b5459 Revert "[MRG+1] Added n_components parameter to LatentDirichletAllocation to replace … (#8922)" (#8937)
This reverts commit 890e652898.
2017-05-26 00:02:51 -07:00
Attractadore 890e652898 [MRG+1] Added n_components parameter to LatentDirichletAllocation to replace … (#8922)
[MRG+2] Added n_components parameter to LatentDirichletAllocation to replace …
2017-05-25 23:07:10 -07:00
Guillaume Lemaitre 3de7da329f EXA improve examples (#8866) 2017-05-12 14:21:40 +02:00
Loïc Estève 719afba518 [MRG] Run more examples as part of the doc generation (#8851)
Also fix errors and flake8 violations of existing examples
2017-05-11 23:42:57 +02:00
Naoya Kanai 1af5a0e0a8 [MRG] Update URL for species distribution dataset (#8864) 2017-05-11 18:44:08 +02:00
Manraj Singh 6d604d1d93 [MRG] Randomized Search Example: Fix min_samples_split values for RandomizedSearchCV and GridSearchCV (#8847)
* Randomized Search Example: Fix min_samples_split values for RandomizedSearchCV and GridSearchCV

* Randomized Search Example: Change min_samples_split from 1.0 -> 2
2017-05-10 07:51:56 +10:00
Puneet Mathur 9e0e2d41fe [MRG+1] Spelling mistake in Feature Extraction documentation (#8763)
* task: Fixed the minor change in code from svr to svm merging back to main branch http://scikit-learn.org/dev/modules/generated/sklearn.model_selection.GridSearchCV.html#sklearn.model_selection.GridSearchCV done on: Mar 13 2017 14:30 IST

* issue#8761: Fixed the code with spelling mistake Spelling mistake in
Feature Extraction documentation #8761
2017-04-19 10:20:22 -07:00
NALEPA Emmanuel 53c9336cef [MRG] grid_search_digits.py: Remove impact-less (and confusing) 'C=1' parameter. (#8731)
This parameter does not modify at all the behavior of GridSearchCV,
and is quite confusing for the user.
Useful values of 'C' are already set in 'tuned_parameters'.
2017-04-13 08:20:34 +10:00
Arthur Mensch 5147fd09c6 Add SAGA solver for LogisticRegression and Ridge (#8446) 2017-03-27 21:39:30 +02:00
David Heryanto 7877f3cfae [MRG] Fix plot_unveil_tree_structure.py: incorrect indexing for X_test (#8653) 2017-03-27 18:54:52 +02:00
Hanmin Qin bc63f49555 [MRG] DOC improve example plot_forest_iris.py (#8649) 2017-03-27 21:39:28 +11:00
Bob Baxley db370178d6 [MRG+1] [DOC] Adding GMM to plot_cluster_comparison.py (#6305)
* Adding GMM to plot_cluster_comparison.py and changing number of components in all algos to 3.

* adding two datasets to clustering comparision example

* Adding GMM to plot_cluster_comparison.py and changing number of components in all algos to 3.

* adding two datasets to clustering comparision example

* GMM example using GaussianMixture

* fixing lint errors; changing order of datasets in the columns so that no_structure is at the end.

* adding warning supression.

* fixing warning supression.

* hand-tuned cluster parameters

* moved list of algo names; cleaning up color cycling

* fixing islice stop to be an int

* change default to params, make plot color-blind compatible, fix spelling error

* new color palette that is more color-blind friendly
2017-03-21 23:15:37 +01:00
Rishikesh 0ee92d87ee [MRG] Modify Classification module example matplotlibv2 (#8516) 2017-03-13 10:58:12 +01:00
Janine Harper b4a12b18a8 [MRG + 1] Correct typo in cross decomposition example (Fixes #8307) (#8578)
* changed plsca to cca

* corrected variable plsca in line 56-57
2017-03-12 16:13:40 +01:00
Rishikesh d0ce40e8b2 [MRG] remove "matplotlib <1" compatibility code from manifold examples (#8552) 2017-03-10 08:25:37 +01:00
Alison 34a3c99b88 [MRG+1] add edgecolor to plot_pca_iris.py (#8514)
for better rendering with matplotlib 2
2017-03-09 18:54:38 +01:00
Rishikesh cdd693bf95 [MRG] Modify Svm examples for matplotlibv2 comp (#8456)
* Modify plot_custom_kernel for matplotlib v2 comp

Add `edgecolors` attribute in scatter plot for better visualization
in matplotlib version 2

Issue: #8364

* Modify plot_oneclass.py for matplotlib v2 comp

Add `edgecolors` attribute to scatter plot for better
visualization in matplotlib version 2

Issue: #8364

* Modify plot_rbf_parameters for matplotlib v2

Add `edgecolors` attribute to scatter plot for
better visualization.

Issue: #8364

* Modify plot_separating_hyperplane_unbalanced for matplotlib v2

Add `edgecolors` attribute to scatter plot for better visualization.

Issue: #8364

* Modify plo_svm_kernels for matplotlib v2

Add `edgecolors` attribute to scatter plot for better
visualization.

Issue: #8364

* Modify plot_svm_margin for matplotlib v2 comp

Add `edgecolors` attribute to scatter plot for better
visualization.

Issue: #8364

* Modify plot_svm_nonlinear for matplotlib v2

Add `edgecolors` attribute to scatter plot for matplotlib
version 2 compatibility

Issue: #8364

* Modify file for remove flake8 error

Remove extra white space.

Issue: #8364
2017-03-04 11:22:00 -05:00
mathurinm b379060650 Correct figure number + matplotlib 2 (#8483) 2017-03-02 15:40:48 +01:00
David Robles 0ab5c678bb Save predictions in diabetes_y_pred (#8241)
- No need for `regr.predict(diabetes_X_test)` to run multiple times.
- Use `sklearn.metrics.mean_squared_error`.
- Use `sklearn.metrics.r2_score`, instead of `regr.score`, which
  runs `regr.predict` again.
2017-02-27 23:06:26 +01:00
Isaac Laughlin 9743579b5a [MRG+1] Refactoring plot_iris svm example. (#8279) 2017-02-23 21:22:26 +11:00
Nelle Varoquaux 9b75a81b2d [MRG] FIX lasso/elasticnet example did not add noise to simulated data. (#8427)
The first argument of np.random.normal is the mean of the distribution, and
not the output shape. The example thus did not add noise but only an intercept
to the model.
2017-02-22 14:54:32 +01:00
Rishikesh 78149c4085 DOC Modify plot_gpc_iris.py for matplotlib v2 (#8385)
Add edgecolors option in scatter plot

Issue: #8364
2017-02-21 21:37:42 +11:00
Sachin Agarwal 0cae688f25 plot iso-f1 curves in plot_precision_recall (#8378) 2017-02-20 13:53:51 +01:00
Tyler Lanigan eb9fe80e50 DOC add example regarding feature scaling (#7912)
also add load_wine to datasets
2017-02-14 00:27:19 +11:00
Guillaume Lemaitre b3a639ffc2 [MRG+3] ENH Caching Pipeline by memoizing transformer (#7990)
* ENH Caching Pipeline by memoizing transformer

* Fix lesteve changes

* Fix comments

* Fix doc

* Fix jnothman comments
2017-02-13 14:01:12 +01:00
Roman Yurchak 542c02b158 [MRG+1] Remove the MLComp text categorization example (#8264)
and deprecate load_mlcomp.
2017-02-08 09:29:34 +01:00
Rishikesh 3c6f2b0906 [MRG] Diabetes example with GridSearchCV (#8268) 2017-02-08 00:10:25 +01:00
akshay0724 b705cb811d [MRG] loss function plot y-label slightly confusing (#8283)
* Correct y label in plot

* Remove Space
2017-02-06 21:10:44 +11:00
Aman Dalmia 13cc121b30 [MRG] Remove DeprecationWarnings in examples due to using floats instead of ints (#8040) 2017-02-03 15:21:03 +01:00
Rishikesh 15fddab163 Cosmetic changes to rigde path example (#8260)
Change the name of ridge object clf to ridge and also
reinstantiate ridge in every iteration.

Issue: https://github.com/scikit-learn/scikit-learn/issues/8256
2017-02-01 13:13:12 +01:00
Andreas Mueller b6d39793d0 [MRG] make the ransac example slightly more terse, improve range of plot (#8258) 2017-02-01 08:31:07 +01:00
Michael Dezube 1b0ec1bf4f DOC Fixing a bug where entropy included labeled items (#8150) 2017-01-29 07:35:15 +11:00
Guillaume Lemaitre ec8d9f38aa [MRG] Fix aesthetic example roc crossval (#8232)
* Fix esthetic example roc crossval
2017-01-25 14:09:54 +01:00
Ekaterina Krivich be305cebaf TST/FIX Add check for estimator: parameters not modified by `fit` (#7846)
ensure that estimators only add private attributes and attributes with
  trailing _

  in cases when existing estimators don't follow this new rule, we deprecate the
  attributes and make them follow this rule
2017-01-20 11:33:17 +11:00
Basil Beirouti 3dc8d2f83b DOC additional fixes to 20 newsgroups to prevent TypeError (#8204)
* removed stray space in '__main__ '

* fixed pipeline bug causing TypeError and removed incorrect keyword argument

pipeline was not created properly (both classes had .predict) causing
TypeError to be thrown.

Also removed incorrect keyword argument loss=“l2” for LinearSVC
2017-01-16 00:09:44 +11:00
Basil Beirouti cbddb92e29 removed stray space in '__main__ ' (#8203) 2017-01-15 09:25:17 +01:00
Olivier Grisel e0c60fe607 FIX sphinx gallery rendering of plot_digits_pipe example 2017-01-04 16:14:05 +01:00
Jonathan LIgo 726c8d999a Fix plot_svm_margin example plots (#8051)
* Corrected shift of separating hyperplane that passes through the support vectors

* Fixed signs on yy_down and yy_up

* PEP 8 spacing correction

* Fixed spaces at end of comment for Travis
2016-12-16 15:56:26 -05:00
Tom Dupré la Tour ae4f7104d6 [MRG+1] Add multiplicative-update solver in NMF, with all beta-divergence (#5295) 2016-12-12 16:10:39 +01:00
Okhlopkov Daniil Olegovich 83beb5f35f DOC fix copy-paste error (#8037)
write correct comment
2016-12-12 08:23:20 +11:00
Aman Dalmia 61ec187ea8 [MRG+1] BUG: adding check for ipython notebook (#7924)
* BUG: adding check for ipython notebook

* DOC: adding fix for other examples having the same issue

* DOC: remove unused code

* ENH: added change to make sphinx-gallery tests pass

* FIX: adding fix for document_clustering.py

* DOC: reverting redundant whitespace added to svm_gui.py

* DOC: adding note mentioning the work-around

* DOC: adding note mentioning the workaround

* Fix flake8
2016-12-08 11:53:01 -05:00
brady salz 1a61441912 DOC Fix typo in plot_unveil_tree_structure (#7988)
Extra `s` added, changed `%ss` to `%s`
2016-12-06 12:13:10 +11:00
rashchedrin 7b0b6d7344 [MRG+1] Fix confusion matrix example code (#7971)
* fixed issue 7969

* Limited number of decimal places in normalized confusion matrix

* deduplicated code
2016-12-03 15:57:15 -05:00
Sergey Feldman 67a85b8ed8 [MRG+2] Adding return_std options for models in linear_model/bayes.py (#7838)
* initial commit for return_std

* initial commit for return_std

* adding tests, examples, ARD predict_std

* adding tests, examples, ARD predict_std

* a smidge more documentation

* a smidge more documentation

* Missed a few PEP8 issues

* Changing predict_std to return_std #1

* Changing predict_std to return_std #2

* Changing predict_std to return_std #3

* Changing predict_std to return_std final

* adding better plots via polynomial regression

* trying to fix flake error

* fix to ARD plotting issue

* fixing some flakes

* Two blank lines part 1

* Two blank lines part 2

* More newlines!

* Even more newlines

* adding info to the doc string for the two plot files

* Rephrasing "polynomial" for Bayesian Ridge Regression

* Updating "polynomia" for ARD

* Adding more formal references

* Another asked-for improvement to doc string.

* Fixing flake8 errors

* Cleaning up the tests a smidge.

* A few more flakes

* requested fixes from Andy

* Mini bug fix

* Final pep8 fix

* pep8 fix round 2

* Fix beta_ to alpha_ in the comments
2016-12-01 10:52:18 -05:00
Joel Nothman 6e98eec043 [MRG + 1] DOC refer to code elements in nested CV example description (#7949) 2016-11-30 20:46:39 +11:00
David Robles f7620bef30 DOC Make target variable Y lowercase in example (#7905) 2016-11-18 10:24:36 +11:00
Aman Dalmia 6f1972eca1 [MRG] DOC explaining the physical meaning of the ellipsoids (#7856) 2016-11-17 09:43:47 +11:00