Skip to main content

Targeted dropout implemented in Keras

Project description

Travis Coverage

Implementation of Targeted Dropout with tensorflow backend.

Install

pip install keras-targeted-dropout

Usage

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')
model.summary()
  • 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 and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page