Skip to content



Dropout is a regularization technique to reduce overfitting in neural networks by preventing complex co-adaptations on training data. It works by temporarily disabling output nodes during each training pass. It also acts as an efficient way of performing model averaging with the parameters of neural networks.


# Name Default Type Description
1 ratio 0.5 float The ratio of nodes that are dropped during each training pass.


use Rubix\ML\NeuralNet\Layers\Dropout;

$layer = new Dropout(0.2);


  1. N. Srivastava et al. (2014). Dropout: A Simple Way to Prevent Neural Networks from Overfitting.