Skip to content

hakonnoren/neural_network

Repository files navigation

General Neural Network class built with Numpy

Includes several common activation layers, standard feed forward layers and convolution layers with backpropagation.

To see examples of convolutional neural networks aiming at classifying basic geometric shapes, run tests.ipynb or run the configuration files directly in your favourite python terminal. This is achived by running plot_pred,net = read_config("config_cnn_2d.INI"). The returned plot_pred function could be run to visualize how different pixles affects the class prediction.

This is done by plotting the derivative of the loss function with respect to the input, aiming at achieving some basic explainability. See examples below.

Explainability plot of geometric shapes using derivative of loss function

alt text

alt text

Explainability plot of letters using derivative of loss function (this example is not included in this repo)

alt text

alt text

This library includes a generator of basic geometric shapes, or crosses and polygons with added noise.

alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published