의 다차원 배열을 사용합니다. 넘파이 배열을 잘 쓰면 아주 적은 코드만으로 신경망의 순방향
처리를 완성할 수 있습니다.
그림
3-15
3
층 신경망 : 입력층(
0
층)은
2
개, 첫 번째 은닉층(
1
층)은
3
개, 두 번째 은닉층(
2
층)은
2
개, 출력층(
3
층)은
2
개의 뉴런으로 구성된다.
3.4.1
표기법 설명
이번 절에서는 신경망에서의 처리를 설명하며
w
12
(
1
)
과
a
1
(
1
)
같은 표기법을 선보입니다. 조금 복
잡해 보일 수 있는데, 이번 절에서만 사용하는 표기이니 가볍게 건너뛰고 읽어도 문제는 없습
니다.
WARNING
_ 이번 절의 핵심은 신경망에서의 계산을 행렬 계산으로 정리할 수 있다는 것입니다. 신경망 각
층의 계산은 행렬의 내적으로 처리할 수(더 큰 관점에서 생각할 수) 있으니, 세세한 표기 규칙은 잊어버려도
앞으로의 설명을 이해하는 데 전혀 지장이 없습니다.
그럼 하나씩 정의해봅시다. [그림
3
-
16
]을 보세요. [그림
3
-
16
]은 입력층의 뉴런
x
2
에서 다
음 층의 뉴런
a
1
(
1
)
으로 향하는 선 위에 가중치를 표시하고
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.