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 |
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 | |
trainingstr | Base folder location of the training data |
modelstr | Directory where the model weights (checkpoint) should be saved |
batchint | Size of minibatch |
numint | Number of training epochs |
strict:bool | Use any confidence as a sign of positive group. (P = conf > 0 if strict else conf > .5) |
| Returns | |
str | name of the final checkpoint file |