Skip to content

Instantly share code, notes, and snippets.

@Alakhator
Created April 10, 2020 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alakhator/5bc3960cf64225aa44abf18737092a3d to your computer and use it in GitHub Desktop.
Save Alakhator/5bc3960cf64225aa44abf18737092a3d to your computer and use it in GitHub Desktop.
vector<double>error; // for storing the error values
double err; // for calculating error on each stage
double b0 = 0; // intializing b0
double b1 = 0; // initializing b1
double alpha = 0.01; // initializing our learning rate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment