8000 GitHub - abidanBrito/axon: Deep Learning framework from first principles. · GitHub
[go: up one dir, main page]

Skip to content
abidanBritoPublic

About

Deep Learning framework from first principles.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Axon

CI STATUS

A lightweight deep learning framework built from first principles in modern C++.

Features

Core

  • Tensor abstraction (contiguous N-dimensional storage).
  • Matrix-based dense (fully-connected) layers: weight matrix + bias vector.
  • Refactor per-neuron object model to vectorized layers.

Architecture

  • Feedforward networks with arbitrary topology.
  • Bias neurons for learning offsets.
  • Convolutional layers.
  • Max/average pooling (downscaling).
  • Transpose convolutions (upscaling).
  • Batch normalization.
  • Layer normalization.
  • Sequential model API.

Training

  • Backpropagation with automatic gradient computation.
  • Autograd engine (dynamic computational graph).
  • Gradient descent with momentum optimizer.
  • Configurable learning rate and momentum.
  • Mini-batch training.
  • Exponential moving average.
  • L2 regularization (weight decay).
  • Dropout.
  • Gradient clipping.
  • Data loaders with shuffling.
  • Seedable RNG for reproducible runs.
  • Model serialization (save/load weights).
  • Model checkpointing (save/resume training).
  • Weight initialization strategies: Xavier/Glorot, He/Kaiming.
  • Advanced optimizers: Adam, AdamW, RMSprop.
  • Learning rate schedulers: step decay, reduce on plateau, cosine annealing.
  • Data augmentation (random flips, crops, rotations).
  • Mixed precision training (FP16/FP32).

Activation functions

  • Linear (identity).
  • Hyperbolic tangent.
  • ReLU (Rectified Linear Unit).
  • Sigmoid.
  • Softmax.
  • ELU (Exponential Linear Unit).
  • GELU (Gaussian Error Linear Unit).
  • Swish/SiLU.

Loss functions

  • Mean Squared Error (MSE).
  • Mean Absolute Error (MAE).
  • Binary Cross-Entropy (BCE).
  • Categorical Cross-Entropy.
  • Dice Loss.
  • Combo Loss.
  • IoU/Jaccard Loss.
  • Focal Loss.
  • Tversky Loss.
  • Huber Loss.

Performance

  • Memory pool allocators.
  • Multi-threaded batch processing.
  • SIMD intrinsics (AVX2/AVX-512)
  • CUDA support (GPU acceleration).
  • cuDNN integration (optimized conv/pooling).

Utilities

  • Built-in metrics: accuracy, precision, recall, F1.
  • Model summary (print architecture).
  • Training history logging.
  • Visualization tools.
  • Confusion matrix.
  • Youden's J index.

Testing

  • Gradient checking (finite-difference verification).
  • Overfit a single batch to near-zero loss (Karpathy, 2019).

References

LICENSE

This repository is released under the MIT license. See LICENSE for more information.

About

Deep Learning framework from first principles.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0