Skip to content
Advertisement

Tag: regularized

Is passing activity_regularizer as argument to Conv2D() the same as passing it seperately right after Conv2D()? (Tensorflow)

I was wondering whether creating the model by passing activity_regularizer=’l1_l2′ as an argument to Conv2D() will mathematically make a difference to creating the model by adding model.add(ActivityRegularization(l1=…, l2=…)) seperately? For me, it is hard to tell, as training always involves some randomness. But the results seem similar. One additional question I have is: I accidentally passed the activity_regularizer=’l1_l2′ argument to

Advertisement