gpt4 book ai didi

python - 无法加载 graphlab.sframe

转载 作者:行者123 更新时间:2023-11-30 09:49:09 26 4
gpt4 key购买 nike

我已加入 coursera 上的机器学习类(class)。我在执行以下命令时遇到问题:

    sales = graphlab.SFrame('home_data.gl/')

错误如下:

IOError                             Traceback (most recent call last)
<ipython-input-9-e5b5a1ead746> in <module>()
----> 1 sales = graphlab.SFrame('home_data.gl')


C:\Users\admin\Anaconda2\envs\gl-env\lib\site-packages\graphlab
\data_structures\sframe.pyc in __init__(self, data, format, _proxy)
951 pass
952 else:
--> 953 raise ValueError('Unknown input type: ' + format)
954
955 sframe_size = -1

C:\Users\admin\Anaconda2\envs\gl-env\lib\site-packages\graphlab\cython\context.pyc in __exit__(self, exc_type, exc_value, traceback)
47 if not self.show_cython_trace:
48 # To hide cython trace, we re-raise from here
---> 49 raise exc_type(exc_value)
50 else:
51 # To show the full trace, we do nothing and let exception propagate

IOError: Cannot open C:/Users/admin/home_data.gl/dir_archive.ini for read. Cannot open C:/Users/admin/home_data.gl/dir_archive.ini for reading

您能帮我解决这个问题吗?

最佳答案

转到终端并运行:

unzip home_data.gl.zip

您将在目录home_data.gl中看到以下文件:

enter image description here

现在在 ipython 中运行:

sales = graphlab.SFrame('home_data.gl/')
sales

将以表格格式显示数据:

enter image description here

关于python - 无法加载 graphlab.sframe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48100762/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com