ignite
ignite copied to clipboard
Edit LRFinder to have more than one parameter
Fixes #2703
Description: Editing FastaiLRFinder to have more than one parameter
Hi @Jacob208M , thanks for this PR. Would you like any help?
@sadra-barikbin Can you review this changes is everything fine please?
@sadra-barikbin Can you review this changes is everything fine please?
@Jacob208M I reviewed your changes and put some comments. Are they clear?
@sadra-barikbin Can you review this changes is everything fine please?
@Jacob208M I reviewed your changes and put some comments. Are they clear?
Yes, I'll manage it
@sadra-barikbin I just updated my code as you showed me. I haven't added ParamGroupScheduler because I wasn't sure about it.
@sadra-barikbin I did changes but now I got my tests failed with info
FAILED test_lr_finder.py::test_multi_group_optimizer[exp] - assert False FAILED test_lr_finder.py::test_multi_group_optimizer[linear] - TypeError: unsupported operand type(s) for -: 'list' and 'list'
Is it a problem with param_scheduler? What should I do with it?
@sadra-barikbin I did changes but now I got my tests failed with info
FAILED test_lr_finder.py::test_multi_group_optimizer[exp] - assert False FAILED test_lr_finder.py::test_multi_group_optimizer[linear] - TypeError: unsupported operand type(s) for -: 'list' and 'list'Is it a problem with param_scheduler? What should I do with it?
Thanks. Could you please push the changes to see where the error arises from?
@sadra-barikbin I did changes but now I got my tests failed with info
FAILED test_lr_finder.py::test_multi_group_optimizer[exp] - assert False FAILED test_lr_finder.py::test_multi_group_optimizer[linear] - TypeError: unsupported operand type(s) for -: 'list' and 'list'Is it a problem with param_scheduler? What should I do with it?Thanks. Could you please push the changes to see where the error arises from?
Done
@sadra-barikbin Hi, sorry for my absence, I was busy because my studies have started. I committed your changes but I still see there is an error, now it looks like that:
ERROR ignite.engine.engine.Engine:engine.py:1105 Current run is terminating due to exception: 'ParamGroupScheduler' object has no attribute 'get_param' ERROR ignite.engine.engine.Engine:engine.py:1000 Engine run is terminating due to exception: 'ParamGroupScheduler' object has no attribute 'get_param' ====================================================================================== short test summary info ====================================================================================== FAILED test_lr_finder.py::test_multi_group_optimizer[exp] - AttributeError: 'ParamGroupScheduler' object has no attribute 'get_param' FAILED test_lr_finder.py::test_multi_group_optimizer[linear] - AttributeError: 'ParamGroupScheduler' object has no attribute 'get_param'
Can you check it please?
@sadra-barikbin Hi, sorry for my absence, I was busy because my studies have started. I committed your changes but I still see there is an error, now it looks like that:
ERROR ignite.engine.engine.Engine:engine.py:1105 Current run is terminating due to exception: 'ParamGroupScheduler' object has no attribute 'get_param' ERROR ignite.engine.engine.Engine:engine.py:1000 Engine run is terminating due to exception: 'ParamGroupScheduler' object has no attribute 'get_param' ====================================================================================== short test summary info ====================================================================================== FAILED test_lr_finder.py::test_multi_group_optimizer[exp] - AttributeError: 'ParamGroupScheduler' object has no attribute 'get_param' FAILED test_lr_finder.py::test_multi_group_optimizer[linear] - AttributeError: 'ParamGroupScheduler' object has no attribute 'get_param'Can you check it please?
get_param is now added to branch master in ignite. You should pull ignite changes to your master. Simply call git fetch && git pull origin master
I pulled new changes and now there is no error from get_param, but simple assertion False. I'm not sure why. Can you look at it?
"Check code formatting" step in jobs is failing. Let's fix it first. flake8 which is a code style enforcement tool is raising those errors. You can see them by clicking Details in one of failed jobs bottom.
To install flake8 and other formatting tools being used by Ignite do:
./tests/run_code_style.sh install
You can see errors locally with:
./tests/run_code_style.sh lint
@Jacob208M can you please follow and apply suggestions from this comment: https://github.com/pytorch/ignite/pull/2704#issuecomment-1273793182. so we can advance on this feature. Thanks!
I think is done, flake8 doesn't throw any errors, tests are passing. Could you look at this, please?
@Jacob208M can you also run code formatting script:
./tests/run_code_style.sh fmt