mirror of
https://github.com/zhigang1992/fastai.git
synced 2026-04-24 05:14:58 +08:00
Merge pull request #430 from JanLauGe/master
modify LR_Finder.plot to use n_skip_end=0
This commit is contained in:
@@ -158,7 +158,7 @@ class LR_Finder(LR_Updater):
|
||||
def plot(self, n_skip=10, n_skip_end=5):
|
||||
plt.ylabel("loss")
|
||||
plt.xlabel("learning rate (log scale)")
|
||||
plt.plot(self.lrs[n_skip:-n_skip_end], self.losses[n_skip:-n_skip_end])
|
||||
plt.plot(self.lrs[n_skip:-(n_skip_end+1)], self.losses[n_skip:-(n_skip_end+1)])
|
||||
plt.xscale('log')
|
||||
|
||||
class LR_Finder2(LR_Finder):
|
||||
|
||||
Reference in New Issue
Block a user