BatchDeploymentProperties Class
- java.
lang. Object - com.
azure. resourcemanager. machinelearning. models. EndpointDeploymentPropertiesBase - com.
azure. resourcemanager. machinelearning. models. BatchDeploymentProperties
- com.
- com.
public final class BatchDeploymentProperties
extends EndpointDeploymentPropertiesBase
Batch inference settings per deployment.
Constructor Summary
| Constructor | Description |
|---|---|
| BatchDeploymentProperties() |
Creates an instance of Batch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
compute()
Get the compute property: Compute target for batch inference operation. |
|
Batch |
deploymentConfiguration()
Get the deployment |
| Integer |
errorThreshold()
Get the error |
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
|
Batch |
loggingLevel()
Get the logging |
| Integer |
maxConcurrencyPerInstance()
Get the max |
| Long |
miniBatchSize()
Get the mini |
|
Asset |
model()
Get the model property: Reference to the model asset for the endpoint deployment. |
|
Batch |
outputAction()
Get the output |
| String |
outputFileName()
Get the output |
|
Deployment |
provisioningState()
Get the provisioning |
|
Deployment |
resources()
Get the resources property: Indicates compute configuration for the job. |
|
Batch |
retrySettings()
Get the retry |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Batch |
withCodeConfiguration(CodeConfiguration codeConfiguration)
Set the code |
|
Batch |
withCompute(String compute)
Set the compute property: Compute target for batch inference operation. |
|
Batch |
withDeploymentConfiguration(BatchDeploymentConfiguration deploymentConfiguration)
Set the deployment |
|
Batch |
withDescription(String description)
Set the description property: Description of the endpoint deployment. |
|
Batch |
withEnvironmentId(String environmentId)
Set the environment |
|
Batch |
withEnvironmentVariables(Map<String,String> environmentVariables)
Set the environment |
|
Batch |
withErrorThreshold(Integer errorThreshold)
Set the error |
|
Batch |
withLoggingLevel(BatchLoggingLevel loggingLevel)
Set the logging |
|
Batch |
withMaxConcurrencyPerInstance(Integer maxConcurrencyPerInstance)
Set the max |
|
Batch |
withMiniBatchSize(Long miniBatchSize)
Set the mini |
|
Batch |
withModel(AssetReferenceBase model)
Set the model property: Reference to the model asset for the endpoint deployment. |
|
Batch |
withOutputAction(BatchOutputAction outputAction)
Set the output |
|
Batch |
withOutputFileName(String outputFileName)
Set the output |
|
Batch |
withProperties(Map<String,String> properties)
Set the properties property: Property dictionary. |
|
Batch |
withResources(DeploymentResourceConfiguration resources)
Set the resources property: Indicates compute configuration for the job. |
|
Batch |
withRetrySettings(BatchRetrySettings retrySettings)
Set the retry |
Methods inherited from EndpointDeploymentPropertiesBase
Methods inherited from java.lang.Object
Constructor Details
BatchDeploymentProperties
public BatchDeploymentProperties()
Creates an instance of BatchDeploymentProperties class.
Method Details
compute
public String compute()
Get the compute property: Compute target for batch inference operation.
Returns:
deploymentConfiguration
public BatchDeploymentConfiguration deploymentConfiguration()
Get the deploymentConfiguration property: Properties relevant to different deployment types.
Returns:
errorThreshold
public Integer errorThreshold()
Get the errorThreshold property: Error threshold, if the error count for the entire input goes above this value, the batch inference will be aborted. Range is [-1, int.MaxValue]. For FileDataset, this value is the count of file failures. For TabularDataset, this value is the count of record failures. If set to -1 (the lower bound), all failures during batch inference will be ignored.
Returns:
fromJson
public static BatchDeploymentProperties fromJson(JsonReader jsonReader)
Reads an instance of BatchDeploymentProperties from the JsonReader.
Parameters:
Returns:
Throws:
loggingLevel
public BatchLoggingLevel loggingLevel()
Get the loggingLevel property: Logging level for batch inference operation.
Returns:
maxConcurrencyPerInstance
public Integer maxConcurrencyPerInstance()
Get the maxConcurrencyPerInstance property: Indicates maximum number of parallelism per instance.
Returns:
miniBatchSize
public Long miniBatchSize()
Get the miniBatchSize property: Size of the mini-batch passed to each batch invocation. For FileDataset, this is the number of files per mini-batch. For TabularDataset, this is the size of the records in bytes, per mini-batch.
Returns:
model
public AssetReferenceBase model()
Get the model property: Reference to the model asset for the endpoint deployment.
Returns:
outputAction
public BatchOutputAction outputAction()
Get the outputAction property: Indicates how the output will be organized.
Returns:
outputFileName
public String outputFileName()
Get the outputFileName property: Customized output file name for append_row output action.
Returns:
provisioningState
public DeploymentProvisioningState provisioningState()
Get the provisioningState property: Provisioning state for the endpoint deployment.
Returns:
resources
public DeploymentResourceConfiguration resources()
Get the resources property: Indicates compute configuration for the job. If not provided, will default to the defaults defined in ResourceConfiguration.
Returns:
retrySettings
public BatchRetrySettings retrySettings()
Get the retrySettings property: Retry Settings for the batch inference operation. If not provided, will default to the defaults defined in BatchRetrySettings.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
BatchDeploymentProperties.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
BatchDeploymentProperties.validate()withCodeConfiguration
public BatchDeploymentProperties withCodeConfiguration(CodeConfiguration codeConfiguration)
Set the codeConfiguration property: Code configuration for the endpoint deployment.
Overrides:
BatchDeploymentProperties.withCodeConfiguration(CodeConfiguration codeConfiguration)Parameters:
withCompute
public BatchDeploymentProperties withCompute(String compute)
Set the compute property: Compute target for batch inference operation.
Parameters:
Returns:
withDeploymentConfiguration
public BatchDeploymentProperties withDeploymentConfiguration(BatchDeploymentConfiguration deploymentConfiguration)
Set the deploymentConfiguration property: Properties relevant to different deployment types.
Parameters:
Returns:
withDescription
public BatchDeploymentProperties withDescription(String description)
Set the description property: Description of the endpoint deployment.
Overrides:
BatchDeploymentProperties.withDescription(String description)Parameters:
withEnvironmentId
public BatchDeploymentProperties withEnvironmentId(String environmentId)
Set the environmentId property: ARM resource ID or AssetId of the environment specification for the endpoint deployment.
Overrides:
BatchDeploymentProperties.withEnvironmentId(String environmentId)Parameters:
withEnvironmentVariables
public BatchDeploymentProperties withEnvironmentVariables(Map<String,String> environmentVariables)
Set the environmentVariables property: Environment variables configuration for the deployment.
Overrides:
BatchDeploymentProperties.withEnvironmentVariables(Map<String,String> environmentVariables)Parameters:
withErrorThreshold
public BatchDeploymentProperties withErrorThreshold(Integer errorThreshold)
Set the errorThreshold property: Error threshold, if the error count for the entire input goes above this value, the batch inference will be aborted. Range is [-1, int.MaxValue]. For FileDataset, this value is the count of file failures. For TabularDataset, this value is the count of record failures. If set to -1 (the lower bound), all failures during batch inference will be ignored.
Parameters:
Returns:
withLoggingLevel
public BatchDeploymentProperties withLoggingLevel(BatchLoggingLevel loggingLevel)
Set the loggingLevel property: Logging level for batch inference operation.
Parameters:
Returns:
withMaxConcurrencyPerInstance
public BatchDeploymentProperties withMaxConcurrencyPerInstance(Integer maxConcurrencyPerInstance)
Set the maxConcurrencyPerInstance property: Indicates maximum number of parallelism per instance.
Parameters:
Returns:
withMiniBatchSize
public BatchDeploymentProperties withMiniBatchSize(Long miniBatchSize)
Set the miniBatchSize property: Size of the mini-batch passed to each batch invocation. For FileDataset, this is the number of files per mini-batch. For TabularDataset, this is the size of the records in bytes, per mini-batch.
Parameters:
Returns:
withModel
public BatchDeploymentProperties withModel(AssetReferenceBase model)
Set the model property: Reference to the model asset for the endpoint deployment.
Parameters:
Returns:
withOutputAction
public BatchDeploymentProperties withOutputAction(BatchOutputAction outputAction)
Set the outputAction property: Indicates how the output will be organized.
Parameters:
Returns:
withOutputFileName
public BatchDeploymentProperties withOutputFileName(String outputFileName)
Set the outputFileName property: Customized output file name for append_row output action.
Parameters:
Returns:
withProperties
public BatchDeploymentProperties withProperties(Map<String,String> properties)
Set the properties property: Property dictionary. Properties can be added, but not removed or altered.
Overrides:
BatchDeploymentProperties.withProperties(Map<String,String> properties)Parameters:
withResources
public BatchDeploymentProperties withResources(DeploymentResourceConfiguration resources)
Set the resources property: Indicates compute configuration for the job. If not provided, will default to the defaults defined in ResourceConfiguration.
Parameters:
Returns:
withRetrySettings
public BatchDeploymentProperties withRetrySettings(BatchRetrySettings retrySettings)
Set the retrySettings property: Retry Settings for the batch inference operation. If not provided, will default to the defaults defined in BatchRetrySettings.
Parameters:
Returns: