【问题标题】:Scikit-learn's fetch does not download datasetScikit-learn 的 fetch 不下载数据集
【发布时间】:2013-04-21 18:49:31
【问题描述】:

我从 iPython 执行

from sklearn.datasets import fetch_olivetti_faces

命令似乎立即执行,In [43] 出现在命令前面。

但是我在get_home_data() 给出的位置没有找到任何东西,我也找不到

data = fetch_olivetti_faces()

错误:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-44-6a7f4fc09c38> in <module>()
      1 # fetch the faces data
----> 2 data = fetch_olivetti_faces()

C:\Python33\lib\site-packages\sklearn\datasets\olivetti_faces.py in fetch_olivetti_faces(data_home, shuffle, random_state, download_if_missing)
     87               % (DATA_URL, data_home)))
     88         fhandle = urllib.request.urlopen(DATA_URL)
---> 89         buf = StringIO(fhandle.read())
     90         mfile = loadmat(buf)
     91         faces = mfile['faces'].T.copy()

TypeError: initial_value must be str or None, not bytes

downloading Olivetti faces from http://cs.nyu.edu/~roweis/data/olivettifaces.mat to C:\Users\me\scikit_learn_data

【问题讨论】:

    标签: python python-3.x scipy scikit-learn


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 2013-04-22
      • 2015-04-14
      • 2016-07-13
      • 2022-06-18
      • 1970-01-01
      • 1970-01-01
      • 2021-05-10
      • 1970-01-01
      • 2019-10-04
      相关资源
      最近更新 更多