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

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

by 김영하, 케이티 워
December 2020
Beginner to intermediate
256 pages
5h 15m
Korean
Hanbit Media, Inc.
Content preview from 안전한 인공지능 시스템을 위한 심층 신경망 강화
141
6
적대적 섭동을 생성하는 방법
JSMA
는 각각의 지도
S
+
S
-
에서 가장 두드러진 픽셀 하나를 가져와서 각각의 관련 방향으
로 약간씩 변경되는 한 쌍의 픽셀을 제공합니다. 입력이 적대적으로 분류될 때까지 전체 과
정을 반복합니다.
다음 예제 코드는
4
장에서 만든
ResNet50
분류기에
Foolbox
를 사용한
SaliencyMapAttack
를 보여줍니다.
NOTE
_
예제 코드: 돌출 공격
이 공격에 대한 전체 예제 코드는 주피터 노트북(
chapter06
/
resnet50
_
foolbox
_
saliency
.
ipynb
)에
수록되었습니다.
원본 이미지(비적대적 )를 선택하고 분류기로 실행해보겠습니다.
original_image_path = '../images/koala.jpg'
x = image_from_file(original_image_path, [224,224]) ➊
이 헬퍼 유틸리티는 깃허브에 있습니다. 파일을 읽고 크기를 조정합니다.
관련 라이브러리와
ResNet50
모델을 불러옵니다. 비적대적 이미지를 모델에 전달해
ResNet50
이 반환한 예측을 확인합니다.
import tensorflow as tf
from tensorow import keras
from keras.applications.resnet50 import ResNet50
from
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