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

Make settings explicit #51

Merged
merged 4 commits into from
Dec 14, 2024
Merged

Make settings explicit #51

merged 4 commits into from
Dec 14, 2024

Conversation

sidjha1
Copy link
Collaborator

@sidjha1 sidjha1 commented Dec 14, 2024

Better to have settings be very explicit, rather than unstructured. Making the change led to a bunch of mypy complaints that required some assertions to be made. The changes maintain the same user-facing API by providing a configure method on lotus.settings

@sidjha1 sidjha1 requested a review from liana313 December 14, 2024 10:21
Comment on lines 90 to +92
class CascadeArgs(BaseModel):
recall_target: float | None = None
precision_target: float | None = None
recall_target: float = 0.8
precision_target: float = 0.8
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@liana313 do these defaults look good?

Copy link
Collaborator

Choose a reason for hiding this comment

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

looks good

@liana313 liana313 merged commit 31374e8 into main Dec 14, 2024
6 checks passed
@sidjha1 sidjha1 deleted the sid/settings branch December 14, 2024 18:50
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