Skip to content

Commit

Permalink
add calc acc and stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jqu-striveworks committed Aug 22, 2024
1 parent 358d595 commit 782251e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions valor-sandbox/valor_implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,6 @@ def _calculate_pr_curves(
+ pr_curve_counts_df["false_positives"]
+ pr_curve_counts_df["false_negatives"]
)

'''
pr_curve_counts_df["precision"] = pr_curve_counts_df["true_positives"] / (
pr_curve_counts_df["true_positives"]
+ pr_curve_counts_df["false_positives"]
Expand All @@ -310,6 +308,7 @@ def _calculate_pr_curves(
# any NaNs that are left are from division by zero errors
pr_curve_counts_df.fillna(-1, inplace=True)

'''
pr_output = defaultdict(lambda: defaultdict(dict))
detailed_pr_output = defaultdict(lambda: defaultdict(dict))
Expand Down

0 comments on commit 782251e

Please sign in to comment.