Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LVeefkind committed Oct 29, 2024
1 parent b03ed3c commit 15e3734
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions neural_networks/plots/confusion_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ def get_dataloader(data_root, mode="val", batch_size=32):
architecture_name = "surf/TransferLearning"
# Set Device here
DEVICE = "cuda"
# Thresholds to consider for classification
thresholds = [0.2, 0.3, 0.4, 0.5]
# Change to directory of files. Should have subfolders 'continue_val' and 'stop_val'
data_root = "/scratch-shared/CORTEX/public.spider.surfsara.nl/lofarvwf/jdejong/CORTEX/calibrator_selection_robertjan/cnn_data"
# Uses cached confusion matrix for testing the plotting functionalities
if model_name == "surf/dinov2_09739_rotations" and TESTING:
Expand Down

0 comments on commit 15e3734

Please sign in to comment.