Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyhoo committed Sep 17, 2024
1 parent 698850b commit 7abb0e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/autogluon/cloud/backend/sagemaker_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ def predict_proba(
model_kwargs=model_kwargs,
transformer_kwargs=transformer_kwargs,
transform_kwargs=transform_kwargs,
local_predictor=local_predictor,
local_predictor=local_predictor,
)

if include_predict:
Expand Down Expand Up @@ -1112,7 +1112,6 @@ def _predict_real_time(self, test_data, accept, split_pred_proba=True, inference
raise e

def _upload_batch_predict_data(self, test_data, bucket, key_prefix):

if isinstance(test_data, pd.DataFrame):
test_data = self._prepare_data(test_data, "test", output_type="csv")
logger.log(20, "Uploading data...")
Expand Down
2 changes: 1 addition & 1 deletion src/autogluon/cloud/predictor/cloud_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ def predict_proba(
backend_kwargs = {}
backend_kwargs = self.backend.parse_backend_predict_kwargs(backend_kwargs)
local_predictor = None
#TODO add support for multimodal and timeseries as this is needed for batch inference see issue #136
# TODO add support for multimodal and timeseries as this is needed for batch inference see issue #136
if self.predictor_type == "tabular":
local_predictor = self.to_local_predictor()
return self.backend.predict_proba(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ def transform_fn(model, request_body, input_content_type, output_content_type="a

elif input_content_type == "application/jsonl":
buf = StringIO(request_body)
data = _read_with_fallback(
lambda b: pd.read_json(b, orient="records", lines=True), buf, column_names
)
data = _read_with_fallback(lambda b: pd.read_json(b, orient="records", lines=True), buf, column_names)

elif input_content_type == "application/x-autogluon":
buf = bytes(request_body)
Expand Down

0 comments on commit 7abb0e8

Please sign in to comment.