Keras REST API for image classification using convolutional neural networks with synaptic metaplasticity
Table of Contents
Synaptic metaplasticity is a biological phenomenon shortly defined as the plasticity of synaptic plasticity, meaning that the previous history of the synaptic activity determines its current plasticity. This phenomenon interferes with some of the underlying mechanisms that are considered important in memory and learning processes, such as long-term potentiation and long-term depression. In this work, we provide an approach to include metaplasticity in convolutional neural networks to enhance learning in image classification problems. This approach consists of including metaplasticity as a weight update function in the backpropagation stage of convolutional layers.
Install and configure CUDA.
- Check your NVIDIA driver.
- Update the NVIDIA display driver.
- Check your PATH environment variable.
-
Clone the repo
git clone https://github.com/vvives/metaplasticity-rest-api.git
-
Install python libraries with the following command:
pip install -r requirements.txt
-
Execute the WSGI or the Dockerfile within the corresponding folder.
python wsgi.py
- Go to the default URL http://localhost:5000/ and visualize the Swagger interface.
- Select any image classification problem: MNIST, Fashion MNIST or CIFAR-10.
- Select the convolutional neural network architecture endpoint: alexnet, googlenet or lenet.
- Click the button Try it out.
- Use the image by default or load any of your own.
- Click the button Execute and wait for the predicted value.
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Víctor Vives - vvives@dtic.ua.es
Project Link: https://github.com/vvives/metaplasticity-rest-api