cyclical_annealing
cyclical_annealing copied to clipboard
IndexError: index 1100 is out of bounds for axis 0 with size 1100
Getting below error IndexError: index 1100 is out of bounds for axis 0 with size 1100 at below line L[int(i + c * period)] = 1.0 / (1.0 + np.exp(- (v * 12. - 6.)))
it seems that we missed to add second condition at below line in function 'frange_cycle_linear' & 'frange_cycle_sigmoid' while v <= stop: should be while v <= stop and (int(i + c * period) < n_epoch):