Lookahead mechanism for optimizers in Keras
Project description
Keras Lookahead
Unofficial implementation of the lookahead mechanism for optimizers.
Install
pip install keras-lookahead
External Links
Usage
Arguments:
optimizer
: Original optimizer.sync_period
: thek
in the paper. The synchronization period.slow_step
: theα
in the paper. The step size of slow weights.
from keras_lookahead import Lookahead
optimizer = Lookahead('adam', sync_period=5, slow_step=0.5)
Custom optimizers can also be used:
from keras_radam import RAdam
from keras_lookahead import Lookahead
optimizer = Lookahead(RAdam())
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-lookahead-0.6.0.tar.gz
(5.1 kB
view details)
File details
Details for the file keras-lookahead-0.6.0.tar.gz
.
File metadata
- Download URL: keras-lookahead-0.6.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51215d5e503ee18f331a0f11f288967f339ca8dedf43e7fde59dc8f87e129993 |
|
MD5 | ab8de8532590957250e543c4241f7213 |
|
BLAKE2b-256 | 17ee675f6bcb4bc3051f94b198665095369d077cc96777ad1926fc97266c0693 |