@@ -92,12 +92,9 @@ def ensure_docker_compose_installed():
92
92
def test_scikit_learn_local_processing ():
93
93
"""
94
94
Test local mode processing with a scikit-learn processor.
95
- This uses the same logic as scikit_learn_local_processing.py but in a pytest test function.
96
-
97
- Requirements/Assumptions:
98
- - Docker must be installed and running on the local machine.
99
- - 'processing_script.py' must be in the current working directory (or specify the correct path).
100
- - There should be some local input data if 'processing_script.py' needs it (see ProcessingInput below).
95
+ This uses the same logic as scikit_learn_local_processing.py but in
96
+ a pytest test function. This test deploys the model locally via Docker,
97
+ and asserts that the output is received.
101
98
"""
102
99
ensure_docker_compose_installed ()
103
100
@@ -154,9 +151,9 @@ def test_scikit_learn_local_processing():
154
151
@pytest .mark .local
155
152
def test_pytorch_local_model_inference ():
156
153
"""
157
- Test local mode inference for a TensorFlow NLP model using PyTorch.
154
+ Test local mode inference with NLP model using PyTorch.
158
155
This test deploys the model locally via Docker, performs an inference
159
- on a sample image URL , and asserts that the output is received.
156
+ on a sample dataset , and asserts that the output is received.
160
157
"""
161
158
ensure_docker_compose_installed ()
162
159
@@ -247,6 +244,11 @@ def do_inference_on_local_endpoint(predictor):
247
244
"""
248
245
@pytest .mark .local
249
246
def test_sklearn_local_model_train_inference ():
247
+ """
248
+ Test local mode training and inference with sagemaker SKLearn.
249
+ This test runs the model locally via Docker, performs an inference with
250
+ sample dataset, and asserts that the output is received.
251
+ """
250
252
251
253
download_training_and_eval_data ()
252
254
0 commit comments