And going through the pet image classification exercise he has and using the latest version of fastai 1.0.51 I couldn’t find a fit_one_cycle method in the Learner class returned from cnn_learner
which the results are worse. I think this might be because I used a batch size of 8 when using the ImageDataBunch method instead of 64 like he did(which Idk how that’d affect it, I’d love an explanation), but can’t confirm that it isn’t because of fit vs fit_one_cycle
I did below
data = ImageDataBunch.from_name_re(pets_pth, fnames, pat, ds_tfms=get_transforms(), size=224, bs=8)
due to GPU constraints.
Anyhow, which could it be? Also what happened to fit_one_cycle?
It’s pretty usual if your reproduction’s result are a little bit different. Even if you rerun the same code, you might see the results are different as well. So don’t worry. fit_one_cycle is a learning method inspired by one cycle policy, a special way to find good learning rate. you might be willing to read this: Finding Good Learning Rate and The One Cycle Policy.
Ah okay, thanks for the assurance
Also, I’ll check it out, but in the meantime, do you know if fit
now does what fit_one_cycle
used to do? Because as pointed out, there is no fit_one_cycle method anymore in the Learner returned from cnn_learner
Funnily enough, if I run it it works fine but I get the error from Pycharm saying, “unresolved reference for fit_one_cycle for class Learner”. And if I go to the source code for the Learner class, there is indeed no fit_one_cycle method, however if I do a grep, I can see that it actually does give the Learner class a fit_one_cycle method by doing
Ah, so everythings fine, its just an annoying warning in the ide, but really alls well~ thanks for walking through with this, i should have searched for the dynamic binding of the method first