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