How nuistmrchest/libchestneuralnetwork works
LibChestNN is a header-only C++ neural-network library for small CPU-side experiments. Its main workflow is to represent input and parameters with matrices or tensors, configure activations and losses, then train or run inference through an MLP; CNN training adds convolutional layers, flattens their output for the MLP classifier, and propagates gradients back. The graph separates numeric containers, reusable functions, layer implementations, and network orchestration. Relationships are based on the excerpts and README; the example is a demo, not a runtime dependency of the library.
Main entry points: lib_chest_nn.hpp Public header · network.hpp MLP workflow · matrix.hpp Matrix operations · activations.hpp Activation functions
Components 11
Numeric containers
- Matrix operations
nn/matrix.hpp - Tensor operations
nn/tensor_3d.hpp
Activations and losses
- Activation functions
nn/activations.hpp - Loss functions
nn/losses.hpp
Network workflows
- Public header
lib_chest_nn.hpp - MLP workflow
nn/network.hpp - CNN workflow
nn/network.hpp - Usage demos
example.cpp
Other components
- Library user
Connections 24
- Library user → Public header: includes
README.md - Public header → Matrix operations: includes
lib_chest_nn.hpp - Public header → MLP layer: includes
lib_chest_nn.hpp - Public header → CNN layer: includes
lib_chest_nn.hpp - Public header → Activation functions: includes
lib_chest_nn.hpp - Public header → MLP workflow: includes
lib_chest_nn.hpp - Public header → Loss functions: includes
lib_chest_nn.hpp - Public header → Tensor operations: includes
lib_chest_nn.hpp - Activation functions → Matrix operations: operates on
nn/activations.hpp - Activation functions → Tensor operations: operates on
nn/activations.hpp - Loss functions → Matrix operations: operates on
nn/losses.hpp - MLP layer → Matrix operations: computes with
nn/layer.hpp - CNN layer → Tensor operations: convolves with
nn/layer.hpp - CNN layer → Matrix operations: uses
nn/layer.hpp - MLP workflow → MLP layer: dispatches
nn/network.hpp - MLP workflow → Loss functions: evaluates loss
nn/network.hpp - MLP workflow → Activation functions: configures
nn/network.hpp - MLP workflow → Matrix operations: processes
nn/network.hpp - CNN workflow → CNN layer: dispatches
nn/network.hpp - CNN workflow → MLP workflow: trains classifier
nn/network.hpp - CNN workflow → Tensor operations: flattens output
nn/network.hpp - Usage demos → Public header: demonstrates
example.cpp - Usage demos → CNN workflow: trains
example.cpp - Usage demos → MLP workflow: trains
example.cpp