create_trial_component
async
¶
create_trial_component(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
trial_component_name: Optional[ExperimentEntityName] = None,
display_name: Optional[ExperimentEntityName] = None,
status: Optional[TrialComponentStatus] = None,
start_time: Optional[Timestamp] = None,
end_time: Optional[Timestamp] = None,
parameters: Optional[TrialComponentParameters] = None,
input_artifacts: Optional[TrialComponentArtifacts] = None,
output_artifacts: Optional[TrialComponentArtifacts] = None,
metadata_properties: Optional[MetadataProperties] = None,
tags: Optional[TagList] = None,
) -> CreateTrialComponentResponse
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.
Parameters:
-
trial_component_name(Optional[ExperimentEntityName], default:None) –The name of the component. The name must be unique in your Amazon Web Services account and is not case-sensitive.
-
display_name(Optional[ExperimentEntityName], default:None) –The name of the component as displayed. The name doesn't need to be unique. If
DisplayNameisn't specified,TrialComponentNameis displayed. -
status(Optional[TrialComponentStatus], default:None) –The status of the component. States include:
-
InProgress
-
Completed
-
Failed
-
-
start_time(Optional[Timestamp], default:None) –When the component started.
-
end_time(Optional[Timestamp], default:None) –When the component ended.
-
parameters(Optional[TrialComponentParameters], default:None) –The hyperparameters for the component.
-
input_artifacts(Optional[TrialComponentArtifacts], default:None) –The input artifacts for the component. Examples of input artifacts are datasets, algorithms, hyperparameters, source code, and instance types.
-
output_artifacts(Optional[TrialComponentArtifacts], default:None) –The output artifacts for the component. Examples of output artifacts are metrics, snapshots, logs, and images.
-
tags(Optional[TagList], default:None) –A list of tags to associate with the component. You can use Search API to search on the tags.
Raises:
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 | |