Skip to content

Commit

Permalink
refactor: most_frequent_timestamp_correctness_count is now the amount…
Browse files Browse the repository at this point in the history
… of trues
  • Loading branch information
thangixd committed May 24, 2024
1 parent 99ed391 commit c0dbdec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tracex_project/db_results/templates/metrics_dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h2>Timestamp Correctness</h2>
<h3>Most Frequent Timestamp Correctness</h3>
<div class="metric-count"
id="most_frequent_timestamp_correctness">{{ most_frequent_timestamp_correctness }} </div>
<div class="number-metric-small">{{ most_frequent_timestamp_correctness_count }}</div>
<div class="number-metric-small">{{ most_frequent_timestamp_correctness_count }} / {{ total_activities }} </div>
<span class="info-icon">&#9432;</span>
<div class="info-text">This metric indicates the most common timestamp correctness value for the extracted
activities.
Expand Down
2 changes: 1 addition & 1 deletion tracex_project/db_results/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def update_context_with_charts(self, context, trace_df: pd.DataFrame):
"most_frequent_category": relevance_counts.index[0],
"most_frequent_category_count": relevance_counts.values[0],
"most_frequent_timestamp_correctness": timestamp_correctness_counts.index[0],
"most_frequent_timestamp_correctness_count": timestamp_correctness_counts.values[0],
"most_frequent_timestamp_correctness_count": trace_df["timestamp_correctness"].sum(),
"average_timestamp_correctness": round(trace_df["correctness_confidence"].mean(), 2)
})

Expand Down

0 comments on commit c0dbdec

Please sign in to comment.