-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated eval_recall.py to use Youden index for optimal sensitivity an…
…d specificity values.
- Loading branch information
Axel Montout
committed
Jul 9, 2024
1 parent
84e724d
commit dfec59f
Showing
4 changed files
with
119 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import os | ||
import glob | ||
|
||
# Define the directory path | ||
directory = r"E:\Cats\paper_debug_regularisation_36" | ||
|
||
# Construct the search pattern | ||
pattern = os.path.join(directory, "*.pkl") | ||
|
||
# Get the list of all .pkl files in the directory | ||
pkl_files = glob.glob(pattern) | ||
|
||
# Delete each .pkl file | ||
for file_path in pkl_files: | ||
try: | ||
os.remove(file_path) | ||
print(f"Deleted: {file_path}") | ||
except Exception as e: | ||
print(f"Error deleting {file_path}: {e}") |