@@ -161,8 +161,16 @@ def run(
161
161
job_name (str): Processing job name. If not specified, the processor generates
162
162
a default job name, based on the base job name and current timestamp.
163
163
experiment_config (dict[str, str]): Experiment management configuration.
164
- Dictionary contains three optional keys:
164
+ Optionally, the dict can contain three keys:
165
165
'ExperimentName', 'TrialName', and 'TrialComponentDisplayName'.
166
+ The behavior of setting these keys is as follows:
167
+ * If `ExperimentName` is supplied but `TrialName` is not a Trial will be
168
+ automatically created and the job's Trial Component associated with the Trial.
169
+ * If `TrialName` is supplied and the Trial already exists the job's Trial Component
170
+ will be associated with the Trial.
171
+ * If both `ExperimentName` and `TrialName` are not supplied the trial component
172
+ will be unassociated.
173
+ * `TrialComponentDisplayName` is used for display in Studio.
166
174
kms_key (str): The ARN of the KMS key that is used to encrypt the
167
175
user code file (default: None).
168
176
@@ -514,10 +522,16 @@ def run(
514
522
job_name (str): Processing job name. If not specified, the processor generates
515
523
a default job name, based on the base job name and current timestamp.
516
524
experiment_config (dict[str, str]): Experiment management configuration.
517
- Dictionary contains three optional keys:
525
+ Optionally, the dict can contain three keys:
518
526
'ExperimentName', 'TrialName', and 'TrialComponentDisplayName'.
519
- kms_key (str): The ARN of the KMS key that is used to encrypt the
520
- user code file (default: None).
527
+ The behavior of setting these keys is as follows:
528
+ * If `ExperimentName` is supplied but `TrialName` is not a Trial will be
529
+ automatically created and the job's Trial Component associated with the Trial.
530
+ * If `TrialName` is supplied and the Trial already exists the job's Trial Component
531
+ will be associated with the Trial.
532
+ * If both `ExperimentName` and `TrialName` are not supplied the trial component
533
+ will be unassociated.
534
+ * `TrialComponentDisplayName` is used for display in Studio.
521
535
"""
522
536
normalized_inputs , normalized_outputs = self ._normalize_args (
523
537
job_name = job_name ,
@@ -728,8 +742,16 @@ def start_new(cls, processor, inputs, outputs, experiment_config):
728
742
outputs (list[:class:`~sagemaker.processing.ProcessingOutput`]): A list of
729
743
:class:`~sagemaker.processing.ProcessingOutput` objects.
730
744
experiment_config (dict[str, str]): Experiment management configuration.
731
- Dictionary contains three optional keys:
745
+ Optionally, the dict can contain three keys:
732
746
'ExperimentName', 'TrialName', and 'TrialComponentDisplayName'.
747
+ The behavior of setting these keys is as follows:
748
+ * If `ExperimentName` is supplied but `TrialName` is not a Trial will be
749
+ automatically created and the job's Trial Component associated with the Trial.
750
+ * If `TrialName` is supplied and the Trial already exists the job's Trial Component
751
+ will be associated with the Trial.
752
+ * If both `ExperimentName` and `TrialName` are not supplied the trial component
753
+ will be unassociated.
754
+ * `TrialComponentDisplayName` is used for display in Studio.
733
755
734
756
Returns:
735
757
:class:`~sagemaker.processing.ProcessingJob`: The instance of ``ProcessingJob`` created
@@ -766,8 +788,16 @@ def _get_process_args(cls, processor, inputs, outputs, experiment_config):
766
788
outputs (list[:class:`~sagemaker.processing.ProcessingOutput`]): A list of
767
789
:class:`~sagemaker.processing.ProcessingOutput` objects.
768
790
experiment_config (dict[str, str]): Experiment management configuration.
769
- Dictionary contains three optional keys:
791
+ Optionally, the dict can contain three keys:
770
792
'ExperimentName', 'TrialName', and 'TrialComponentDisplayName'.
793
+ The behavior of setting these keys is as follows:
794
+ * If `ExperimentName` is supplied but `TrialName` is not a Trial will be
795
+ automatically created and the job's Trial Component associated with the Trial.
796
+ * If `TrialName` is supplied and the Trial already exists the job's Trial Component
797
+ will be associated with the Trial.
798
+ * If both `ExperimentName` and `TrialName` are not supplied the trial component
799
+ will be unassociated.
800
+ * `TrialComponentDisplayName` is used for display in Studio.
771
801
772
802
Returns:
773
803
Dict: dict for `sagemaker.session.Session.process` method
@@ -1546,8 +1576,16 @@ def run( # type: ignore[override]
1546
1576
job_name (str): Processing job name. If not specified, the processor generates
1547
1577
a default job name, based on the base job name and current timestamp.
1548
1578
experiment_config (dict[str, str]): Experiment management configuration.
1549
- Dictionary contains three optional keys:
1579
+ Optionally, the dict can contain three keys:
1550
1580
'ExperimentName', 'TrialName', and 'TrialComponentDisplayName'.
1581
+ The behavior of setting these keys is as follows:
1582
+ * If `ExperimentName` is supplied but `TrialName` is not a Trial will be
1583
+ automatically created and the job's Trial Component associated with the Trial.
1584
+ * If `TrialName` is supplied and the Trial already exists the job's Trial Component
1585
+ will be associated with the Trial.
1586
+ * If both `ExperimentName` and `TrialName` are not supplied the trial component
1587
+ will be unassociated.
1588
+ * `TrialComponentDisplayName` is used for display in Studio.
1551
1589
kms_key (str): The ARN of the KMS key that is used to encrypt the
1552
1590
user code file (default: None).
1553
1591
"""
0 commit comments