Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add accept encodings to alg_mode #270

Merged
merged 1 commit into from
Apr 11, 2022
Merged

Add accept encodings to alg_mode #270

merged 1 commit into from
Apr 11, 2022

Conversation

awsbmillare
Copy link
Contributor

Issue #, if available:

Description of changes:

Sagemaker xgboost inference server already supports responses in the format of application/json and text/csv when using script_mode. In algorithm_mode, however, the code is hard coded to always return in the format text/csv. This change simply extends this response format support to algorithm_mode. This was simply missed from previous developments.

Also made serve.py match master:serve.py version in order to reduce divergence between branches.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@NikhilRaverkar NikhilRaverkar merged commit aa5baaa into 1.3-1 Apr 11, 2022
@NikhilRaverkar NikhilRaverkar deleted the fix_accept_131 branch April 11, 2022 21:17
NikhilRaverkar added a commit that referenced this pull request Apr 27, 2022
* Store ground truth and predictions on validation folds to output folder (#230)

* Store ground truth and predictions on validation folds to output folder

* Refactor functionality to store validation set predictions into a separate class

* Update src/sagemaker_xgboost_container/prediction_utils.py

Co-authored-by: Mark Bunday <15115482+mabunday@users.noreply.github.com>

* Update src/sagemaker_xgboost_container/prediction_utils.py

Co-authored-by: Mark Bunday <15115482+mabunday@users.noreply.github.com>

* Update src/sagemaker_xgboost_container/prediction_utils.py

Co-authored-by: Mark Bunday <15115482+mabunday@users.noreply.github.com>

* Update src/sagemaker_xgboost_container/prediction_utils.py

Co-authored-by: Mark Bunday <15115482+mabunday@users.noreply.github.com>

* Update src/sagemaker_xgboost_container/prediction_utils.py

Co-authored-by: Mark Bunday <15115482+mabunday@users.noreply.github.com>

* Update src/sagemaker_xgboost_container/prediction_utils.py

Co-authored-by: Mark Bunday <15115482+mabunday@users.noreply.github.com>

* Add checks for recorded predictions, refactor helper functions

* More accurate final repeated prediction counter check

* Add unit tests for prediction_utils.py

* Using data_root for kfold tests to reduce code duplication

Co-authored-by: Iaroslav Shcherbatyi <siarosla@amazon.com>
Co-authored-by: Mark Bunday <15115482+mabunday@users.noreply.github.com>

* upgrading pillow to 9.0.0 to address high security risks from CVE
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22817
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22816
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22815

* upgrading pillow to 9.0.0 to address high security risks from CVE
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22817
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22816
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22815

* Using keyring to prevent GPG key from being outdated

* Using keyring to prevent GPG key from being outdated

* Bump numpy from 1.20.3 to 1.21.0

* Bump numpy from 1.20.3 to 1.21.0

* Bump numpy from 1.20.3 to 1.21.0

* bump up version to 1.5.2

* Revert "Merge branch '1.5.2-draft'"

This reverts commit 633f5bb, reversing
changes made to a9524d2.

* Track buildspecs in repo like sklearn container (#248)

Co-authored-by: Brent Millare <bmillare@amazon.com>

* Pin flask dep itsdangerous (#251)

Co-authored-by: Brent Millare <bmillare@amazon.com>

* Add metrics for MultiClass (#250)

* Add metrics for MultiClass

* --amend

Co-authored-by: Krittaphat Pugdeethosapol <krittp@amazon.com>

* Add multiclass metrics (#252)

* Add metrics for MultiClass

* --amend

* Allow new metrics for eval_metric

Co-authored-by: Krittaphat Pugdeethosapol <krittp@amazon.com>

* pin markupsafe jinja2

* Using ensemble flag for multi-model endpoint

* Add accept encodings to alg_mode (#270)

Co-authored-by: Brent Millare <bmillare@amazon.com>

* Add missing integ test

* added HP for `sampling_method`

* added HP for `prob_buffer_row` remove after fixed in console

* Fix JSON output format

* removing duplicate files from data_path while creating symlink

* not creating duplicate symlinks to resolve FileExistsError

* not creating duplicate symlinks to resolve FileExistsError

* not creating duplicate symlinks to resolve FileExistsError

* not creating duplicate symlinks to resolve FileExistsError

* not creating duplicate symlinks to resolve FileExistsError

* not creating duplicate symlinks to resolve FileExistsError

* not creating duplicate symlinks to resolve FileExistsError

* not creating duplicate symlinks to resolve FileExistsError

* not creating duplicate symlinks to resolve FileExistsError

* not creating duplicate symlinks to resolve FileExistsError

* Add warnings when validation files are suspected to be identical with training files (#273)

* Add warnings when validation files are suspected to be identical with training files

* Resolving comments

Co-authored-by: Iaroslav Shcherbatyi <iaroslav.github@gmail.com>
Co-authored-by: Iaroslav Shcherbatyi <siarosla@amazon.com>
Co-authored-by: Mark Bunday <15115482+mabunday@users.noreply.github.com>
Co-authored-by: Nikhil Raverkar <nraverka@amazon.com>
Co-authored-by: haixiw <haixiw@amazon.com>
Co-authored-by: Brent Millare <69818968+awsbmillare@users.noreply.github.com>
Co-authored-by: Brent Millare <bmillare@amazon.com>
Co-authored-by: Kritt <krittaphat.pug@gmail.com>
Co-authored-by: Krittaphat Pugdeethosapol <krittp@amazon.com>
Co-authored-by: Dewan Choudhury <cdewan@amazon.com>
Co-authored-by: Haixin Wang <98612668+haixiw@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants