Skip to content

A reimplementation of Andrej Karpathy's micrograd in C++

Notifications You must be signed in to change notification settings

vallabhvidy/micrograd-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Neural Network Engine in C++

This is the reimplementation of Andrej Karpathy's Micrograd but in C++.

Test the model by modifing the following code in micrograd.cpp and run the file to see the model learn!

float f(float x)
{
    // modify this function accordingly
    // note:- if the function is normalized
    // the model may train better
    // so try to normalize the data
    // to [-1, 1] and dont forget to
    // denormalize the output
    return tan(x);
}

To test, modify the above function then compile and run.

$ g++ -o micrograd micrograd.cpp
$ ./micrograd

About

A reimplementation of Andrej Karpathy's micrograd in C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published