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
8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 | |