로젠블랫이 1958년에 발표한 논문 THE PERCEPTRON: A PROBABILISTIC MODEL FOR INFORMATION STORAGE AND ORGAZNIZATION IN THE BRAIN
If we are eventually to understand the capability of higher organisms for perceptual recognition, generalization, recall, and thinking, we must first have answers to three fundamental question
1. How is information about the physical world sensed, or detected, by the biological system?
2. In what form is information stored, or remembered?
3. How does information contained in storage, or in memory, influence recognition and behavior?
민스키는 조건문을 사용하는 전문가 시스템인 기호주의를 주류로 만들었다.
로젠블랫은 기호주의 대신 연결주의를 선택
기호주의
인간의 지식을 기호화해 컴퓨터에 입력하면 사람과 똑같은 출력을 내줄 것
연결주의, 퍼셉트론
컴퓨터도 인간 뇌의 신경망처럼 학습시키면 근삿값을 출력할 것
입력 와 각각 가중치 에 따른 결과 y라고 할 때,
여기서 는 threshold
를 (bias) 로 바꾸면,
def XOR(x1, x2):
s1 = NAND(x1, x2)
s2 = OR(x1, x2)
y = AND(s1, s2)
return y
-> 다층의 퍼셉트론이 필요
여기서는 활성화 함수를 로 표현
출력을 0과 1사이로 제한해줌
수식
파이썬 코드
def sigmoid(x):
return 1 / (1 + np.exp(-x))
수식
파이썬 코드
def relu(x):
return np.maximum(0, x)
X = np.array([1, 2])
W = np.array([[1, 3, 5], [2, 4, 6]])
np.dot(X, M)
수식
파이썬 코드
def softmax(a):
return np.exp(a) / np.sum(np.exp(a))
-> 출력을 다 더하면 1
-> 당연히 softmax도 에러가 남
def softmax(a):
c = np.max(a)
exp_a = np.exp(a - c)
return exp_a / np.sum(exp_a)
제로베이스 강의를 수강하며 작성한 글입니다.