-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy path__init__.py
More file actions
122 lines (110 loc) · 3.78 KB
/
__init__.py
File metadata and controls
122 lines (110 loc) · 3.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
"""SageMaker workflow orchestration module.
This module provides pipeline and step orchestration capabilities for SageMaker workflows.
It contains the high-level classes that orchestrate training, processing, and serving
components from the train and serve packages.
Key components:
- Pipeline: Main workflow orchestration class
- Steps: Various step implementations (TrainingStep, ProcessingStep, etc.)
- Configuration: Pipeline configuration classes
- Utilities: Helper functions for workflow management
Note: This module imports from sagemaker.core.workflow for primitives (entities, parameters,
functions, conditions, properties) and can import from sagemaker.train and sagemaker.serve
for orchestration purposes.
"""
from __future__ import absolute_import
__version__ = "0.1.0"
# Pipeline and configuration
from sagemaker.mlops.workflow.pipeline import Pipeline, PipelineGraph, PipelineExecution
from sagemaker.mlops.workflow.pipeline_experiment_config import (
PipelineExperimentConfig,
PipelineExperimentConfigProperty,
PipelineExperimentConfigProperties,
)
from sagemaker.mlops.workflow.parallelism_config import ParallelismConfiguration
from sagemaker.mlops.workflow.selective_execution_config import SelectiveExecutionConfig
# Base step classes
from sagemaker.mlops.workflow.steps import (
Step,
StepTypeEnum,
ConfigurableRetryStep,
CacheConfig,
TrainingStep,
ProcessingStep,
TransformStep,
TuningStep,
)
# Step implementations
from sagemaker.mlops.workflow.automl_step import AutoMLStep
from sagemaker.mlops.workflow.callback_step import CallbackStep, CallbackOutput
from sagemaker.mlops.workflow.clarify_check_step import ClarifyCheckStep
from sagemaker.mlops.workflow.condition_step import ConditionStep
from sagemaker.mlops.workflow.emr_step import EMRStep, EMRStepConfig
from sagemaker.mlops.workflow.fail_step import FailStep
from sagemaker.mlops.workflow.lambda_step import LambdaStep, LambdaOutput
from sagemaker.mlops.workflow.model_step import ModelStep
from sagemaker.mlops.workflow.monitor_batch_transform_step import MonitorBatchTransformStep
from sagemaker.mlops.workflow.notebook_job_step import NotebookJobStep
from sagemaker.mlops.workflow.quality_check_step import QualityCheckStep, QualityCheckConfig
# Step collections
from sagemaker.mlops.workflow.step_collections import StepCollection
# Retry policies
from sagemaker.mlops.workflow.retry import (
RetryPolicy,
StepRetryPolicy,
SageMakerJobStepRetryPolicy,
StepExceptionTypeEnum,
SageMakerJobExceptionTypeEnum,
)
# Triggers
from sagemaker.mlops.workflow.triggers import Trigger, PipelineSchedule
# Check job configuration
from sagemaker.mlops.workflow.check_job_config import CheckJobConfig
__all__ = [
# Pipeline and configuration
"Pipeline",
"PipelineExecution",
"PipelineGraph",
"PipelineExperimentConfig",
"PipelineExperimentConfigProperty",
"PipelineExperimentConfigProperties",
"ParallelismConfiguration",
"SelectiveExecutionConfig",
# Base step classes
"Step",
"StepTypeEnum",
"ConfigurableRetryStep",
"CacheConfig",
"TrainingStep",
"ProcessingStep",
"TransformStep",
"TuningStep",
# Step implementations
"AutoMLStep",
"CallbackStep",
"CallbackOutput",
"ClarifyCheckStep",
"ConditionStep",
"EMRStep",
"EMRStepConfig",
"FailStep",
"LambdaStep",
"LambdaOutput",
"ModelStep",
"MonitorBatchTransformStep",
"NotebookJobStep",
"QualityCheckStep",
"QualityCheckConfig",
# Step collections
"StepCollection",
# Retry policies
"RetryPolicy",
"StepRetryPolicy",
"SageMakerJobStepRetryPolicy",
"StepExceptionTypeEnum",
"SageMakerJobExceptionTypeEnum",
# Triggers
"Trigger",
"PipelineSchedule",
# Configuration
"CheckJobConfig",
]