Skip to content

lr_finder plotting method automated unit tests #1859

Description

@wyli

Describe the bug

lr_finder.plot(0, 0) # to inspect the loss-learning rate graph

this plotting test may block the main testing runner and need manual confirmation

To Reproduce
./runtests.sh --quick --unittest

Stopping early, the loss has diverged                                                                                                                                                                                                             
Computing optimal learning rate:  80%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                                  | 4/5 [00:06<00:01,  1.72s/it]
Resetting model and optimizer
Coverage.py warning: No data was collected. (no-data-collected)
Coverage.py warning: No data was collected. (no-data-collected)
Coverage.py warning: No data was collected. (no-data-collected)
Coverage.py warning: No data was collected. (no-data-collected)
Coverage.py warning: No data was collected. (no-data-collected)
Coverage.py warning: No data was collected. (no-data-collected)
Coverage.py warning: No data was collected. (no-data-collected)
Coverage.py warning: No data was collected. (no-data-collected)
Coverage.py warning: No data was collected. (no-data-collected)
0.00031622776601683794
??^B^C^C
^C
^C

^C
^C^C
^C

^CFinished test: test_lr_finder (tests.test_lr_finder.TestLRFinder) (2.63e+03s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions