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

Refactor exceptions for KMeans #34

Merged
merged 1 commit into from
May 19, 2021
Merged

Refactor exceptions for KMeans #34

merged 1 commit into from
May 19, 2021

Conversation

jngz-es
Copy link
Collaborator

@jngz-es jngz-es commented May 14, 2021

Description

Refactor exceptions for KMeans

Issues Resolved

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Contributor

@weicongs-amazon weicongs-amazon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with minor comment

throw new RuntimeException("Failed to deserialize model.", e.getCause());
}

KMeansModel kMeansModel = (KMeansModel) ModelSerDeSer.deserialize(model.getContent());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: we can refactor the deserialize method to avoid this casting

@jngz-es jngz-es merged commit 2341996 into opensearch-project:develop May 19, 2021
@jngz-es jngz-es deleted the dev branch June 14, 2021 09:01
jackiehanyang pushed a commit that referenced this pull request Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants