The modified definition of the densenet model allows the user to pass a dropout rate in the model's constructor. The default dorp-rate is set to 0.1.