Skip to content

Commit 027e546

Browse files
committed
add docstring for lr_scheduler
1 parent 1207d0c commit 027e546

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

libmultilabel/nn/model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class MultiLabelModel(L.LightningModule):
1717
num_classes (int): Total number of classes.
1818
optimizer (str, optional): Optimizer name (i.e., sgd, adam, or adamw). Defaults to 'adam'.
1919
optimizer_config (dict, optional): Optimizer parameters. The keys in the dictionary should match the parameter names defined by PyTorch for the optimizer.
20+
lr_scheduler: (str, optional): Learning rate scheduler. Defaults to None, i.e., no learning rate scheduler. Currently, the only supported lr_scheduler is 'ReduceLROnPlateau'.
21+
scheduler_config (dict, optional): Learning rate scheduler parameters. The keys in the dictionary should match the parameter names defined by PyTorch for the learning rate scheduler.
2022
metric_threshold (float, optional): The decision value threshold over which a label is predicted as positive. Defaults to 0.5.
2123
monitor_metrics (list, optional): Metrics to monitor while validating. Defaults to None.
2224
log_path (str): Path to a directory holding the log files and models.

0 commit comments

Comments
 (0)