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

add base run functionality #253

Closed
wants to merge 9 commits into from
Closed

add base run functionality #253

wants to merge 9 commits into from

Conversation

ulya-tkch
Copy link
Collaborator

This PR adds Python API code for the base run functionality as well as wait until cleanset ready options.

if options.get("tlm_options")
else {},
)
epr = EnrichmentResult.from_dict(response)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

full name var

@ulya-tkch ulya-tkch requested a review from eytanhanig July 2, 2024 20:22
@@ -131,6 +135,10 @@ def __str__(self) -> str:
return error_msg


class EnrichmentProjectHandledError(CleansetHandledError):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Don't subclass from CleansetHandledError

Comment on lines 1 to 11
from cleanlab_studio.errors import EnrichmentProjectError, EnrichmentProjectHandledError
from cleanlab_studio.internal.api import api
from cleanlab_studio.internal.util import log_internal_error


from tqdm import tqdm


import itertools
import time
import traceback

Choose a reason for hiding this comment

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

nit: It looks like isort didn't run on this file. Do you have pre-commit installed for this repo?

constrain_outputs: Optional[List[str]] = None,
extraction_pattern: Optional[str] = None,
optimize_prompt: Optional[bool] = True,
quality_preset: Optional[TLMQualityPreset] = "medium",

Choose a reason for hiding this comment

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

Suggested change
quality_preset: Optional[TLMQualityPreset] = "medium",
quality_preset: TLMQualityPreset = "medium",

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why are we making quality_preset not optional here if it is optional in enrichment_preview() method?

@ulya-tkch ulya-tkch closed this Aug 14, 2024
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