module documentation

Training script to train the PD|Control classifier.

Subfolders are required to follow the convention: "train/PD", "train/Control", "val/PD" and "val/Control".

Function train_model Train the model using PD and Control training data.
def train_model(training_dump_path, model_dump_dir, batch_size=32, num_epochs=500, strict=False):

Train the model using PD and Control training data.

Parameters
training_dump_path:strBase folder location of the training data
model_dump_dir:strDirectory where the model weights (checkpoint) should be saved
batch_size:intSize of minibatch
num_epochs:intNumber of training epochs
strict:boolUse any confidence as a sign of positive group. (P = conf > 0 if strict else conf > .5)
Returns
strname of the final checkpoint file