Regularize Callback

Perform Group Regularization in fastai Callback system

RegularizeCallback

 RegularizeCallback (g, wd=0.01, layer_type=<class
                     'torch.nn.modules.conv.Conv2d'>)

Callback to apply grouped weight decay

The RegularizeCallbackcan be used to perform \(l_1\) regularization on any granularity available in the criteria class.