[Uni · Computational Intelligence · 2022]
Python notebooks implementing foundational neural network learning rules and a genetic algorithm solver, using only NumPy and Matplotlib — no ML frameworks.
| Notebook | Algorithm | Description |
|---|---|---|
hebb.ipynb |
Hebb Learning Rule | Weight update via Hebbian correlation; 2D decision boundary visualization |
perceptron.ipynb |
Perceptron | Single-layer binary classifier with step activation; plots misclassification per epoch |
adaline.ipynb |
ADALINE | Adaptive linear neuron with LMS (Widrow-Hoff) rule; MSE convergence curve |
nqueen.ipynb |
Genetic Algorithm | N-Queens solver using selection, crossover, and mutation; plots fitness over generations |
files/1.txt – files/6.txt are 2D labeled datasets (columns: x₁, x₂, label ∈ {-1, +1}) used as input to the learning notebooks.
pip install numpy scipy matplotlib jupyter
jupyter notebookOpen any .ipynb file and run all cells.