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

feat(JAQPOT-364): Implement DOA in inference #34

Merged
merged 18 commits into from
Oct 17, 2024

Conversation

vassilismin
Copy link
Contributor

This PR supports:

  • predictions with all jaqpotpy DOA methods
  • predictions with more than one DOA method in each request
  • estimation of the percentage of features that set a data instance out of domain (in methods like BoundingBox and MeanVar)
  • MajorityVoting in case multiple DOA methods are requested in a request. The inference returns both the detailed results for each DOA and the MajorityVoting.

Till this point, jaqpotpy-inference supports 3 DOA methods: Leverage, BoundingBox, MeanVar

@@ -3,11 +3,13 @@
from ..helpers.predict_methods import predict_onnx, predict_proba_onnx
import numpy as np

from jaqpotpy.doa.doa import Leverage
Copy link
Member

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

value["inDoa"] for value in doa_instance_prediction.values()
]
doa_instance_prediction["majorityVoting"] = (
in_doa_values.count(True) > len(in_doa_values) / 2
Copy link
Member

Choose a reason for hiding this comment

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

put parenthesis in rhs

Copy link
Member

@periklis91 periklis91 left a comment

Choose a reason for hiding this comment

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

Check requested changes

@vassilismin vassilismin merged commit 1415e27 into main Oct 17, 2024
2 checks passed
@vassilismin vassilismin deleted the feat/JAQPOT-364/Support_DOA branch October 17, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants