Skip to Content
안전한 인공지능 시스템을 위한 심층 신경망 강화
book

안전한 인공지능 시스템을 위한 심층 신경망 강화

by 김영하, 케이티 워
December 2020
Beginner to intermediate
256 pages
5h 15m
Korean
Hanbit Media, Inc.
Content preview from 안전한 인공지능 시스템을 위한 심층 신경망 강화
136
2
적대적 입력 생성하기
x_adv = attack(input_or_adv = x,
label = y,
unpack = False) ➊
unpack
=
False
를 지정하면 이미지가 아닌
foolbox
.
adversarial
.
Adversarial
객체가
반환됩니다. 적대적 사례의 이미지와 원본의 거리와 같은 기타 정보는 이 객체를 통해 접근
할 수 있습니다.
이제 결과를 출력해보겠습니다 (그림
6
-
7
참조).
preds = model.predict(np.array([x_adv.image])) ➊
plt.figure()
# Plot the original image
plt.subplot(1, 3, 1)
plt.title(y_name
plt.imshow(x, cmap=plt.cm.binary)
plt.axis('off')
# Plot the adversarial image
plt.subplot(1, 3, 2
plt.title(class_names[np.argmax(preds[0])])
plt.imshow(x_adv.image, cmap=plt.cm.binary)
plt.axis('off')
# Plot the difference
plt.subplot(1, 3, 3)
plt.title('Difference')
difference = x_adv.image - ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’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
QuotationMarkI 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
QuotationMarkI’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
QuotationMarkI'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.
Mark W.
Embedded Software Engineer

You might also like

코드로 인프라 관리하기: 효율적인 인프라 관리를 위한 자동화 방법

코드로 인프라 관리하기: 효율적인 인프라 관리를 위한 자동화 방법

강재준
실무자를 위한 그래프 데이터 활용법

실무자를 위한 그래프 데이터 활용법

마티아스 브뢰헬러, 데니즈 고즈넬

Publisher Resources

ISBN: 9791162243534