All Projects → kristpapadopoulos → keras-stochastic-weight-averaging

kristpapadopoulos / keras-stochastic-weight-averaging

Licence: other
Keras callback function for stochastic weight averaging

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to keras-stochastic-weight-averaging

react-tabllist
React-based customizable style table or list components that support event and callback functions.
Stars: ✭ 20 (-62.26%)
Mutual labels:  callback, callback-functions
synapse
Non-intrusive C++ signal programming library
Stars: ✭ 48 (-9.43%)
Mutual labels:  callback
EncoderTool
The EncoderTool is a library to manage and read out rotary encoders connected either directly or via multiplexers to ARM based boards. Encoder push buttons are supported. Callback functions can be attached to encoder changes and button presses to allow for event driven applications
Stars: ✭ 29 (-45.28%)
Mutual labels:  callback
bagging pu
Simple sklearn based python implementation of Positive-Unlabeled (PU) classification using bagging based ensembles
Stars: ✭ 73 (+37.74%)
Mutual labels:  ensemble
modeltime.ensemble
Time Series Ensemble Forecasting
Stars: ✭ 65 (+22.64%)
Mutual labels:  ensemble
Deep-Vessel
kgpml.github.io/deep-vessel/
Stars: ✭ 52 (-1.89%)
Mutual labels:  ensemble
AjaxHandler
ASimple PHP Class to help handling Ajax Requests easily
Stars: ✭ 30 (-43.4%)
Mutual labels:  callback
Machine-learning-toolkits-with-python
Machine learning toolkits with Python
Stars: ✭ 31 (-41.51%)
Mutual labels:  ensemble
SwiftObserver
Elegant Reactive Primitives for Clean Swift Architecture #NoRx
Stars: ✭ 14 (-73.58%)
Mutual labels:  callback
markright
A customizable markdown parser in Elixir: pure pattern matching.
Stars: ✭ 14 (-73.58%)
Mutual labels:  callback
fastverse
An Extensible Suite of High-Performance and Low-Dependency Packages for Statistical Computing and Data Manipulation in R
Stars: ✭ 123 (+132.08%)
Mutual labels:  weights
GPSService
Demonstrates how to use a service to regularly update a activity with data via callback. Also allows the activity to call functions on the service.
Stars: ✭ 16 (-69.81%)
Mutual labels:  callback
image-cache
NodeJS Image cache with Base64 format
Stars: ✭ 18 (-66.04%)
Mutual labels:  callback
mesa
NeurIPS’20 | Build powerful ensemble class-imbalanced learning models via meta-knowledge-powered resampler. | 设计元知识驱动的采样器解决类别不平衡问题
Stars: ✭ 88 (+66.04%)
Mutual labels:  ensemble
proposal-function-helpers
A withdrawn proposal for standardizing some useful, popular helper functions into JavaScript’s Function object.
Stars: ✭ 41 (-22.64%)
Mutual labels:  callback
open-solution-cdiscount-starter
Open solution to the Cdiscount’s Image Classification Challenge
Stars: ✭ 20 (-62.26%)
Mutual labels:  keras-implementations
Android-Alarm
This repository is an Alarm application, demonstrate how to use multiple pending intent to set alarm's time wake up. use popup menu, RecyclerView Adapter, use SQLite to store data
Stars: ✭ 25 (-52.83%)
Mutual labels:  callback
ProtoPromise
Robust and efficient library for management of asynchronous operations in C#/.Net.
Stars: ✭ 20 (-62.26%)
Mutual labels:  callback
ant-arduino
An implementation of a ANT driver for Arduino, Mbed and ESP-IDF
Stars: ✭ 69 (+30.19%)
Mutual labels:  callback
async-chainable
An extension to Async adding better handling of mixed Series / Parallel tasks via object chaining
Stars: ✭ 25 (-52.83%)
Mutual labels:  callback

Stochastic Weight Averaging with Keras callback function

Stochastic Weight Averaging following paper Averaging Weights Leads to Wider Optima and Better Generalization

The file swa.py contains an implementation for stochastic weight averaging (SWA) with a constant learning rate for a user defined amount of epochs.

Callback is instantiated with filename for saving the final weights of the model after SWA and the number of epochs to average.

Example

The total number of training epochs 150, SWA to start from epoch 140 to average last 10 epochs.

from swa import SWA

# specify number of training epochs
number_of_epochs = 150

# specify the start epoch of stochastic weight averaging
swa = SWA(140, filepath = None)

# call SWA during model fitting
model.fit(..., callbacks = [swa])
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].