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

Image property outliers display when there are no outliers #1738

Merged
merged 11 commits into from
Jul 7, 2022

Conversation

TheSolY
Copy link
Contributor

@TheSolY TheSolY commented Jul 6, 2022

The properties without outliers grouped by the reason for not having outliers.
Headline size for the properties is now smaller than the "additional outputs" title.

@TheSolY TheSolY added bug vision Affects deepchecks.vision package labels Jul 6, 2022
@TheSolY TheSolY added this to the Bernoulli milestone Jul 6, 2022
@TheSolY TheSolY requested a review from a team as a code owner July 6, 2022 18:31
@TheSolY TheSolY linked an issue Jul 6, 2022 that may be closed by this pull request
Copy link
Collaborator

@noamzbr noamzbr left a comment

Choose a reason for hiding this comment

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

Looks good! Can you just upload a pic of how it looks like after the refactor?

display.append(html)
grouped = no_outliers.groupby(level=0).unique().str.join(', ')
grouped_df = pd.DataFrame(grouped, columns=['Properties'])
grouped_df['Reason'] = grouped_df.index
Copy link
Collaborator

Choose a reason for hiding this comment

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

@shir22 Any idea for a better name than "Reason"?

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion:

  1. Rename the "Properties Without Outliers" to - "Properties With No Outliers Found"
  2. Swap order (properties list in the index/first column and the "why" in the following column)
  3. Ideas for alternative titles to "Reason" (not sure if they're better): More Info / Outlier Detection Results

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@shir22 I think that the "why" should be on the left because it's the grouping rule

grouped_df = pd.DataFrame(grouped, columns=['Properties'])
grouped_df['Reason'] = grouped_df.index
grouped_df = grouped_df[['Reason', 'Properties']]
display.append('<h5><b>Properties Without Outliers</h5></b>')
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe missing an if?

if not grouped_df.empty():
  display.append('<h5><b>Properties Without Outliers</h5></b>')
  display.append(grouped_df.style.hide_index())

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@matanper, correct- fixed it

@TheSolY
Copy link
Contributor Author

TheSolY commented Jul 7, 2022

@noamzbr Example display after the refractor (thanks @matanper for agreeing to using his pictures)
image

@TheSolY TheSolY requested a review from a team as a code owner July 7, 2022 10:24
@TheSolY TheSolY enabled auto-merge (squash) July 7, 2022 10:30
@TheSolY TheSolY merged commit eb8bab2 into main Jul 7, 2022
@delete-merged-branch delete-merged-branch bot deleted the 1656-image-property-outliers-no-outputs-display branch July 7, 2022 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug vision Affects deepchecks.vision package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG][CV] Image property outliers display output when it doesn't run
5 participants