pip install git+https://github.com/jernsting/keras-drop-connect
Set drop connect rate for all weights:
import keras
from keras_drop_connect import DropConnect
DropConnect(
layer=keras.layers.Dense(units=10),
rate=0.2,
)
Set drop connect rate with a dict:
import keras
from keras_drop_connect import DropConnect
DropConnect(
layer=keras.layers.Dense(units=10),
rate={'kernel': 0.2},
)