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

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

by 김영하, 케이티 워
December 2020
Beginner to intermediate
256 pages
5h 15m
Korean
Hanbit Media, Inc.
Content preview from 안전한 인공지능 시스템을 위한 심층 신경망 강화
68
1
인공지능을 속이는 기술
보시다시피, 케라스는 훈련과 관련해 훈련 단계마다 모델의 손실과 정확도를 출력합니다. 모델
정확도는 정확하게 분류되었는지에 대한 훈련 데이터의 백분율입니다. 모델 정확도가 높아질
수록 손실은 줄어듭니다. 이것이 바로 경사 하강법의 결과입니다. 앞서 [그림
3
-
8
]에서 설명했
듯이 모델의 가중치와 편향이 손실을 최소화하도록 조정됩니다.
케라스는 훈련한 후 생성한 모델의 정확성을 확인하기 위해 다음과 같은 방법을 제공합니다.
훈련 시 제공한 데이터가 아닌 다른 데이터에서도 모델이 정확히 분류하기를 원하기 때문에 이
번에는 결과 라벨이 제공되는 평가 데이터셋을 사용합니다.
test_loss, test_acc = model.evaluate(test_images, test_labels)
print('Model accuracy based on test data:', test_acc)
평가한 결과는 다음과 같습니다.
313/313 [=====================] - 0s 900us/step - loss: 0.3672 - accuracy: 0.8674
Model accuracy based on test data: 0.8673999905586243
모델 정확도는 평가 데이터가 훈련 데이터보다 약간 더 낮습니다. 이는 모델이 평가 데이터에 ...
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