類別批次

Batch

azureml.deploy.server.service.Batch(service, records=[], parallel_count=10,
    execution_id=None)

服務批次執行生命週期的管理員。

api

api

取得 API 端點。

execution_id

execution_id

如果目前已啟動,則取得此批次的執行識別碼,否則為 None

parallel_count

parallel_count

取得此批次的執行緒平行計數。

records

取得批次輸入記錄。

results(show_partial_results=True)

輪詢批次結果。

引數

show_partial_results

取得或不取得部分執行結果。 預設為包含部分結果。

傳回

BatchResponse 的執行個體。

start

start()

啟動此服務的批次執行。

傳回

本身 Batch 的執行個體。

artifacts

artifact(index, file_name)

取得此服務批次執行 index 的檔案成品。

引數

索引

批次執行索引。

file_name

成品檔案名稱

傳回

單一檔案成品。

cancel

cancel()

取消此批次執行。

下載

download(index, file_name=None, destination=cwd())

將檔成品下載至 destination 中的檔案系統。

引數

索引

批次執行索引。

file_name

檔案成品名稱。

目的地

下載位置。

傳回

已下載檔案路徑的 list

list_artifacts

list_artifacts(index)

列出屬於此服務批次執行 index 的檔案成品名稱。

引數

索引

批次執行索引。

傳回

檔案成品名稱的 list

取得此批次的執行緒平行計數。

記錄

records

取得批次輸入記錄。

results

results(show_partial_results=True)

輪詢批次結果。

引數

show_partial_results

取得或不取得部分執行結果。

傳回

執行自我 BatchResponse