-
Notifications
You must be signed in to change notification settings - Fork 138
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
anomaly localization integration step 3 #114
Conversation
Signed-off-by: lai <57818076+wnbts@users.noreply.github.com>
/** | ||
* Output of localized results. | ||
*/ | ||
@Data | ||
public class Output implements ToXContent { | ||
@NoArgsConstructor | ||
public class Output implements org.opensearch.ml.common.parameter.Output { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about rename the class name to avoid full class path org.opensearch.ml.common.parameter.Output
as they have same class name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
case Output.Entity.FIELD_NEW_VALUE: | ||
parser.nextToken(); | ||
entity.setNewValue(parser.doubleValue()); | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skip children for default case? Same question for other places
default:
parser.skipChildren();
break;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Signed-off-by: lai <57818076+wnbts@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the change!
Signed-off-by: lai 57818076+wnbts@users.noreply.github.com
Description
the changes are for step 3 in anomaly localization integration
Check List
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.