Skip to content

Instantly share code, notes, and snippets.

@Aakash-kaushik
Last active September 25, 2020 17:20
Show Gist options
  • Save Aakash-kaushik/426e7cdd29cf582340602a0d505dc11a to your computer and use it in GitHub Desktop.
Save Aakash-kaushik/426e7cdd29cf582340602a0d505dc11a to your computer and use it in GitHub Desktop.
loading and splitting the data and declaring some constants
constexpr double RATIO = 0.1; // ratio to divide the data in train and val set.
constexpr int MAX_ITERATIONS = 0; // set to zero to allow infinite iterations.
constexpr double STEP_SIZE = 1.2e-3;// step size for Adam optimizer.
constexpr int BATCH_SIZE = 50;
constexpr size_t EPOCH = 2;
mat tempDataset;
data::Load("train.csv", tempDataset, true);
mat tempTest;
data::Load("test.csv", test, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment