Skip to content

Commit

Permalink
lowered minimum colored bar interestingness score
Browse files Browse the repository at this point in the history
  • Loading branch information
dorisjlee committed Jan 27, 2021
1 parent 36ee755 commit bf24ab6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lux/interestingness/interestingness.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def interestingness(vis: Vis, ldf: LuxDataFrame) -> int:
chi2_score = chi2_contingency(contingency_tbl)[0] * 0.9 ** (
color_cardinality + groupby_cardinality
)
score = min(0.10, chi2_score)
score = min(0.01, chi2_score)
except (ValueError, KeyError):
# ValueError results if an entire column of the contingency table is 0, can happen if an applied filter results in a category having no counts
score = -1
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,4 +304,4 @@ def test_sort(global_var):

# vis_code = df.recommendation["Correlation"][0].to_Altair()
# print (vis_code)
# assert 'chart = chart.configure_mark(color="green")' in vis_code, "Exported chart does not have additional plot style setting."
# assert 'chart = chart.configure_mark(color="green")' in vis_code, "Exported chart does not have additional plot style setting."

0 comments on commit bf24ab6

Please sign in to comment.