Historical learning project from 2020-2021. This repository is retained as an educational artefact and does not represent production AI/ML engineering.
- Not actively maintained.
- No automated test suite, packaging, CI or production deployment.
- Some advanced training paths may be incomplete or incorrect.
- Not intended for production use.
Generic L-layer fully connected neural-network implementation written directly in Python using NumPy.
- Input data arranged as an
n_xbymmatrix, wheren_xis the number of input features andmis the number of training examples. - Output data arranged as a
1bymmatrix. - Activation functions: Sigmoid, ReLU, Leaky ReLU, Tanh and Softmax.
- Weight initialization: zeros, random, He and Xavier.
- Regularization: L2 and Dropout.
- Optimization: Mini-Batch Gradient Descent, Momentum and Adam.
MODEL = (
(20, "relu", "he"),
(7, "relu", "he"),
(5, "relu", "he"),
(1, "sigmoid", "random"),
)
parameters = L_layer_model(trainX, trainY, MODEL)
predictTrain = predict(trainX, parameters, trainY)
predictDev = predict(devX, parameters, devY)
predictTest = predict(testX, parameters, testY)Batch normalization was planned but not implemented.