Class Batch

Batch

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

Manager of a service’s batch execution lifecycle.

api

api

Gets the api endpoint.

execution_id

execution_id

Gets this batch’s execution identifier if currently started, otherwise None.

parallel_count

parallel_count

Gets this batch’s parallel count of threads.

records

Gets the batch input records.

results(show_partial_results=True)

Poll for batch results.

Arguments

show_partial_results

To get partial execution results or not. The default is to include partial results.

Returns

An instance of BatchResponse.

start

start()

Starts a batch execution for this service.

Returns

An instance of itself Batch.

artifacts

artifact(index, file_name)

Get the file artifact for this service batch execution index.

Arguments

index

Batch execution index.

file_name

Artifact filename

Returns

A single file artifact.

cancel

cancel()

Cancel this batch execution.

download

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

Download the file artifact to file-system in the destination.

Arguments

index

Batch execution index.

file_name

The file artifact name.

destination

Download location.

Returns

A list of downloaded file-paths.

list_artifacts

list_artifacts(index)

List the file artifact names belonging to this service batch execution index.

Arguments

index

Batch execution index.

Returns

A list of file artifact names.

Gets this batch’s parallel count of threads.

records

records

Gets the batch input records.

results

results(show_partial_results=True)

Poll batch results.

Arguments

show_partial_results

To get partial execution results or not.

Returns

An execution Self BatchResponse.