8000 [RELEASE] 0.18.2 bump version, added whatsnew by amueller · Pull Request #9167 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[RELEASE] 0.18.2 bump version, added whatsnew #9167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build_tools/circle/build_doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ popd
# Using sphinx 1.4 for now until sphinx-gallery has a fix for sphinx 1.5
# See https://github.com/sphinx-gallery/sphinx-gallery/pull/178 for more details
conda create -n testenv --yes --quiet python numpy scipy \
cython nose coverage matplotlib sphinx=1.4 pillow
cython nose coverage matplotlib=1.5.3 sphinx=1.4 pillow docutils=0.12
source activate testenv

# Build and install scikit-learn in dev mode
Expand Down
3 changes: 2 additions & 1 deletion doc/sphinxext/sphinx_gallery/gen_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def setup(app):
app.add_config_value('sphinx_gallery_conf', gallery_conf, 'html')
app.add_stylesheet('gallery.css')

if 'sphinx.ext.autodoc' in app._extensions:
extensions_attr = '_extensions' if hasattr(app, '_extensions') else 'extensions'
if 'sphinx.ext.autodoc' in getattr(app, extensions_attr):
app.connect('autodoc-process-docstring', touch_empty_backreferences)

app.connect('builder-inited', generate_gallery_rst)
Expand Down
25 changes: 25 additions & 0 deletions doc/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,31 @@
Release history
===============

.. _changes_0_18_2:

Version 0.18.2
==============

**June 20, 2017**

.. topic:: Last release with Python 2.6 support

Scikit-learn 0.18 is the last major release of scikit-learn to support Python 2.6.
Later versions of scikit-learn will require Python 2.7 or above.


Changelog
---------
- Fixes for compatibility with NumPy 1.13.0: :issue:`7946` :issue:`8355` by `Loic Esteve`_.

- Minor compatibility changes in the examples :issue:`9010` :issue:`8040` :issue:`9149`.


Code Contributors
-----------------
Aman Dalmia, Loic Esteve, Nate Guerin, Sergei Lebedev


.. _changes_0_18_1:

Version 0.18.1
Expand Down
25 changes: 13 additions & 12 deletions examples/applications/plot_stock_market.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
###############################################################################
# Retrieve the data from Internet


def quotes_historical_google(symbol, date1, date2):
"""Get the historical data from Google finance.

Expand All @@ -101,15 +102,15 @@ def quotes_historical_google(symbol, date1, date2):
'output': 'csv'
})
url = 'http://www.google.com/finance/historical?' + params
with urlopen(url) as response:
dtype = {
'names': ['date', 'open', 'high', 'low', 'close', 'volume'],
'formats': ['object', 'f4', 'f4', 'f4', 'f4', 'f4']
}
converters = {0: lambda s: datet 8000 ime.strptime(s.decode(), '%d-%b-%y')}
return np.genfromtxt(response, delimiter=',', skip_header=1,
dtype=dtype, converters=converters,
missing_values='-', filling_values=-1)
response = urlopen(url)
dtype = {
'names': ['date', 'open', 'high', 'low', 'close', 'volume'],
'formats': ['object', 'f4', 'f4', 'f4', 'f4', 'f4']
}
converters = {0: lambda s: datetime.strptime(s.decode(), '%d-%b-%y')}
return np.genfromtxt(response, delimiter=',', skip_header=1,
dtype=dtype, converters=converters,
missing_values='-', filling_values=-1)


# Choose a time period reasonably calm (not too long ago so that we get
Expand Down Expand Up @@ -181,8 +182,8 @@ def quotes_historical_google(symbol, date1, date2):
quotes_historical_google(symbol, d1, d2) for symbol in symbols
]

close_prices = np.stack([q['close'] for q in quotes])
open_prices = np.stack([q['open'] for q in quotes])
close_prices = np.vstack([q['close'] for q in quotes])
open_prices = np.vstack([q['open'] for q in quotes])

# The daily variations of the quotes are what carry most information
variation = close_prices - open_prices
Expand Down Expand Up @@ -239,7 +240,7 @@ def quotes_historical_google(symbol, date1, date2):

# Plot the edges
start_idx, end_idx = np.where(non_zero)
#a sequence of (*line0*, *line1*, *line2*), where::
# a sequence of (*line0*, *line1*, *line2*), where::
# linen = (x0, y0), (x1, y1), ... (xm, ym)
segments = [[embedding[:, start], embedding[:, stop]]
for start, stop in zip(start_idx, end_idx)]
Expand Down
2 changes: 1 addition & 1 deletion sklearn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# Dev branch marker is: 'X.Y.dev' or 'X.Y.devN' where N is an integer.
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
#
__version__ = '0.18.1'
__version__ = '0.18.2'


try:
Expand Down
0