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’) |