软件链接
https://turi.com/download/install-graphlab-create.html
常见函数
import graphlab
- Importing and parsing data
url=https://static.turi.com/datasets/millionsong/song_data.csv’
songs = graphlab.SFrame.read_csv(url) - Visualizations
songs.show() - Transforming columns
songs[‘num_words’] = songs[‘title’].apply(lambda x: len(x.split(’ ‘))) - Aggregations
songs.groupby(‘artist_name’, {‘total’: graphlab.aggregate.COUNT}) - Create models
url =https://static.turi.com/datasets/regression/Housing.csv‘
x = graphlab.SFrame.read_csv(url)
m = graphlab.linear_regression.create(x, target=’price’)
原文:https://blog.csdn.net/u014471250/article/details/78311880