Share your repls and programming experiences

← Back to all posts
Neural network [Python]
pyelias (936)

I made a neural network without any external libraries.
https://repl.it/@pyelias/netlib

It is currently programmed to classify flowers from the iris dataset. After each training round, it outputs 5 random data entries, the network's certainties, and the network's guess in the following format:
[type-0 certainty, type-1 certainty, type-2 certainty]
Guess: <the highest certainty>
Real: <the actual entry>

The network it uses has a sigmoid activation function, and has two size-5 hidden layers.

If you have any questions about the internals, just ask.

Commentshotnewtop
EchoCoding (256)

@pyelias PLEASE do a tutorial on this. I am extremely interested into how you were able to create this.

wallefan (1)

Dude! Respect!

Certainly puts everything I do to shame.

pyelias (936)

If you want to make it do something different, just fork it, change the network setup, and put new data in data.py (internals don't matter, but the final result should be in DATA)

ALSO: The program has been slightly optimized.