#include <deque>
#include <fstream>
#include <iostream>
#include <openGPMP/ml.hpp>
Go to the source code of this file.
◆ main()
- Examples
- mlp.cpp.
Definition at line 17 of file mlp.cpp.
   18     std::cout << 
"SAMPLE USING THE MULTI-LAYER PERCEPTRON NETWORK.\n";
 
   22     int64_t inputs{1}, outputs{1}, hidden_layer_units{8}, hidden_layers{3};
 
   26     auto model = util.init_SecondaryMLP(inputs = 1,
 
   28                                         hidden_layer_units = 8,
 
   37     std::string data_file = 
"../../data/school_scores.csv";
 
   39     uint64_t max_iters{1000}, return_every{500};
 
   41     util.train_SecondaryMLP(model, data_file, max_iters, return_every);