Skip to main content

Targeted dropout implemented in Keras

Project description

Travis Coverage

Implementation of Targeted Dropout with tensorflow backend.


pip install keras-targeted-dropout


import keras
from keras_targeted_dropout import TargetedDropout

model = keras.models.Sequential()
model.add(TargetedDropout(input_shape=(None, None), drop_rate=0.4, target_rate=0.4))
model.compile(optimizer='adam', loss='mse')
  • drop_rate: Dropout rate for each pixel.

  • target_rate: The proportion of bottom weights selected as candidates per channel.

The final dropout rate will be drop_rate times target_rate.

See Fashion MNIST demo.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keras-targeted-dropout-0.2.0.tar.gz (3.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page