GraphLab Create Quick Start

Need help with a project now? The GraphLab team can help.

Learn to code machine learning apps.

Have a question?
1
Get Your Product Key

Join the beta! It is free and easy. Sign up and instantly receive a GraphLab Create product key for your individual use. We will also send you a confirmation email.

All fields are required.
By signing up, I agree to the GraphLab Create EULA.

Welcome to the beta! Your product key has been generated. To make configuration easy, we have provided a shell command that will insert your product key in a GraphLab Create configuration file located in your home directory. Before running Python, paste the following code into your terminal window and execute. GraphLab Create will reference this file upon import.

(mkdir -p ~/.graphlab && echo -e "[Product]\nproduct_key={key}" > ~/.graphlab/config && echo "Configuration file written") || echo "Configuration file not written"

Successful completion of this step will show "Configuration file written" in your terminal window. Now, proceed to Step 2.

A product key has already been generated for this email address. Would you like us to resend your confirmation email to view your product key?
The confirmation email has been sent to your registered email address. Check your email to view your product key. Follow the link in the email to return to this Quick Start and proceed with the installation.
2
Install GraphLab Create (beta)

Install the GraphLab Create Python library using pip. You can choose to install GraphLab system-wide or in a virtual Python environment.

What do I need?

  • Python 2.7 and pip
  • Mac OS X: 10.8 or 10.9 with XCode command line tools installed
  • Linux: Any distribution with GLIBC >= 2.11. (Ubuntu >= 11.04, Debian >= 6, RHEL >= 6, SLES >= 11)

Choose the installation that works best for you:

Copy and paste the following code into your terminal window and hit "Enter".

sudo pip install graphlab-create==0.9

If you are unsure about installing or upgrading these libraries system-wide we recommend installation with virtualenv.

If you want to contain the installation of GraphLab Create, don't have root permissions, or are one of those Python hackers that has five different versions of Python on your machine, use a virtual environment:

virtualenv graphlab
. graphlab/bin/activate
pip install graphlab-create==0.9

Or, do a system-wide install.


Detailed installation instructions for Mac OS X and Linux

3

Start Creating: Hello World

Copy and paste the following code into your Python console.

import graphlab
sf = graphlab.SFrame(data='http://graphlab.com/files/datasets/freebase_performances.csv')
print sf
g = graphlab.Graph()
g = g.add_edges(sf, 'actor_name', 'film_name')
pr = graphlab.pagerank.create(g)
pr.get('pagerank').topk(column_name='pagerank')

You've just used the fundamentals of GraphLab Create!

What's next? Go learn with GraphLab Notebooks!

The Getting Started with GraphLab Create is a good notebook for beginners. Download the code and have fun. It will give you a broad overview of how to use GraphLab Create. We’ll introduce the SFrame, a tabular structure ideal for data manipulation and feature building, and the Graph which is a structure ideal for sparse relationship data. We’ll also introduce our machine learning toolkits. Using these, you’ll ingest data, build a graph, and run a graphical model to generate an insight. Check out all of our notebooks!, there's a lot to see.

Need help with a project now? The GraphLab team can help.

Learn to code machine learning apps.

Have a question?