Skip to content

Commit

Permalink
Adjust dimension score threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
dyang415 committed Sep 20, 2023
1 parent 76be3a0 commit 0fac382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/insight/services/insight_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def gen_sub_df_for_columns(columns: List[str]):
.select('dimension_name', "score") \
.with_columns([polars.col("score").mean().alias("score_mean"),
polars.col("score").std().alias("score_std")])
dimensions = [Dimension(row['dimension_name'], row['score'], row['score'] > row['score_mean']) for row in
dimensions = [Dimension(row['dimension_name'], row['score'], row['score'] > row['score_mean'] and row['score'] > 0.02) for row in
dimension_info_df.rows(named=True)]

weighted_change_mean = multi_dimension_grouping_result.select(
Expand Down

0 comments on commit 0fac382

Please sign in to comment.