I’m still working on the problem of determining the next number in a sequence, so I decided to try to score a quick win by solving some other problem.

https://code.sololearn.com/ca03KtulkL8X/?ref=app I express the gender outputs as 0 for female and 1 for male. You can view the code here.

I did not have to translate any new code from Python for this project. I have been translating from Python to C to improve my knowledge of both languages, as well as to deepen my understanding of how neural networks work. The translation forces me to really know what’s going on, otherwise the code simply doesn’t work.

The only significant change to the code for this project was adding a normalization function. The sigmoid function does not work with values outside the range of 0 and 1, therefore the inputs all have to be normalized in order for the neural network to run correctly.