Notice
Recent Posts
Recent Comments
Today
Total
05-04 17:52
Archives
관리 메뉴

Jeongchul Kim

Machine Learning with the tools IPython Notebook & GraphLab Create on AWS 본문

MachineLearning

Machine Learning with the tools IPython Notebook & GraphLab Create on AWS

김 정출 2017. 2. 4. 16:25

Machine Learning with the tools IPython Notebook & GraphLab Create on AWS


출처 : Coursera / Emily Fox & Carlos Guestrin / Machine Learning Specialization / University of Washington



Machine Learning Introduction

Machine Learning with the tools IPython Notebook & GraphLab Create



클라우드에서 jupyter(IPython Notebook)로 GraphLab Create를 사용하는 두 번째 Option 입니다.

무료 AWS 계정을 만드는 것이 필요합니다.



Amazon AWS Sign in

https://console.aws.amazon.com

회원가입을 진행합니다.


로그인을 하면 다음과 같습니다.


Services 메뉴에서 Compute에 EC2를 선택합니다.


EC2 Dashboard에서 Instances를 선택합니다.


Launch Instance를 클릭합니다.


Communit AMIs를 선택하고 Search Community AMI에서 graphlab-create-2.1-coursera-1를 검색합니다.


Select 버튼을 클릭합니다.


Review and Launch 버튼을 클릭합니다.


Edit Security Groups 버튼을 클릭합니다.


Add Rule 버튼을 클릭하고

Type : Custom TCP Rule

Protocol : TCP

Port Range : 8888

Source : Anywhere

Review and Launch 버튼을 클릭합니다.


Launch 버튼을 클릭합니다.


목록 박스에서 Proceed without a key pair를 선택하고

체크 박스(I acknowledge that I will not be able to connect to this instance unless I already know the password built into this AMI)를 선택합니다.

Launch Instances를 선택합니다.


View Instances를 클릭합니다.


다음의 Dashboard로 이동합니다. Public IP를 확인합니다.


http://public ip address:8888/tree 로 이동합니다.


다음의 jupyter에서 New 목록 박스를 선택하여 Notebooks - Python2를 선택합니다.


다음의 창에서 Python 코드를 입력합니다.

# set product key

import graphlab

graphlab.product_key.set_product_key(‘GraphLab-Create Product Key를 입력’)


# output activate product key

graphlab.product_key.get_product_key()


Run 버튼을 클릭합니다.


상단 부에 Untitled에 setup-graphlab-crate를 입력하고 OK버튼을 클릭합니다.

FIle에서 Save and Check point를 클릭하고 Close and Halt 버튼을 클릭합니다.


이상 세팅을 마칩니다.


Comments