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 passed function to suite result #1594

Merged
merged 4 commits into from Jun 12, 2022
Merged

Add passed function to suite result #1594

merged 4 commits into from Jun 12, 2022

Conversation

matanper
Copy link
Contributor

@matanper matanper commented Jun 9, 2022

resolve #1591
resolve #1589

@matanper matanper added the bugfix label Jun 9, 2022
@matanper matanper requested review from a team and ItayGabbay as code owners June 9, 2022 11:44
@matanper matanper self-assigned this Jun 9, 2022
@matanper matanper requested review from shir22 and a team as code owners June 9, 2022 11:44
Copy link
Collaborator

@Nadav-Barak Nadav-Barak left a comment

Choose a reason for hiding this comment

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

See comment about check devision

@@ -161,9 +161,9 @@ def have_display(self) -> bool:
"""Return if this check has display."""
return bool(self.display)

def passed_conditions(self) -> bool:
def passed_conditions(self, fail_on_warning=True) -> bool:
Copy link
Collaborator

Choose a reason for hiding this comment

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

IMO fail on warning should be default False

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@noamzbr and @shir22 thinks otherwise

return self.select_results(self.failures)

def get_checks_not_passed(self, fail_on_warning=True) -> List[CheckResult]:
"""Get all the check results that have not passing condition.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure about this devision, where do checks without conditions go?

Maybe do this in the same devision as the new suite output: pass, fail, didnt run, other(/ checks without conditions)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this division is just for the passed function, checks without condition are not relevant

deepchecks/core/suite.py Outdated Show resolved Hide resolved
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.

[BUG] Missing pytest function from doc [BUG] [DOC] Dataset.numerical_features typo
5 participants