Skip to content

Commit 59defdb

Browse files
committed
change: resolve git comments
1 parent 56b3d71 commit 59defdb

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

tests/integ/sagemaker/jumpstart/script_mode_class/test_transfer_learning.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
get_sm_session,
3232
get_training_dataset_for_model_and_version,
3333
)
34-
import pandas as pd
3534

3635

3736
def test_jumpstart_transfer_learning_estimator_class(setup):
@@ -123,10 +122,5 @@ def test_jumpstart_transfer_learning_estimator_class(setup):
123122
)
124123

125124
response = endpoint_invoker.invoke_spc_endpoint(["hello", "world"])
126-
entail, no_entail = response[0][0], response[0][1]
127125

128-
assert entail is not None
129-
assert no_entail is not None
130-
131-
assert pd.isna(entail) is False
132-
assert pd.isna(no_entail) is False
126+
assert response is not None

tests/integ/sagemaker/jumpstart/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ def download_file(local_download_path, s3_bucket, s3_key, s3_client) -> None:
8383
class EndpointInvoker:
8484
def __init__(
8585
self,
86-
endpoint_name,
87-
region=JUMPSTART_DEFAULT_REGION_NAME,
88-
boto_config=Config(retries={"max_attempts": 10, "mode": "standard"}),
86+
endpoint_name: str,
87+
region: str = JUMPSTART_DEFAULT_REGION_NAME,
88+
boto_config: Config = Config(retries={"max_attempts": 10, "mode": "standard"}),
8989
) -> None:
9090
self.endpoint_name = endpoint_name
9191
self.region = region

0 commit comments

Comments
 (0)