introduction to ai ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3....

23
Introduction to AI 김준호

Upload: nguyenque

Post on 24-May-2018

247 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

Introduction to AI

김준호

Page 2: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

1. 4 주간 실습 내용 소개

2. 실습 환경 구축

3. python tutorial

Page 3: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

실습 2 (4 주)

1. 환경 구축 / python tutorial

2. python / numpy tutorial

3. perceptron 구현

4. MLP & backpropagation 구현

Page 4: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

실습 진행

1. python / numpy

• 기초 설명 & codecademy 진행

2. python /numpy tutorial

• numpy로 dataset 생성

• perceptron 구현하여 classification

3. MLP & backpropagation

• 2 layer MLP 구현 / 확장

Page 5: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

Codecademy

Page 6: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

python tensorflow

jupyter

환경 구축

Page 7: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

환경 구축 - python(windows 기준)

https://www.python.org/downloads/

python 3.5.2 설치

Page 8: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

환경 구축 - python(windows 기준)

Page 9: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

환경 구축 - python(windows 기준)

설치 파일을 처음 실행시켰을 때 Add Path 를 체크해주세요

Page 10: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

환경 구축 - python(windows 기준)

Page 11: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

환경 구축 - python(windows 기준)

cmd 창을 열고 python —version

python이 제대로 설치되었나 확인

버전이 뜨면 제대로 설치 된 것

Page 12: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

환경 구축 - tensorflow

tensorflow 사용을 좀 더 요잉하게 해주는 tool들 설치

pip install numpy matplotlib pillow h5py

tensorflow CPU 버전 설치

pip install —upgrade tensorflow

Page 13: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

환경 구축 - jupyter

jupyter 설치

pip install jupyter

jupyter notebook 띄우기

jupyter notebook

Page 14: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

환경 구축 - jupyter

Page 15: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

python Tutorial

Page 16: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

python Tutorial

• 프로그래밍 언어의 필요성

• 컴퓨터 시스템을 구동하기 위한 소프트웨어를 작성하는 언어

• why python?

• C 보다 상위 차원의 언어

• 확장성이 용이해 쉽고 구현된 Library 들이 많음

Page 17: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

python Tutorial

• 변수(Variable)

• 연산(operation)

• 객체(Object)

• 자료형

• 정수(Integer)

• 실수(Float)

• 복소수(Complex)

• 문자열(String)

• 출력

• print(“hello world!”)

Page 18: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

python Tutorial

• Data Structure

• List

• Indexing

• 2 차원 List

• Slicing

Page 19: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

python Tutorial

• if / else (조건문)

• for (반복문)

Page 20: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

python Tutorial

• function

• def

• return

• parameter

• variable scope

Page 21: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

python Tutorial

• import

• class

• inheritance

• etc…

https://wikidocs.net/book/1

(jump to python)

Page 22: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

실습1 Assignment: python codecademy(8-Loops까지)

• due: 4/5

• 제출: eTL Q&A

• 형식: [python]2017-11111_김준호

• 내용: screenshot

Page 23: Introduction to AI ·  · 2018-03-22환경 구축 / python tutorial 2. python / numpy tutorial 3. perceptron 구현 4. MLP & backpropagation ... 실습1 Assignment: python codecademy(8-Loops까지)

실습1 Assignment: python codecademy

8 - Loops 가 나오도록