Important usage notes for LRFinder
masterWhen using LRFinder, keep the following constraints and behaviors in mind:
- Optimizer State: The optimizer passed to
LRFindermust not have anLRSchedulerattached to it. - Weight Modification:
LRFinder.range_test()modifies model weights and optimizer parameters. Always calllr_finder.reset()to restore them to their initial state. - Data Format:
range_test()expectsDataLoaderobjects to return a pair of(input, label). Theinputmust be ready for the model andlabelmust be ready for thecriterionwithout further processing. If processing is required, use theTrainDataLoaderIterandValDataLoaderIterwrapper classes. - History Access: You can access the results via
lr_finder.history, which returns a dictionary withlrandlosskeys.