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

🐛 Fix threshold getting passed through beyond orchestrator proces… #236

Merged

Conversation

gkumbhat
Copy link
Collaborator

@gkumbhat gkumbhat commented Oct 22, 2024

Description

Remove threshold parameter as soon as it gets fetched.

Closes: #234

assert_eq!(value.threshold(), Some(0.2));
let value = DetectorParams::new();
assert!(!value.contains_key("threshold"));
Copy link
Collaborator

@evaline-ju evaline-ju Oct 22, 2024

Choose a reason for hiding this comment

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

I did this for the first iteration of #235 but felt it was not intuitive since essentially if value.threshold() were to get called again for this same value, the result would change. This could get confusing if any function happens to call threshold() twice

Copy link
Collaborator

@evaline-ju evaline-ju left a comment

Choose a reason for hiding this comment

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

LGTM

@gkumbhat gkumbhat merged commit b9a64fc into foundation-model-stack:main Oct 23, 2024
2 checks passed
@gkumbhat gkumbhat deleted the fix_threshold_passthrough branch October 23, 2024 16:11
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.

threshold parameter may cause detector validation failures
2 participants