-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(JAQPOT-364): Implement DOA in inference #34
Conversation
calculate_doas is used by predict_onnx in case any doa method accompanies the model in request.
src/handlers/predict_sklearn.py
Outdated
@@ -3,11 +3,13 @@ | |||
from ..helpers.predict_methods import predict_onnx, predict_proba_onnx | |||
import numpy as np | |||
|
|||
from jaqpotpy.doa.doa import Leverage |
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.
import properly in inits to avoid writing doa.doa
src/helpers/predict_methods.py
Outdated
value["inDoa"] for value in doa_instance_prediction.values() | ||
] | ||
doa_instance_prediction["majorityVoting"] = ( | ||
in_doa_values.count(True) > len(in_doa_values) / 2 |
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.
put parenthesis in rhs
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.
Check requested changes
add parentheses
…-unit-of-control-and-informatics/jaqpotpy-inference into feat/JAQPOT-364/Support_DOA
This PR supports:
Till this point, jaqpotpy-inference supports 3 DOA methods: Leverage, BoundingBox, MeanVar