Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- label
- pandas
- 핑거스타일
- mysql
- LIST
- C#
- SSH
- pip
- Selenium
- C++
- JSON
- 프로그래머스
- Python
- ubuntu
- Visual Studio
- pytorch
- 오류
- Linux
- 채보
- Docker
- VS Code
- C
- OpenCV
- YOLO
- 컨테이너
- Numpy
- paramiko
- error
- 기타 연주
- windows forms
Archives
- Today
- Total
기계는 거짓말하지 않는다
다층 퍼셉트론(Multi-Layer Perceptron) XOR 본문
선행: 단층 퍼셉트론
단층 퍼셉트론(Single-Layer Perceptron) AND, OR, NAND
단층 퍼셉트론은 값을 보내는 Input Layer와 출력하는 Output Layer 두 단계로 나뉨 활성화 함수가 사용되지 않으며 입출력 레이어 중간에 Hidden Layer가 추가되면 다층 퍼셉트론(Multi-Layer Perceptron)이 된
machine-does-not-lie.tistory.com
퍼셉트론은 층을 쌓아 다층 퍼셉트론(Multi-Layer Perceptron)을 만들 수 있다.
단층 퍼셉트론의 AND, OR, NAND를 이용한 층을 하나 더 쌓아 XOR 표현(비선형)이 가능하다.
def XOR_gate(x1, x2):
o1 = OR_gate(x1, x2)
o2 = NAND_gate(x1, x2)
result = AND_gate(o1, o2)
return result
print(XOR_gate(0, 0), XOR_gate(0, 1), XOR_gate(1, 0), XOR_gate(1, 1))
# 0 1 1 0
'AI' 카테고리의 다른 글
min, max 좌표 YOLO label format 변환 (0) | 2022.05.27 |
---|---|
활성화 함수(Activation Function) (0) | 2021.10.20 |
Pytorch Multiclass Classification (0) | 2021.10.11 |
Pytorch torchvision transforms (0) | 2021.09.05 |
Pytorch Dataset, DataLoader (0) | 2021.09.05 |
Comments