This repository is part of the blog post "Nothing but NumPy: Understanding & Creating Neural Networks with Computational Graphs from Scratch"
Forks rather than Clones, Stars rather than Views 🙏
The Layers directory contains the classes for:
- Linear Layer
- Activation Layer:
- Sigmoid Layer
util directory contains utility fuctions. It has the following files with the following functions:
-
paramInitializer.py
initialize_parameters(n_in, n_out, ini_type='plain')
-
utilities.py
compute_cost(Y, Y_hat)
predict(X, Y, Zs, As)
plot_learning_curve(costs, learning_rate, total_epochs, save=False)
predict_dec(Zs, As, X)
plot_decision_boundary(model, X, Y, feat_crosses=None, save=False)
plot_decision_boundary_shaded(model, X, Y, feat_crosses=None, save=False)
As examples following neural network architectures have been implemented:
Find me on twitter for any questions or suggestions.