Deep Learning Framework built entirely using numpy. The framework is built with the PyTorch design in mind and is meant to be used almost exactly like one would with with PyTorch. Implemented for the moment are fully connected layers, Tanh(), Sigmoid() and ReLU() activation layers, MSE and BCE loss and mini-batch Stochastic Gradient Descent (Gradient Descent and Stochastic Gradient Descent are available upon choice of mini-batch size).
Create a virtual python environment and source it.
virtualenv venv -p python3.6
source venv/bin/activateInstall required packages (NumPy)
pip install -r dev.requirements.txtRun the example code.
python example_usage.py The example_usage.py is a usage example that generates synthetic binary data and then implements a multi-layer linear model to classify them. The framework however extends to any other usage and dataset.
Install the package from the root directory with:
pip install -e .You can then import it with :
import numpy_dlUsage examples are provided in the afore mentioned example_usage.py .
Command line functions, optimizers and multi-threading to improve speed.