我正在尝试使用推荐系统,我已经安装了 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')