April 2015

In this post are presented the most important steps that we must follow to train and test a single-layer neural network (perceptron). In the first part, a simple example to train a logical gate “or” is presented, whereas the second part shows an example that uses a dataset of random values. However, before starting, we must previously install the following libraries:

In order to install Python and the required dependencies in GNU/Linux (OpenSUSE), we must open the “Install/Uninstall Software” option of the Yast manager. After that, just search the words “python”, “python-scikit-learn”, “numpy”, as is depicted in the following figures.