【发布时间】:2018-03-20 06:41:55
【问题描述】:
我正在尝试使用推荐系统,我已经安装了 graphlab 并获得了产品密钥等等。加载数据集后,它会显示数据集的所有信息 但是当我尝试使用 graphlab 时,它显示错误 AttributeError: 'module' object has no attribute 'SFrame'。 我尝试重新启动内核并更新 Conda。
AttributeErrorTraceback (most recent call last)
<ipython-input-8-d0e602ca53e0> in <module>()
1 import graphlab
----> 2 train_data = graphlab.SFrame.read_csv('ratings_base')
3 train_data = graphlab.SFrame.read_csv('ratings_test')
AttributeError: 'module' object has no attribute 'SFrame'
import graphlab
train_data = graphlab.SFrame.read_csv('ratings_base')
train_data = graphlab.SFrame.read_csv('ratings_test')
【问题讨论】:
标签: python-2.7 machine-learning graphlab recommender-systems