-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.py
executable file
·38 lines (34 loc) · 1.04 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#################################################################
# Config file for a specific dataset
#
# Project name:
# ExplainableMS
# Fine-tuning
#
# add dataset specific parameters at the bottom
#
#################################################################
import os
##### general parameters #####
# main project folder
root_dir = "/your/data/dir"
# data folder
data_dir = os.path.join(root_dir, "CIS")
doc_dir = os.path.join(root_dir, "Test", "file_list_HC_MS_BET_FLAIR.csv")
# uncomment if data contains NANs and you wish to remove them
# remove_nan = True
# set GPU ID to use (use 0 if only one available)
gpu = 0
# define shape of datapoints
shape = (96, 114, 96)
##### training parameters #####
# batch size
# i.e. number of samples per training step
# validation always uses b = 1
b = 4
# number of epochs
# i.e. times to loop over the entire set
num_epochs = 200
##### dataset specifc parameters #####
indices_holdout = [ 99, 93, 54, 103, 98, 75, 89, 53, 44, 59,
5, 16, 91, 14, 58, 33, 73, 29, 66, 35, 117, 84, 31]