Skip to content

Handy package for training output constrained neural networks

License

Notifications You must be signed in to change notification settings

ubi-coro/constrained-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

constrained_learning

Handy package for training output constrained neural networks. As of now, this package only contains constrained extreme learning machines (CELM), constrained multi layer neural networks will be added in the future.

Structure

The source code is contained in the src folder. The implementation of the (C)ELM can be found in src/learner.py.

To install the package:

pip install -r requirements.txt

To run the synthetic examples:

python examples\flat_gaussian.py
python examples\monotone_quadratic.py
python examples\ode.py

To run a more complex example that involves learning a Lyapunov function, which in turn defines constraints for the learning process of a stable dynamical system:

python examples\stable_dynamical_system.py

For reference, take a look at this paper.

License

MIT license - See LICENSE.

About

Handy package for training output constrained neural networks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages