클래스 DeployClient

azureml.deploy.DeployClient(host, auth=None, use=None)

배포 클라이언트를 만들기 위한 팩터리를 정의합니다.

use 속성이 있는 기본 사용 모듈 구현 플러그 인:

가져오기 참조에서 모듈 찾기 및 로드:

from azureml.deploy import DeployClient
from azureml.deploy.server import MLServer

host = 'http://localhost:12800'
ctx = ('username', 'password')
mls_client = DeployClient(host, use=MLServer, auth=ctx)

네임스페이스 str에서 use에 의해 정의된 모듈 찾기 및 로드:

host = 'http://localhost:12800'
ctx = ('username', 'password')

mls_client = DeployClient(host, use=MLServer, auth=ctx)
mls_client = DeployClient(host, use='azureml.deploy.server.MLServer',
auth=ctx)

파일/경로 튜플에서 모듈 찾기 및 로드:

host = 'http://localhost:12800'
ctx = ('username', 'password')

use = ('azureml.deploy.server.MLServer', '/path/to/mlserver.py')
mls_client = DeployClient(host, use=use, auth=ctx)

새 배포 클라이언트를 만듭니다.

인수

host

서버 HTTP/HTTPS 엔드포인트(포트 번호 포함)

auth

(선택적) 인증 컨텍스트입니다. 모든 배포 클라이언트에 인증이 필요한 것은 아닙니다. MLServer에는 auth필요합니다.

use

(필수) (예) use='MLServer'를 사용하여 ML Server를 사용할 배포 구현입니다.