Giter Club home page Giter Club logo

sm_edu's Introduction

AWS 의 Sagemaker 를 이용한 머신 러닝 시스템 구축

강의에서 다룰 내용

  • AWS를 활용한 개발환경 이해하기
  • AWS IAM을 이용한 루트키 및 액세스 키 관리화기
  • AWS를 활용한 시스템 연동 이해하기
  • Github 를 이용한 개발 협업 이해하기
  • 로컬 컴퓨터를 이용한 머신 러닝 개발 환경 이해하기
  • Anaconda 를 활용한 python 가상환경 이해하기
  • Jupyter notebook 개발환경 이해하기
  • Docker 를 이용한 개발환경 구축 이해하기
  • AWS Sagemaker 이해하기
  • AWS S3 활용법 이해하기
  • 시계열 데이터 예측을 위한 DeepAR 알고리듬 이해하기
  • AWS Sagemaker 를 이용한 데이터 훈련 및 테스트 실습
  • pandas, boto3 라이브러리 활용

Day #1

AWS 계정 준비

Github

git clone https://github.com/mintbass/sm_edu.git

로컬 개발 환경 구축

  • Python 3.7 설치 : https://www.python.org/downloads/release/python-376/

  • Anaconda를 활용한 python 가상환경 설정하기 : http://bitly.kr/2DIFGaDe

    conda list
    
    • 가상환경 생성
    conda create -n smedu pandas tensorflow
    
    • 가상환경 시작
    conda activate smedu
    
    • 가상환경 종료
    conda deactivate
    
    • 가상환경 내보내기 (export)
    pwd
    /Users/mint/git/sm_edu
    conda env export > smedu.yaml
    
  • Jupyter 설치하기 (https://lsjsj92.tistory.com/531)

    • 가상환경에 jupyter notebook 설치
    conda install jupyter notebook
    
    • jupyter notebook에서 python 패키지를 관리할 수 있도록 해주는 nb_conda 설치
    conda install nb_conda
    
    • jupyter notebook 시작하기
    (smedu) mint@Marcuss-MacBook-Pro sm_edu % jupyter notebook
    [I 15:01:43.393 NotebookApp] [nb_conda_kernels] enabled, 2 kernels found
    [W 15:01:44.295 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
    [I 15:01:44.452 NotebookApp] [nb_conda] enabled
    [I 15:01:44.453 NotebookApp] Serving notebooks from local directory: /Users/mint/git/sm_edu
    [I 15:01:44.453 NotebookApp] The Jupyter Notebook is running at:
    [I 15:01:44.453 NotebookApp] http://Marcuss-MacBook-Pro.local:8888/?token=1c427019f02e1e5a13665e157679ecd4bbf8c40ef0e2df3f
    [I 15:01:44.453 NotebookApp]  or http://127.0.0.1:8888/?token=1c427019f02e1e5a13665e157679ecd4bbf8c40ef0e2df3f
    [I 15:01:44.453 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
    [C 15:01:44.476 NotebookApp]
    
        To access the notebook, open this file in a browser:
            file:///Users/mint/Library/Jupyter/runtime/nbserver-13592-open.html
        Or copy and paste one of these URLs:
            http://Marcuss-MacBook-Pro.local:8888/?token=1c427019f02e1e5a13665e157679ecd4bbf8c40ef0e2df3f
         or http://127.0.0.1:8888/?token=1c427019f02e1e5a13665e157679ecd4bbf8c40ef0e2df3f
    

Docker를 이용한 개발환경 구축

Day #2

Python 개발 툴

Amazon CLI(Command Line Interface)

aws configure
AWS Access Key ID [None]: AKIAI44QH8DHBEXAMPLE
AWS Secret Access Key [None]: je7MtGbClwBF/2Zp9Utk/h3yCo8nvbEXAMPLEKEY
Default region name [None]: ap-northeast-2
Default output format [None]: 

Python Library 맛보기

  • pandas
  • boto3 를 이용한 S3 리소스 액세스
    • conda install boto3
    • S3에 버킷 만들기 (smedu)
    • IAM을 이용한 액세스 키 생성하기
    • aws configure 를 이용해서 AWS 프로파일 생성
    • boto3_S3_access.py 실행

AWS Sagemaker

Day #3

Sagemaker 를 이용한 데이터 훈련 및 테스트 실습

  • DeepAR 을 이용한 시계열 데이터 예측 on Sagemaker Jupyter Notebook 실습
  • DeepAR 을 이용한 시계열 데이터 예측 on 로컬 컴퓨터 실습

Day #4

sm_edu's People

Contributors

marcus-eip avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.