Example on using the Multi-Layer Perceptrons networks supplied from pygpmp
- Todo:
- : TODO
#include <deque>
#include <fstream>
#include <iostream>
std::cout << "SAMPLE USING THE MULTI-LAYER PERCEPTRON NETWORK.\n";
std::srand(42069);
int64_t inputs{1}, outputs{1}, hidden_layer_units{8}, hidden_layers{3};
long double lr{.5};
auto model = util.init_SecondaryMLP(inputs = 1,
outputs = 1,
hidden_layer_units = 8,
hidden_layers = 3,
lr = .5);
std::string data_file = "../../data/school_scores.csv";
uint64_t max_iters{1000}, return_every{500};
util.train_SecondaryMLP(model, data_file, max_iters, return_every);
return 0;
}
User API for OpenGPMP MACHINE/DEEP LEARNING MODULE.
Namespace for openGPMP Machine Learning.