简体   繁体   English

无法加载 graphlab.sframe

[英]Cannot load graphlab.sframe

I have joined Machine Learning course on coursera.我已经加入了 Coursera 上的机器学习课程。 I am facing an issue while executing following command:我在执行以下命令时遇到问题:

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

THe error is as follows:错误如下:

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

Can you please help me to resolve this issue?你能帮我解决这个问题吗?

Go to terminal and run:转到终端并运行:

unzip home_data.gl.zip

You will see following files in directory home_data.gl :您将在home_data.gl目录中看到以下文件:

在此处输入图片说明

Now in ipython, run:现在在 ipython 中,运行:

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

which will display the data in tabular format:它将以表格格式显示数据:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM