Skip to content

Commit

Permalink
Update extract_test_data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAIWizard authored Jun 18, 2024
1 parent 188a82a commit 8e5ad80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/extract_test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def transform_json_to_dataframe(json_dir: str):
# Count skipped and unclassifiable
print("Number of skips: " + str(len(results[results["skips"] != 0])))
print("Rate of skips: " + str(len(results[results["skips"] != 0])/len(results)))
print("Number of unclassifiable: " + str(len(results[results["apet_manual"] != "XXXXX"])))
print("Rate of unclassifiable: " + str(len(results[results["apet_manual"] != "XXXXX"])/len(results)))
print("Number of unclassifiable: " + str(len(results[results["apet_manual"] == "XXXXX"])))
print("Rate of unclassifiable: " + str(len(results[results["apet_manual"] == "XXXXX"])/len(results)))

# Keep only unskipped and classifiable annotations
results = results[results["skips"] == 0]
Expand Down

0 comments on commit 8e5ad80

Please sign in to comment.