Skip to content

🥅🏷️ Use more defined struct for threshold #66

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

Merged
merged 3 commits into from
Jun 7, 2024

Conversation

evaline-ju
Copy link
Collaborator

Detector parameters provided for each detector will not be passed to each detector client currently. The one expected parameter currently is threshold, used by the orchestrator to potentially filter each detector's results. Including this named parameter allows for a more defined type and validation (as opposed to the serde_json value that would have allowed comparison of scores to strings)

Closes: #64

Signed-off-by: Evaline Ju <69598118+evaline-ju@users.noreply.github.com>
Copy link
Collaborator

@declark1 declark1 left a comment

Choose a reason for hiding this comment

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

Should we just make threshold f64 everywhere to avoid the casts to f64?

@evaline-ju
Copy link
Collaborator Author

Should we just make threshold f64 everywhere to avoid the casts to f64?

Sure, it seemed initially like unnecessary precision for thresholds but we are maintaining f64 scores - will update

Signed-off-by: Evaline Ju <69598118+evaline-ju@users.noreply.github.com>
Signed-off-by: Evaline Ju <69598118+evaline-ju@users.noreply.github.com>
@declark1 declark1 self-requested a review June 7, 2024 16:38
@evaline-ju evaline-ju merged commit af57f66 into foundation-model-stack:main Jun 7, 2024
1 check passed
@evaline-ju evaline-ju deleted the threshold branch June 7, 2024 16:42
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.

Additional validation on threshold parameter
3 participants