Skip to Content
살아 움직이는 머신러닝 파이프라인 설계: 텐서플로와 함께하는 머신러닝 프로젝트 자동화
book

살아 움직이는 머신러닝 파이프라인 설계: 텐서플로와 함께하는 머신러닝 프로젝트 자동화

by 송호연, 하네스 하프케, 캐서린 넬슨
October 2021
Beginner to intermediate
416 pages
9h 3m
Korean
Hanbit Media, Inc.
Content preview from 살아 움직이는 머신러닝 파이프라인 설계: 텐서플로와 함께하는 머신러닝 프로젝트 자동화
214
살아 움직이는 머신러닝 파이프라인 설계
8.11.1
REST
로 모델 예측 가져오기
REST
로 모델 서버를 호출하려면 원활한 통신을 위해 파이썬 라이브러리가 필요합니다. 현재
표준 라이브러리는
requests
입니다. 라이브러리를 설치합니다.
$ pip install requests
다음은
POST
요청의 예입니다.
import
requests
url = “http://some-domain.abc”
payload = {“key_1”: “value_1”}
r = requests.post(url, json=payload) # 요청을 제출합니다.
print
(r.json()) # HTTP 응답을 봅니다.
# {‘data’: ...}
URL
구조
모델 서버에 대한
HTTP
요청
URL
은 다음 모델과 추론할 버전 정보를 포함합니다.
http://{HOST}:{PORT}/v1/models/{MODEL_NAME}:{VERB}
HOST
호스트는 모델 서버의
IP
주소나 도메인 이름입니다. 클라이언트 코드를 실행하는 동일한 시스템에서 모
델 서버를 실행한다면 호스트를
localhost
로 설정할 수 있습니다.
PORT
요청
URL
에서 포트를 지정해야 합니다.
REST
API
의 표준 포트는
8501
입니다. 서비스 생태계의 다른
서비스와 충돌한다면, 서버 시작 중에 ...
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

러닝 텐서플로: 딥러닝 영상처리와 NLP부터 텐서보드 시각화, 멀티스레딩, 분산처리까지

러닝 텐서플로: 딥러닝 영상처리와 NLP부터 텐서보드 시각화, 멀티스레딩, 분산처리까지

박상은, 톰 호프, 예헤즈켈 레셰프, 이타이 리더

Publisher Resources

ISBN: 9791162244814