-
-
Notifications
You must be signed in to change notification settings - Fork 381
[GSK-1956] Moved target validation and silenced it for LLMs #1531
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
Changes from 5 commits
aba6ac4
049e66d
04a431b
6b7d3f8
97f6737
75dc072
7683267
520f41f
7d43b6a
6f255fc
f92d720
75b91e9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,11 +14,14 @@ | |
| from giskard.models.base import BaseModel, WrapperModel | ||
| from ..utils import fullname | ||
| from ..utils.analytics_collector import analytics, get_dataset_properties, get_model_properties | ||
| from .dataset_validation import validate_optional_target | ||
|
|
||
|
|
||
| @configured_validate_arguments | ||
| def validate_model(model: BaseModel, validate_ds: Optional[Dataset] = None, print_validation_message: bool = True): | ||
| try: | ||
| if model.meta.model_type != SupportedModelTypes.TEXT_GENERATION and validate_ds is not None: | ||
| validate_optional_target(validate_ds) | ||
|
Comment on lines
+23
to
+24
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need this in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should refactor
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's just fix the llm-warning issue for now and deal with the refactoring post-release, I added a card here: https://linear.app/giskard/issue/GSK-2064/refactor-model-and-dataset-validation |
||
| _do_validate_model(model, validate_ds) | ||
| except (ValueError, TypeError) as err: | ||
| _track_validation_error(err, model, validate_ds) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.