【问题标题】:scikit learn example no longer working?scikit 学习示例不再工作?
【发布时间】:2014-07-10 16:35:45
【问题描述】:

我正在尝试简单地在

处运行脚本

http://scikit-learn.org/stable/auto_examples/applications/plot_stock_market.html

但是它给了

File "./sparsecov-example.py", line 92, in <module>
    for symbol in symbols]
  File "/usr/lib/pymodules/python2.7/matplotlib/finance.py", line 236, in quotes_historical_yahoo
    fh = fetch_historical_yahoo(ticker, date1, date2, cachename)
  File "/usr/lib/pymodules/python2.7/matplotlib/finance.py", line 197, in fetch_historical_yahoo
    with contextlib.closing(urlopen(url)) as urlfh:
  File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

财务数据是否不再可用?

【问题讨论】:

    标签: scikit-learn


    【解决方案1】:

    某些股票代码已更改或消失。试试latest version of the example,它已被修复以处理此问题。

    【讨论】:

    • 完美运行。谢谢。
    猜你喜欢
    • 1970-01-01
    • 2018-10-21
    • 2016-12-20
    • 2014-12-27
    • 2014-07-13
    • 2015-12-22
    • 2016-07-16
    • 1970-01-01
    • 2018-05-28
    相关资源
    最近更新 更多