当前位置: 首页 > 工具软件 > SFrame > 使用案例 >

SFrame

澹台承
2023-12-01

安装

https://turi.com/download/install-graphlab-create.html

快速使用

import graphlab

项目价格
Importing and parsing dataurl=https://static.turi.com/datasets/millionsong/song_data.csv
songs = graphlab.SFrame.read_csv(url)
Visualizationssongs.show()
Transforming columnssongs[‘num_words’] = songs[‘title’].apply(lambda x: len(x.split(’ ‘)))
Aggregationssongs.groupby(‘artist_name’, {‘total’: graphlab.aggregate.COUNT})
Create modelsurl =https://static.turi.com/datasets/regression/Housing.csv
x = graphlab.SFrame.read_csv(url)
m = graphlab.linear_regression.create(x, target=’price’)
 类似资料:

相关阅读

相关文章

相关问答