A wrapper that slows down the updates of trainable weights
Project description
A wrapper that slows down the updates of trainable weights.
Install
pip install keras-succ-reg-wrapper
Usage
import keras
from keras_succ_reg_wrapper import SuccReg
input_layer = keras.layers.Input(shape=(1,), name='Input')
dense_layer = SuccReg(
layer=keras.layers.Dense(units=1, name='Dense'),
regularizer=keras.regularizers.L1L2(l2=1e-3), # Any regularizer
name='Output',
)(input_layer)
model = keras.models.Model(inputs=input_layer, outputs=dense_layer)
model.compile(optimizer='adam', loss='mse')
model.summary()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for keras-succ-reg-wrapper-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78c7f480001411ea908a0fdcf5a51e86403d02d27a14faf9db5e09d9f9ca596b |
|
MD5 | 89b79fb80183827572bab0f974ecfdd6 |
|
BLAKE2b-256 | c839f6e33ab3e5f4782d96b6bd997f466b89e3fe2524c97ba8f355921db220df |