Skip to content

Deep Learning framework implementation with MSE loss, ReLU, softmax, linear layer, a feature/label generator and a mini-batch training function. The main goal of this repository is to show how to develop a project in C++ by using key concepts of the language: abstract class/interface and inheritance, memory management, smart-pointers, iterator, con

License

Notifications You must be signed in to change notification settings

viix-co/DeepLearningFrameworkFromScratchCpp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deep Learning Framework From Scratch in C++

Full explanation of the projects in this article.

Description

The main goal of this repository is to show how to develop a project in C++ and how to use key concepts of the language: abstract class/interface and inheritance, memory management, pointers, iterator, constexpress, templates, std containers and eigen matrix, static functions, namespace, makefile, etc.

This project will be applied to the development of a simple Deep Learning framework implementing MSE loss, linear layer, ReLU and softmax activation functions, a feature/label generator and a mini-batch learning function.

How to run the demo

Get all the source code

git clone https://github.com/Apiquet/DeepLearningFrameworkFromScratchCpp.git

Download Eigen code from https://gitlab.com/libeigen/eigen/-/releases/3.4.0 Extract downloaded zip file Copy the folder Eigen/ contained in extracted folder (eigen-version/Eigen) to DeepLearningFrameworkFromScratchCpp/include/

How to run the training implemented in tests/main.cpp

The file tests/main.cpp contains an example of implementation of a neural network with the developed library. The model learns to classify 2D data points into 2 classes (inside / outside a circle).

cd DeepLearningFrameworkFromScratchCpp
mkdir bin
cd bin
cmake ..
make
./TestDeepLearningFramework

About

Deep Learning framework implementation with MSE loss, ReLU, softmax, linear layer, a feature/label generator and a mini-batch training function. The main goal of this repository is to show how to develop a project in C++ by using key concepts of the language: abstract class/interface and inheritance, memory management, smart-pointers, iterator, con

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.4%
  • CMake 2.6%