NeuralNet
A Neural Network in cpp
Install / Use
/learn @Az-r-ow/NeuralNetREADME
NeuralNet in CPP :
This is my take on implementing a neural network in cpp. Keeping in mind that I learned cpp a couple of weeks prior to starting the project. You can see my programming style adapting and improving (hopefully) throughout the commits.
Build
Initialize submodules
git submodule init
git submodule update
Build the code
scripts/build.sh
Tests
Catch 2 framework will be used for testing, after some research it seems like the most active and well maintained out of the other options.
To run tests :
source /scripts/tests.sh
📖 Docs
Miscellaneous
🔗 Python Bindings
I used the pybind11 library to bind some of the classes and functionalities. After building the project you can head to /examples folder to check out some of the cool mini-projects built in python.
The importance of weight initialization functions
Arbitrary initialization can slow down and sometimes stall completely the convergence process. This slowdown can result in the deeper layers receiving inputs with small variances, which in turn slows down back propagation, and slows down the overall convergence progress.
Available Weight Initializations
| WEIGHT_INIT | Formula | Activation | | ----------- | ---------------------------- | --------------- | | RANDOM | $mtRand(-1, 1)$ | Sigmoid | | GLOROT | $\frac{2}{n_{in} + n_{out}}$ | Relu | | HE | $\frac{2}{n_{in}}$ | Relu<br>Softmax | | LECUN | $\frac{1}{n_{in}}$ | Softmax |
$n_{in}$ number of inputs
$n_{out}$ number of outputs
⚖️ License
This project is licensed under the MIT License - see the LICENSE file for details.
Related Skills
claude-opus-4-5-migration
85.3kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
342.5kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
50.2k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
mcp-for-beginners
15.7kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
