An object-oriented python module intended for building and teaching rather small neural networks.
In case anybody would like to use the code:
I recomend simply copying only the main module file -
neural_network.pyinto your project's root folder, and importing just the right staff in your scripts, for example like that:
from neural_network import Network, soft_max- To run example scripts, you can use folowing syntax (while in project's directory):
python3 -m examples.<example_name_without_file_extension>adjust-sinus.pyscript requiresturtlemodule to draw the resoult.- If you get bored with waiting for the AI to learn more, consider clicking
Ctrl + cto finish the script and to see the best resoult found at that point. - At the top part of the example code, you can edit parameters of the math-function f(x) to be drawn.