Commit Graph

257 Commits

Author SHA1 Message Date
Adrin Jalali 69c8967e21 DOC Fix warnings in examples (#12654)
Fixe or suppresses many warnings in examples, including matplotlib complaining about the non-gui backend.
2019-01-17 21:41:13 +11:00
Roman Yurchak acb8106472 MNT Use list and dict comprehension (#12668) 2019-01-08 09:32:34 +11:00
Mickaël Schoentgen 2df594564d EXA Fix several DeprecationWarning: invalid escape sequence in examples (#12924) 2019-01-05 12:22:36 +08:00
Andreas Mueller 952ef6637a MRG Drop legacy python / remove six dependencies (#12639) 2019-01-03 15:50:05 +02:00
Adrin Jalali 77b9b1f114 BLD circle-ci should only run/build plot_* files (#12797) 2018-12-28 19:48:45 +08:00
Hanmin Qin 9dfe8768c8 MNT Unused import 2018-11-24 23:38:38 +08:00
Loïc Estève e6e8345248 EXA remove unused variables. (#12647)
The data comes from static CSVs that cover 2003-01-01 to 2007-12-31.
2018-11-24 23:34:56 +08:00
Thomas Moreau d25da1be20 FIX make joblib utils private, and remove mentions of externals.joblib (#12345) 2018-11-20 10:53:52 +11:00
Xing Han Lu c76dc05881 EXA Fix labels overlap in Out-of-core classification of text documents example (#12359) 2018-10-13 15:01:59 +02:00
TakingItCasual 74b56dbc57 MNT Converting http to https (#12277) 2018-10-04 22:37:57 +08:00
Hanmin Qin 8890b50606 [MRG+1] EXA Set cv=5 in examples (#11856)
* EXA Set cv=5 in examples

* small mistake

* [doc build]

* [doc build]

* cross_val*

* [doc build]

* [doc build]
2018-08-20 15:22:42 -04:00
Naoya Kanai c1738a38a5 MNT update Travis dependencies to latest available versions (#11714) 2018-08-14 08:23:06 +10:00
ZJ Poh adddf00433 [MRG] np.ones -> np.full (#11628) 2018-07-23 09:49:01 +02:00
jeremiedbb bf11d44558 [MRG+1] Fix bad fp-comparisons (#11591)
* all close comparison

* base + random + wikipedia

* revert flake8

* comments
2018-07-18 21:09:04 +02:00
annaayzenshtat 2242c59fc8 [MRG] EHN: Change default n_estimators to 100 for random forest (#11542)
<!--
Thanks for contributing a pull request! Please ensure you have taken a look at
the contribution guidelines: https://github.com/scikit-learn/scikit-learn/blob/master/CONTRIBUTING.md#pull-request-checklist
-->

#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull requests
you resolved, so that they will automatically be closed when your pull request
is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
-->
Fixes #11128.

#### What does this implement/fix? Explain your changes.
Issues deprecation warning message for the default n_estimators parameter for the forest classifiers. Test added for the warning message when the default parameter is used.

#### Any other comments?


<!--
Please be aware that we are a loose team of volunteers so patience is
necessary; assistance handling other issues is very welcome. We value
all user contributions, no matter how minor they are. If we are slow to
review, either the pull request needs some benchmarking, tinkering,
convincing, etc. or more likely the reviewers are simply busy. In either
case, we ask for your understanding during the review process.
For more information, see our FAQ on this topic:
http://scikit-learn.org/dev/faq.html#why-is-my-pull-request-not-getting-any-attention.

Thanks for contributing!
-->
2018-07-17 14:42:59 -05:00
Joel Nothman 14e7c328df Restructure access to vendored/site Joblib (#11471)
In order to fix #11408, this swaps `joblib` and `_joblib`. It however, allows users to access joblib's `Memory` or `Parallel` functionality without accessing `sklearn.externals._joblib` by importing `Memory`, `Parallel`, etc. into `sklearn.utils`.
2018-07-17 18:02:11 +02:00
Andreas Mueller 0b8d362545 [MRG] Examples deprecations (#11561) 2018-07-17 00:08:04 -05:00
Loïc Estève 1557cb8a19 EXA Fix plot tomography l1 reconstruction (#11100)
* Ensure that the number of angles is integer

* Fix plot_tomography_l1_reconstruction.py

Error was: TypeError: 'numpy.float64' object cannot be interpreted as an integer.

[doc build]
2018-05-17 09:55:28 +10:00
Loïc Estève 2dc2261547 [MRG] Fix plot_stock_market.py after Google finance URL shut-down (#10958)
Also install pandas=0.13.1 (trusty version) in CicleCI Python 2 build.

Mention in README that some example may need pandas.
2018-04-14 21:54:03 +10:00
Loïc Estève 4989a95037
MNT make sure to not run plot_stock_market.py by renaming it (#10878)
Temporary fix until we find a replacement for the Google finance data.
2018-03-28 11:06:21 +02:00
Hanmin Qin 6f7394953b EXA avoid use of matplotlib.cm.spectral which has been removed (#10764) 2018-03-07 16:49:45 +11:00
Artiem K 63a2f0a02b MAINT Rename GraphLasso to GraphicalLasso (#10078) 2018-02-20 11:59:52 +11:00
Nicolas Goix 0788cd0c6a [MRG+2] ENH/FIX Outlier detection algorithms API consistency (#9015)
Consistent handling of decision_function, score_samples and contamination
2018-02-06 06:57:44 +11:00
Loïc Estève 01476b9421 [MRG] Run examples with Python 2 and 3 on CircleCI (#10167) 2017-12-19 17:17:15 +01:00
FarahSaeed b2723582f2 [MRG] DOC Replacing "the scikit" with "scikit-learn" (#10126) 2017-11-14 11:06:50 +01:00
Zhenqing Hu 3593194b69 Python 2 fix for plot_stock_market.py error (#9965) 2017-10-22 20:48:29 +02:00
syonekura 32fcc364ab [MRG+1] Setting max_iter/tol explicitly for SGD estimators in docs (#9776) 2017-10-04 17:28:32 +02:00
Loïc Estève cceb9b22ac Fix plot_out_of_core_classification.py. (#9815)
Starting from empty ~/scikit_learn_data got AttributeError: module
'sklearn.externals.six.moves.urllib_request' has no attribute
'urlretrieve'.
2017-09-25 08:21:44 +02:00
Loïc Estève 8b53659e41 plot_stock_market.py checks are based on dates rather than on hard-coded values 2017-09-18 11:17:17 +02:00
Joel Nothman 7425abcb00 FIX? Use ISO8601 dates and resolved URL for Google Finance 2017-09-18 11:11:39 +10:00
Joel Nothman fa8972bcdd FIX max date should use max, not min 2017-09-18 11:08:33 +10:00
Loïc Estève 7a2ce27a8f Add expected parameter to check min_date, max_date and len_data
rather than hardcoding the logic in the quotes_historical_google function.

Some minor variable renaming.
2017-09-15 15:59:58 +02:00
Loïc Estève 470c30050e Better treatment of empty data in plot_stock_market.py
Also use date rather than datetime because we do not need hour of day
2017-09-14 17:12:42 +02:00
Vrishank Bhardwaj 8fa7771d13 [MRG+1] Added exchange names to tickers in plot_stock_market.py (#9750) 2017-09-14 14:49:43 +02:00
Loïc Estève 9684f468ae Improve error message in plot_stock_market.py 2017-09-14 11:23:05 +02:00
Loïc Estève fb66956be4 Improve error messages in plot_stock_market when Google finance misbehaves.
Also few cosmetic changes.
2017-09-14 10:02:32 +02:00
Joel Nothman 4814bc1fd6 DOC/FIX put the sort in the right place 2017-09-13 20:09:12 +10:00
Joel Nothman 8c82943af1 More verbose output in plot_stock_market for debugging 2017-09-13 10:55:04 +10:00
hakaa1 8811d59464 [MRG+1] retry mechanism for plot_stock_market.py (#9437) 2017-07-25 13:48:57 +02:00
Sebastin Santy e33e84dbf7 [MRG] FIX Examples use int / int without __future__.division (#9426) 2017-07-23 12:11:49 +10:00
Andreas Mueller 5271a193c3 MRG Sphinx fixes (#9155) 2017-06-28 17:00:13 +02:00
Andreas Mueller 4d414d41e4 fix plot_stock_market.py to work on python2.7 and numpy1.6 (#9181) 2017-06-27 11:33:25 +02:00
Roman Yurchak b189254bd9 [MRG + 1] DOC remove deprecated option in HashingVectorizer examples (#9163)
* DOC remplace non_negative=True with alternate_sign=False in
HashingVectorizer examples

* Updated feature_extraction doc
2017-06-21 09:01:55 +10:00
plagree 1f6ac72df7 [MRG] DOC examples with correct notebook style (#9061)
* DOC examples with correct notebook style

* Modifications in examples/ to avoid unwanted notebook style

* Remove last notebook style example

* Space formatting to avoid notebook style
2017-06-20 14:48:57 +02:00
Loïc Estève b185c4e8f9 FIX examples with numpy 1.13 2017-06-09 00:21:41 +02:00
Alexandre Gramfort 48c1c41ef0 plt import standard + pep8 2017-06-07 07:32:53 +02:00
Sergei Lebedev 2c55551d0b [MRG] Updated plot_stock_market.py to use Google Finance (#9010)
* DOC updated plot_stock_market.py to use Google Finance

The implementations is intentionally very basic not to distract the users
from the example. Specifically unlike ``quotes_historical_yahoo_ochl`` it
does not cache downloaded data.

I also had to remove some symbols because the have no data on Google for
the specified date interval. These are WBA, LMT, KFT and MTU.

Closes #8899

* DOC removed plot_stock_market.py from expected failing examples

* Addressed review comments

* Addressed another pass of review comments
2017-06-07 07:31:10 +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