Struct aws_sdk_sagemaker::client::fluent_builders::CreateTrialComponent [−][src]
pub struct CreateTrialComponent<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateTrialComponent
.
Creates a trial component, which is a stage of a machine learning trial. A trial is composed of one or more trial components. A trial component can be used in multiple trials.
Trial components include pre-processing jobs, training jobs, and batch transform jobs.
When you use SageMaker Studio or the SageMaker Python SDK, all experiments, trials, and trial components are automatically tracked, logged, and indexed. When you use the Amazon Web Services SDK for Python (Boto), you must use the logging APIs provided by the SDK.
You can add tags to a trial component and then use the Search API to search for the tags.
Implementations
impl<C, M, R> CreateTrialComponent<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateTrialComponent<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateTrialComponentOutput, SdkError<CreateTrialComponentError>> where
R::Policy: SmithyRetryPolicy<CreateTrialComponentInputOperationOutputAlias, CreateTrialComponentOutput, CreateTrialComponentError, CreateTrialComponentInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateTrialComponentOutput, SdkError<CreateTrialComponentError>> where
R::Policy: SmithyRetryPolicy<CreateTrialComponentInputOperationOutputAlias, CreateTrialComponentOutput, CreateTrialComponentError, CreateTrialComponentInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The name of the component. The name must be unique in your Amazon Web Services account and is not case-sensitive.
The name of the component. The name must be unique in your Amazon Web Services account and is not case-sensitive.
The name of the component as displayed. The name doesn't need to be unique. If
DisplayName
isn't specified, TrialComponentName
is
displayed.
The name of the component as displayed. The name doesn't need to be unique. If
DisplayName
isn't specified, TrialComponentName
is
displayed.
The status of the component. States include:
-
InProgress
-
Completed
-
Failed
The status of the component. States include:
-
InProgress
-
Completed
-
Failed
When the component started.
When the component started.
When the component ended.
pub fn parameters(
self,
k: impl Into<String>,
v: impl Into<TrialComponentParameterValue>
) -> Self
pub fn parameters(
self,
k: impl Into<String>,
v: impl Into<TrialComponentParameterValue>
) -> Self
Adds a key-value pair to Parameters
.
To override the contents of this collection use set_parameters
.
The hyperparameters for the component.
pub fn set_parameters(
self,
input: Option<HashMap<String, TrialComponentParameterValue>>
) -> Self
pub fn set_parameters(
self,
input: Option<HashMap<String, TrialComponentParameterValue>>
) -> Self
The hyperparameters for the component.
pub fn input_artifacts(
self,
k: impl Into<String>,
v: impl Into<TrialComponentArtifact>
) -> Self
pub fn input_artifacts(
self,
k: impl Into<String>,
v: impl Into<TrialComponentArtifact>
) -> Self
Adds a key-value pair to InputArtifacts
.
To override the contents of this collection use set_input_artifacts
.
The input artifacts for the component. Examples of input artifacts are datasets, algorithms, hyperparameters, source code, and instance types.
pub fn set_input_artifacts(
self,
input: Option<HashMap<String, TrialComponentArtifact>>
) -> Self
pub fn set_input_artifacts(
self,
input: Option<HashMap<String, TrialComponentArtifact>>
) -> Self
The input artifacts for the component. Examples of input artifacts are datasets, algorithms, hyperparameters, source code, and instance types.
pub fn output_artifacts(
self,
k: impl Into<String>,
v: impl Into<TrialComponentArtifact>
) -> Self
pub fn output_artifacts(
self,
k: impl Into<String>,
v: impl Into<TrialComponentArtifact>
) -> Self
Adds a key-value pair to OutputArtifacts
.
To override the contents of this collection use set_output_artifacts
.
The output artifacts for the component. Examples of output artifacts are metrics, snapshots, logs, and images.
pub fn set_output_artifacts(
self,
input: Option<HashMap<String, TrialComponentArtifact>>
) -> Self
pub fn set_output_artifacts(
self,
input: Option<HashMap<String, TrialComponentArtifact>>
) -> Self
The output artifacts for the component. Examples of output artifacts are metrics, snapshots, logs, and images.
Metadata properties of the tracking entity, trial, or trial component.
Metadata properties of the tracking entity, trial, or trial component.
A list of tags to associate with the component. You can use Search API to search on the tags.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateTrialComponent<C, M, R>
impl<C, M, R> Send for CreateTrialComponent<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateTrialComponent<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateTrialComponent<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateTrialComponent<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more