Fixes issue #136 'Error in dropout rate function'