When using virtualenv, create a new environment and activate it with the following commands:
virtualenv .
. bin/activate
To install the dependencies using pip run:
pip install -r requirements.txt
The usage is currently quite limited. The provided dataset
res/breast-cancer-wisconsin.data
is hardcoded. A different dataset
can't be used without modifying the code.
The application can be started using the command:
python3 breast_cancer.py
The application will initialize a multilayered perceptron network. This network contains an input layer of 9 neurons, followed by a hidden layer of another 9 neurons and an output layer of 1 neuron. The network will be trained using the backpropagation algorithm (SGD) wich is implemented completely using only raw python and numpy arrays and numpy array operations.
This script is the result of an attempt to learn how neural networks work and can be trained. The sources used to obtain this information are: