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

making conformance score more robust #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blackTay
Copy link

added:

  • k-NN to computation of score value (before, the score value computation was based on a 1-NN search and only the thresholding to 0 and infinity used all k neighbours)
  • aggregation of the k-NN neighbours happens robustly using the median function

The previous implementation took for the computation of the score value the minimum of the k-nearest neighbours = the 1-nearest neighbour, aka the parameter k had no influence except for the thresholding. This lead in some cases to anomalous behaviour if the corpus had some variance among itself.

The previous implementation could lead to such cases:
Picture 1

Where, notably, the outliers are to the left of the inliers (inliers = generated from same distribution as the corpus). The dataset is here quiet complicated and we do not expect the algorithm to be able to distinguish between inliers and type-2-outliers; but at the very least, the type-2-outliers should not be closer to the corpus than the inliers (in fact, type-2-outliers are generated from a higher variance distribution than the corpus) . However, as evident in this first plot, the type-2-outliers are closer (lower conformance score) than the inliers.

Using the newly proposed median feature for k=10 nearest neighbours, this issue gets fixed:
Picture 2

added:
- k-NN to computation of score value (before, the score value was based on a 1-NN search and only the thresholding used all k neighbours)
- aggregation of the k-NN neighbours happens robustly using the median function

The previous implementation took for the computation of the score value the minimum of the k-nearest neighbours =  the 1-nearest neighbour, aka the parameter k had no influence except for the thresholding. This lead in some cases to anomalous behaviour if the corpus had some variance among itself
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.

None yet

1 participant